From 1f109bce2b044ab49a9bc41f30b56036c5a5922c Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 16 May 2012 12:38:05 +0100 Subject: [PATCH] split python package --- packaging/libxml2.spec | 73 +++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/packaging/libxml2.spec b/packaging/libxml2.spec index 63e25a1..e4ff812 100644 --- a/packaging/libxml2.spec +++ b/packaging/libxml2.spec @@ -1,18 +1,18 @@ -Summary: Library providing XML and HTML support -Name: libxml2 -Version: 2.7.8 -Release: 8.5 -License: MIT -Group: System/Libraries -Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz -BuildRequires: zlib-devel -BuildRequires: python-devel -BuildRequires: python -BuildRequires: python-xml -URL: http://xmlsoft.org/ - -%description -This library allows to manipulate XML files. It includes support +Name: libxml2 +Version: 2.7.8 +Release: 10 +License: MIT +Summary: Library providing XML and HTML support +Url: http://xmlsoft.org/ +Group: System/Libraries +Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python +BuildRequires: python-xml +BuildRequires: zlib-devel + +%description +This library allows to manipulate XML files. It includes support to read, modify and write XML and HTML files. There is DTDs support this includes parsing and validation even with complex DtDs, either at parse time or later once the document has been modified. The output @@ -23,16 +23,16 @@ available, with existing HTTP and FTP modules and combined to an URI library. %package devel -Summary: Libraries, includes, etc. to develop XML and HTML applications -Group: Development/Libraries -Requires: libxml2 = %{version}-%{release} -Requires: zlib-devel -Requires: python-devel -Requires: pkgconfig +Summary: Libraries, includes, etc +Group: Development/Libraries +Requires: libxml2 = %{version} +Requires: pkgconfig +Requires: python-devel +Requires: zlib-devel %description devel Libraries, include files, etc you can use to develop XML applications. -This library allows to manipulate XML files. It includes support +This library allows to manipulate XML files. It includes support to read, modify and write XML and HTML files. There is DTDs support this includes parsing and validation even with complex DtDs, either at parse time or later once the document has been modified. The output @@ -42,24 +42,30 @@ to select subnodes or ranges. A flexible Input/Output mechanism is available, with existing HTTP and FTP modules and combined to an URI library. +%package python +Summary: libxml2 Python bindings +Group: Development/Libraries +Requires: %{name} = %{version} + +%description python +The libxml2-python package contains a module that permits applications +written in the Python programming language to use the interface +supplied by the libxml2 library to manipulate XML files. + %prep %setup -q %build autoreconf %configure -make #%{_smp_mflags} +make %install -rm -fr %{buildroot} - %make_install -rm -f $RPM_BUILD_ROOT%{_libdir}/*.a -rm -fr $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-2.7.8 +rm -f %{buildroot}%{_libdir}/*.a +rm -fr %{buildroot}%{_datadir}/doc/libxml2-python-2.7.8 -# multiarch crazyness on timestamp differences or Makefile/binaries for examples -#touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config (cd doc/examples ; make clean ; rm -rf .deps Makefile) %remove_docs @@ -69,16 +75,11 @@ rm -fr $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-2.7.8 %postun -p /sbin/ldconfig %files -%defattr(-, root, root) %{_libdir}/lib*.so.* %{_bindir}/xmllint %{_bindir}/xmlcatalog -%{python_sitelib}/drv_libxml2* -%{python_sitelib}/libxml2* - %files devel -%defattr(-, root, root) %{_libdir}/lib*.so #needed to build python %{_libdir}/*.sh @@ -86,3 +87,7 @@ rm -fr $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-2.7.8 %{_bindir}/xml2-config %{_datadir}/aclocal/libxml.m4 %{_libdir}/pkgconfig/libxml-2.0.pc + +%files python +%{python_sitelib}/drv_libxml2* +%{python_sitelib}/libxml2* -- 2.7.4