%define majver %(echo %version | cut -d. -f 1-2) Name: libxml2 Version: 2.9.5 Release: 1mamba Summary: Library providing XML and HTML support Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.xmlsoft.org/ # bugfixes: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz #Source: http://ftp.gnome.org/pub/GNOME/sources/libxml2/%{majver}/libxml2-%{version}.tar.bz2 Patch0: %{name}-2.7.8-configure_fix_USE_VERSION_SCRIPT.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: bash BuildRequires: glibc-devel %if "%{stage1}" != "1" BuildRequires: gtk-doc BuildRequires: libpython-devel %endif BuildRequires: ldconfig BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package devel Group: Development/Libraries Summary: Devel files for the library providing XML and HTML support Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel 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. This package contains static libraries and header files need for development. %if "%{stage1}" != "1" %package -n python-libxml2 Group: System/Libraries Summary: Python support for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %py_requires %description -n python-libxml2 Python support for libxml2. %endif %package utils Group: Development/Libraries Summary: Utilities for the libxml library providing XML and HTML support Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description utils This package contains some utilities to manipulate XML files. %package apidocs Summary: %{name} API documentation Group: Documentation Requires: gtk-doc %description apidocs %{name} API documentation. %prep %setup -q #%patch0 -p1 %build #autoreconf %configure \ --enable-shared \ --disable-static \ --with-legacy \ %if "%{stage1}" != "1" --with-python=%{_prefix} \ PYTHON=%{__python} \ %else --without-python \ --disable-gtk-doc %endif %make PYTHON_SITE_PACKAGES=%{python_sitearch} #make tests %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall PYTHON_SITE_PACKAGES=%{python_sitearch} install AUTHORS COPYING Copyright NEWS README TODO* \ %{buildroot}%{_datadir}/doc/%{name}-%{version}/ install -d -m 0755 %{buildroot}%{_sysconfdir}/sgml install -d -m 0755 %{buildroot}%{_sysconfdir}/xml %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libxml2.so.* %dir %{_sysconfdir}/sgml %dir %{_sysconfdir}/xml %files devel %defattr(-,root,root) %{_bindir}/xml2-config %{_datadir}/aclocal/libxml.m4 %dir %{_datadir}/doc/libxml2-%{version} %{_datadir}/doc/libxml2-%{version}/* %{_includedir}/* %{_libdir}/libxml2.la %{_libdir}/libxml2.so %dir %{_libdir}/cmake/libxml2 %{_libdir}/cmake/libxml2/libxml2-config.cmake %dir %{_libdir}/cmake/libxml2 %{_libdir}/cmake/libxml2/libxml2-config.cmake %{_libdir}/pkgconfig/* %{_mandir}/man1/xml2-config.* %{_mandir}/man3/* %files utils %defattr(-,root,root) %{_bindir}/xmlcatalog %{_bindir}/xmllint %{_libdir}/xml2Conf.sh %{_mandir}/man1/xmlcatalog.* %{_mandir}/man1/xmllint.* %if "%{stage1}" != "1" %files -n python-libxml2 %defattr(-,root,root) %{python_sitearch}/* %{_datadir}/doc/libxml2-python-%{version}/ %endif %files apidocs %defattr(-,root,root) %{_datadir}/gtk-doc/html/%{name}/ %changelog * Fri Sep 08 2017 Automatic Build System 2.9.5-1mamba - automatic version update by autodist * Mon May 23 2016 Automatic Build System 2.9.4-1mamba - automatic version update by autodist * Wed Dec 09 2015 Automatic Build System 2.9.3-1mamba - automatic version update by autodist * Sun Oct 26 2014 Automatic Build System 2.9.2-1mamba - automatic version update by autodist * Mon Nov 25 2013 Silvan Calarco 2.9.1-2mamba - rebuilt with python 2.7 * Sat Apr 27 2013 Automatic Build System 2.9.1-1mamba - automatic version update by autodist * Fri Oct 12 2012 Automatic Build System 2.9.0-1mamba - automatic version update by autodist * Sat Aug 11 2012 Automatic Build System 2.8.0-1mamba - automatic version update by autodist * Fri Feb 11 2011 Silvan Calarco 2.7.8-1mamba - update to 2.7.8 * Sat Jun 26 2010 Automatic Build System 2.7.7-2mamba - automatic rebuild by autodist * Sun Apr 11 2010 Silvan Calarco 2.7.7-1mamba - update to 2.7.7 * Sat Oct 24 2009 Automatic Build System 2.7.6-1mamba - automatic update by autodist * Tue Sep 29 2009 Automatic Build System 2.7.5-1mamba - update to 2.7.5 * Tue Dec 09 2008 Silvan Calarco 2.6.30-2mamba - rebuild with python 2.6 * Fri Nov 16 2007 Silvan Calarco 2.6.30-1mamba - update to 2.6.30 * Wed Apr 11 2007 Davide Madrisan 2.6.27-2mamba - new subpackage apidocs with API documentation - do not build static libraries * Tue Apr 10 2007 Tiziano Pratellesi 2.6.27-1mamba - update to 2.6.27 * Thu Jan 04 2007 Davide Madrisan 2.6.26-1qilnx - update to version 2.6.26 by autospec - man3 page moved to devel package * Fri Sep 23 2005 Davide Madrisan 2.6.22-1qilnx - update to version 2.6.22 by autospec - added build requirements and gtk-doc - package `python-libxml2' requires python * Tue Aug 09 2005 Silvan Calarco 2.6.20-1qilnx - update to version 2.6.20 by autospec * Tue Feb 23 2005 Silvan Calarco 2.6.17-2qilnx - rebuilt with python support * Tue Feb 22 2005 Silvan Calarco 2.6.17-1qilnx - update to version 2.6.17 by autospec - tests disables * Fri Dec 10 2004 Silvan Calarco 2.6.15-2qilnx - documentation moved to devel package * Tue Nov 09 2004 Davide Madrisan 2.6.15-1qilnx - updated to 2.6.15 (also fixes QSA-2004-053 (CAN-2004-989)) - moved xml2-config binary and man page to the devel package * Mon Mar 01 2004 Davide Madrisan 2.6.7-1qilnx - rebuilt with latest available version (include a security fix: CAN-2004-0110) * Wed May 21 2003 Silvan Calarco 2.5.7-1qilnx - first build