[907] | 1 | # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
---|
| 2 | # this spec is not needed anymore with the current libxml2, as there
|
---|
| 3 | # all is built within one spec, same as fedora also does
|
---|
| 4 | # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
---|
[411] | 5 |
|
---|
[907] | 6 |
|
---|
[11] | 7 | %define name libxml2-python
|
---|
| 8 | %define version 2.7.7
|
---|
| 9 | %define unmangled_version 2.7.7
|
---|
| 10 |
|
---|
| 11 | Summary: libxml2 package
|
---|
| 12 | Name: %{name}
|
---|
| 13 | Version: %{version}
|
---|
[407] | 14 | Release: 6%{?dist}
|
---|
[11] | 15 | Source: libxml2-%{version}.tar.gz
|
---|
| 16 | #Source1: %{name}-%{unmangled_version}.tar.gz
|
---|
| 17 | License: MIT Licence
|
---|
| 18 | Group: Development/Libraries
|
---|
| 19 | Prefix: %{_prefix}
|
---|
| 20 | Vendor: Daniel Veillard <veillard@redhat.com>
|
---|
| 21 | Url: http://xmlsoft.org/python.html
|
---|
| 22 |
|
---|
[32] | 23 | Patch1: libxml2-os2.diff
|
---|
| 24 |
|
---|
[11] | 25 | BuildRequires: libxml2-devel python-devel
|
---|
| 26 | #BuildRequires: python-xml
|
---|
| 27 | BuildRoot: %{_tmppath}/libxml2-%{version}-%{release}-buildroot
|
---|
| 28 |
|
---|
| 29 | Requires: libxml2 = %{version}
|
---|
| 30 | Requires: python
|
---|
[411] | 31 | Requires: python(abi) = %{python_version}
|
---|
[11] | 32 |
|
---|
| 33 | %description
|
---|
| 34 | The libxml2-python package contains a module that permits applications
|
---|
| 35 | written in the Python programming language to use the interface
|
---|
| 36 | supplied by the libxml2 library to manipulate XML files.
|
---|
| 37 |
|
---|
| 38 | This library allows manipulation of XML files. It includes support for
|
---|
| 39 | reading, modifying, and writing XML and HTML files. There is DTD
|
---|
| 40 | support that includes parsing and validation even with complex DTDs,
|
---|
| 41 | either at parse time or later once the document has been modified.
|
---|
| 42 |
|
---|
| 43 | %prep
|
---|
| 44 | %setup -q -n libxml2-%{unmangled_version}
|
---|
[32] | 45 | %patch001 -p1 -b .os2~
|
---|
[11] | 46 |
|
---|
| 47 | %build
|
---|
| 48 | cd python
|
---|
| 49 | env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
---|
| 50 |
|
---|
| 51 | %install
|
---|
| 52 | cd python
|
---|
[411] | 53 | python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
|
---|
[11] | 54 |
|
---|
| 55 | %clean
|
---|
| 56 | rm -rf $RPM_BUILD_ROOT
|
---|
| 57 |
|
---|
| 58 | %files -f python/INSTALLED_FILES
|
---|
| 59 | %defattr(-,root,root)
|
---|
[279] | 60 |
|
---|
| 61 | %changelog
|
---|
[407] | 62 | * Tue Apr 08 2014 yd
|
---|
| 63 | - workaround for http://trac.netlabs.org/rpm/ticket/71
|
---|
| 64 |
|
---|
[405] | 65 | * Mon Apr 07 2014 yd
|
---|
| 66 | - build for python 2.7.
|
---|
| 67 |
|
---|
[279] | 68 | * Mon Jan 16 2012 yd
|
---|
| 69 | - rebuild with libc 0.6.4 runtime.
|
---|