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

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

spec: workaround for http://trac.netlabs.org/rpm/ticket/71.

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