%bcond_without python Summary: Library providing XML and HTML support Name: libxml Version: 2.7.8 Release: 2ark License: MIT Group: Development/Libraries Source: ftp://xmlsoft.org/libxml2/libxml2-sources-%{version}.tar.gz Patch: libxml-2.6.22-lib64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root %if %{with python} BuildRequires: python python-devel %endif URL: http://xmlsoft.org/ Obsoletes: libxml2 Provides: libxml2 = %version-%release %track prog %name = { url = ftp://xmlsoft.org/libxml2/ regex = LATEST_LIBXML2_IS_(__VER__) version = %version } %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 can be a simple SAX stream or and in-memory DOM like representations. In this case one can use the built-in XPath and XPointer implementation to select subnodes or ranges. A flexible Input/Output mechanism is available, with existing HTTP and FTP modules and combined to an URI library. We recommend using QtXml instead because of its nicer API. %package devel Summary: Libraries, includes, etc. to develop XML and HTML applications Group: Development/Libraries Requires: %name = %version-%release Requires: zlib-devel Obsoletes: libxml2-devel Provides: libxml2-devel = %version-%release %description devel Libraries, include files, etc you can use to develop XML applications. 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 can be a simple SAX stream or and in-memory DOM like representations. In this case one can use the built-in XPath and XPointer implementation to select subnodes or ranges. A flexible Input/Output mechanism is available, with existing HTTP and FTP modules and combined to an URI library. We recommend using QtXml instead because of its nicer API. %package static Summary: Static libraries to develop XML and HTML applications Group: Development/Libraries/Static Requires: %{name}-devel = %version-%release %description static Static libraries you can use to develop XML applications. We recommend using QtXml instead because of its nicer API. %package python Summary: Python bindings for the libxml2 library Group: Development/Libraries Requires: %{name} = %{version} Requires: python Obsoletes: libxml2-python Provides: libxml2-python = %version-%release %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. 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 %{name}2-%version #patch -p1 -b .lib64~ # Fix broken m4 scripts... find . -name "*.m4" |xargs fixm4 libtoolize --force aclocal autoheader automake -a autoconf %build # Needed for snapshot releases. if [ ! -f configure ]; then ./autogen.sh fi %configure --with-fexceptions \ %if %{with python} --with-python %else --without-python %endif make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README Copyright TODO %doc %_mandir/man1/xmllint.1* %doc %_mandir/man1/xmlcatalog.1* %doc %_mandir/man3/libxml.3* %attr(755,root,root)%_bindir/xmllint %attr(755,root,root)%_bindir/xmlcatalog %attr(755,root,root)%_libdir/libxml2.so* %files devel %defattr(-, root, root) %doc %_mandir/man1/xml2-config.1* %doc AUTHORS ChangeLog NEWS README Copyright TODO %doc doc/*.html doc/html doc/*.gif doc/*.png %attr(755,root,root)%_bindir/xml2-config %dir %_includedir/libxml2 %dir %_includedir/libxml2/libxml %_includedir/libxml2/libxml/*.h %_libdir/xml2Conf.sh %_libdir/pkgconfig/libxml-2.0.pc %_datadir/aclocal/libxml.m4 # We don't want to depend on gtk-doc bloat, so we # just own the entire directory %doc %_datadir/gtk-doc %files static %defattr(-, root, root) %_libdir/libxml2.a %if %{with python} %_libdir/python*/site-packages/libxml2mod.a %files python %defattr(-, root, root) %doc AUTHORS ChangeLog NEWS README Copyright %doc python/TODO %doc python/libxml2class.txt %doc python/tests/*.py %_libdir/python*/site-packages/libxml2.py %_libdir/python*/site-packages/drv_libxml2.py %attr(755,root,root)%_libdir/python*/site-packages/libxml2mod.so %endif %changelog * Thu Apr 28 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.8-2ark - Rebuild with current rpm to get pkgconfig(libxml-2.0) dep * Fri Nov 5 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.8-1ark - 2.7.8 * Thu Aug 19 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.7-2ark - Rebuild for python 2.7 * Wed Mar 24 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.7-1ark - 2.7.7 - Add --without python switch to allow building on learner embedded systems * Fri Jun 5 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.3-1ark - 2.7.3 * Sat Oct 5 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.2-1ark - 2.7.2 * Mon Sep 22 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.1-1ark - 2.7.1 * Mon Sep 1 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.7.0-1ark - 2.7.0 * Thu Jul 17 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.32-1ark - 2.6.32 * Mon Nov 26 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.30-1ark - 2.6.30 * Thu Nov 23 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.27-1ark - 2.6.27 * Sun Oct 15 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.26-2ark - Rebuild with current compiler - Rename libxml2 -> libxml to be consistant with other package naming - Remove .la junk - Split out static package - Remove dupes * Sun Jun 18 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.26-1ark - 2.6.26 * Mon Jan 9 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.23-1ark - More x86_64 fixes - 2.6.23 * Sat Dec 31 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.22-2ark - x86_64 fixes * Wed Sep 14 2005 David Tio <deux@arklinux.org> 2.6.22-1ark - 2.6.22 * Tue Mar 29 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.18-1ark - 2.6.18 * Sun Jan 30 2005 David Tio <deux@arklinux.org> 2.6.17-1ark - 2.6.17 * Wed Dec 15 2004 Zackary Deems <zdeems@arklinux.org> 2.6.16-1ark - New version - Fixed %files section for python 2.4 * Fri Jul 09 2004 David Tio <deux@arklinux.org> 2.6.11-1ark - 2.6.11 * Wed Jun 2 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.9-2ark - Invoke fixm4 in the right place - Fix some more spec file braindamage - Remove very old changelog entries to save space * Sun May 30 2004 Gary Greene <greenege@arklinux.org> 2.6.9-1ark - Update to 2.6.9 * Sun Apr 18 2004 Gary Greene <greeneg@arklinux.org> 2.6.8-1ark - Update to 2.6.8 - Clean up the spec. * Sun Feb 15 2004 David Tio <deux@arklinux.org> 2.6.6-1ark - 2.6.6 * Tue Jan 27 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.5-1ark - 2.6.5 * Sun Nov 2 2003 Bernhard Rosenkraenzer <bero@arklinux.org> 2.5.11-3ark - Fix build on x86_64 - Clean up specfile mess * Thu Sep 18 2003 Bernhard Rosenkraenzer <bero@arklinux.org> 2.5.11-2ark - Rebuild for Python 2.3 * Thu Sep 18 2003 Tio Hiap Ho <deux@arklinux.org> 2.5.11-1ark - 2.5.11 * Tue Sep 02 2003 Sergio Visinoni <piffio@arklinux.org> 2.5.10-1ark - 2.5.10 * Tue Jul 08 2003 Sergio Visinoni <piffio@arklinux.org> 2.5.8-1ark - 2.5.8 * Tue Apr 01 2003 Sergio Visinoni <piffio@arklinux.org> 2.5.6-1ark - 2.5.6 * Tue Feb 11 2003 Sergio Visinoni <piffio@arklinux.org> 2.5.3-1ark - 2.5.3 * Sun Feb 09 2003 Sergio Visinoni <piffio@arklinux.org> 2.5.2-1ark - 2.5.2 * Tue Nov 26 2002 Sergio Visinoni <piffio@arklinux.org> 2.4.25-1ark - 2.4.25 * Wed Sep 04 2002 Sergio Visinoni <piffio@arklinux.org> 2.4.24-1ark - Version 2.4.24