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