source: spec/trunk/SPECS/libxml2-python-legacy.spec@ 1010

Last change on this file since 1010 was 907, checked in by Silvan Scherrer, 9 years ago

spec: libxml2-python: ren to legacy and add a comment

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