source: spec/trunk/SPECS/libxml2-python.spec@ 411

Last change on this file since 411 was 411, checked in by Yuri Dario, 11 years ago

spec: updates to python macros.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1
2%define name libxml2-python
3%define version 2.7.7
4%define unmangled_version 2.7.7
5
6Summary: libxml2 package
7Name: %{name}
8Version: %{version}
9Release: 6%{?dist}
10Source: libxml2-%{version}.tar.gz
11#Source1: %{name}-%{unmangled_version}.tar.gz
12License: MIT Licence
13Group: Development/Libraries
14Prefix: %{_prefix}
15Vendor: Daniel Veillard <veillard@redhat.com>
16Url: http://xmlsoft.org/python.html
17
18Patch1: libxml2-os2.diff
19
20BuildRequires: libxml2-devel python-devel
21#BuildRequires: python-xml
22BuildRoot: %{_tmppath}/libxml2-%{version}-%{release}-buildroot
23
24Requires: libxml2 = %{version}
25Requires: python
26Requires: python(abi) = %{python_version}
27
28%description
29The libxml2-python package contains a module that permits applications
30written in the Python programming language to use the interface
31supplied by the libxml2 library to manipulate XML files.
32
33This library allows manipulation of XML files. It includes support for
34reading, modifying, and writing XML and HTML files. There is DTD
35support that includes parsing and validation even with complex DTDs,
36either 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
43cd python
44env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
45
46%install
47cd python
48python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
49
50%clean
51rm -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.
Note: See TracBrowser for help on using the repository browser.