Author: thl
Update of /cvs/free/rpms/compat-python24-libxml2/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv8702
Added Files:
libxml2-python24.spec multilib.patch
Log Message:
import libxml2-python24 from livna and rename to compat-python24-libxml2
--- NEW FILE libxml2-python24.spec ---
%define compat_python %{_bindir}/python2.4
%{!?python_sitearch: %define python_sitearch %(%{compat_python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_sitelib: %define python_sitelib %(%{compat_python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: Python2.4 bindings for the libxml2 library
Name: compat-python24-libxml2
Version: 2.6.32
Release: 2%{?dist}
License: MIT
Group: Development/Libraries
Source:
ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: compat-python24-devel libxml2-devel
Requires: libxml2 = %{version}, python(abi) = 2.4
URL:
http://xmlsoft.org/
Patch0: multilib.patch
Provides: libxml2-python24 = %{version}-%{release}
Obsoletes: libxml2-python24 < 2.6.32-2
%description
The libxml2-python24 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.
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.
%prep
%setup -q -n libxml2-%{version}
%patch0 -p1
%build
pushd python
CFLAGS="$RPM_OPT_FLAGS" %{compat_python} setup.py build
popd
gzip -9 ChangeLog
%install
rm -rf $RPM_BUILD_ROOT
pushd python
CFLAGS="$RPM_OPT_FLAGS" %{compat_python} setup.py install -O1 --skip-build
--root $RPM_BUILD_ROOT
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog.gz NEWS README Copyright
%{python_sitearch}/libxml2.py*
%{python_sitearch}/drv_libxml2.py*
%{python_sitearch}/libxml2mod*
%doc python/TODO
%doc python/tests/*.py
%doc doc/*.py
%doc doc/python.html
%changelog
* Sat Aug 09 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.6.32-2
- rebuild for RPM Fusion
- add provides and obsoletes for libxml2-python24 from livna
* Sun Apr 27 2008 Jonathan Steffan <jon a fedoraunity.org> 2.6.32-1
- Update to 2.6.32
* Wed Jan 16 2008 Jonathan Steffan <jon a fedoraunity.org> 2.6.31-1
- Update to 2.6.31
* Tue Jan 15 2008 Jonathan Steffan <jon a fedoraunity.org> 2.6.30-2
- Bump release for rebuild
- Update upstream URL
* Sat Dec 1 2007 Jonathan Steffan <jon a fedoraunity.org> 2.6.30-1
- Update for f8's 2.6.30 libxml2
* Mon Sep 3 2007 Jonathan Steffan <jon a fedoraunity.org> 2.6.29-1
- Only package the python bindings built for python 2.4
multilib.patch:
--- NEW FILE multilib.patch ---
*** XML/xml2-config.in.orig 2006-06-06 16:35:56.000000000 +0200
--- XML/xml2-config.in 2006-06-06 16:36:24.000000000 +0200
***************
*** 3,9 ****
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
! libdir=@libdir@
usage()
{
--- 3,14 ----
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
! if [ "`ldd /bin/sh | grep lib64`" = "" ]
! then
! libdir=${exec_prefix}/lib
! else
! libdir=${exec_prefix}/lib64
! fi
usage()
{