2024-01-06 06:13:29 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
|
|
|
Name: libxml2
|
2024-01-06 06:13:32 +01:00
|
|
|
Version: 2.10.3
|
2024-01-06 06:13:31 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 06:13:29 +01:00
|
|
|
Summary: Library providing XML and HTML support
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 06:13:32 +01:00
|
|
|
URL: https://gitlab.gnome.org/GNOME/libxml2
|
|
|
|
Source: https://gitlab.gnome.org/GNOME/libxml2.git/v%{version}/libxml2-%{version}.tar.bz2
|
2024-01-06 06:13:29 +01:00
|
|
|
Patch0: %{name}-2.7.8-configure_fix_USE_VERSION_SCRIPT.patch
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 06:13:30 +01:00
|
|
|
BuildRequires: liblzma-devel
|
2024-01-06 06:13:31 +01:00
|
|
|
BuildRequires: libpython27-devel
|
2024-01-06 06:13:31 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 06:13:30 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 06:13:29 +01:00
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
%endif
|
|
|
|
BuildRequires: ldconfig
|
|
|
|
|
|
|
|
%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.
|
2024-01-06 06:13:31 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 06:13:29 +01:00
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%package -n python-libxml2-py3
|
2024-01-06 06:13:29 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Python support for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 06:13:31 +01:00
|
|
|
Provides: python-libxml2
|
2024-01-06 06:13:31 +01:00
|
|
|
Obsoletes: python-libxml2 =< 2.9.10-3mamba
|
2024-01-06 06:13:31 +01:00
|
|
|
%py3_requires
|
2024-01-06 06:13:29 +01:00
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%description -n python-libxml2-py3
|
2024-01-06 06:13:29 +01:00
|
|
|
Python support for libxml2.
|
2024-01-06 06:13:31 +01:00
|
|
|
|
|
|
|
%package -n python-libxml2-py27
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Python support for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%py27_requires
|
|
|
|
|
|
|
|
%description -n python-libxml2-py27
|
|
|
|
Python support for libxml2.
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 06:13:29 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
2024-01-06 06:13:32 +01:00
|
|
|
./autogen.sh
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
cp -a python python27
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#autoreconf
|
|
|
|
%configure \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--with-legacy \
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 06:13:31 +01:00
|
|
|
--with-python=%{__python3} \
|
2024-01-06 06:13:32 +01:00
|
|
|
PYTHON=%{__python3}
|
2024-01-06 06:13:29 +01:00
|
|
|
%else
|
|
|
|
--without-python \
|
|
|
|
--disable-gtk-doc
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%make PYTHON_SITE_PACKAGES=%{python3_sitearch}
|
2024-01-06 06:13:29 +01:00
|
|
|
#make tests
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
cd python27
|
|
|
|
CFLAGS="%{optflags}" %{__python27} setup.py build
|
|
|
|
cd ..
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 06:13:29 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2024-01-06 06:13:31 +01:00
|
|
|
%makeinstall PYTHON_SITE_PACKAGES=%{python3_sitearch}
|
2024-01-06 06:13:29 +01:00
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
#install AUTHORS COPYING Copyright NEWS README TODO* \
|
|
|
|
# %{buildroot}%{_datadir}/doc/%{name}-%{version}/
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/sgml
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/xml
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 06:13:31 +01:00
|
|
|
cd python27
|
|
|
|
%{__python27} setup.py install \
|
2024-01-06 06:13:31 +01:00
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
2024-01-06 06:13:31 +01:00
|
|
|
--install-headers=%{python27_inc} \
|
|
|
|
--install-lib=%{python27_sitearch} \
|
2024-01-06 06:13:31 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 06:13:29 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/sgml
|
|
|
|
%dir %{_sysconfdir}/xml
|
2024-01-06 06:13:31 +01:00
|
|
|
%{_libdir}/libxml2.so.*
|
2024-01-06 06:13:32 +01:00
|
|
|
%doc Copyright
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/xml2-config
|
|
|
|
%{_datadir}/aclocal/libxml.m4
|
2024-01-06 06:13:32 +01:00
|
|
|
%dir %{_includedir}/libxml2
|
|
|
|
%{_includedir}/libxml2/*
|
2024-01-06 06:13:29 +01:00
|
|
|
%{_libdir}/libxml2.so
|
2024-01-06 06:13:30 +01:00
|
|
|
%dir %{_libdir}/cmake/libxml2
|
|
|
|
%{_libdir}/cmake/libxml2/libxml2-config.cmake
|
2024-01-06 06:13:29 +01:00
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%{_mandir}/man1/xml2-config.*
|
2024-01-06 06:13:32 +01:00
|
|
|
#%{_mandir}/man3/*
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/xmlcatalog
|
|
|
|
%{_bindir}/xmllint
|
2024-01-06 06:13:32 +01:00
|
|
|
#%{_libdir}/xml2Conf.sh
|
2024-01-06 06:13:29 +01:00
|
|
|
%{_mandir}/man1/xmlcatalog.*
|
|
|
|
%{_mandir}/man1/xmllint.*
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 06:13:31 +01:00
|
|
|
%files -n python-libxml2-py3
|
2024-01-06 06:13:29 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 06:13:31 +01:00
|
|
|
%{python3_sitearch}/libxml2*
|
2024-01-06 06:13:32 +01:00
|
|
|
%{python3_sitelib}/__pycache__/*.pyc
|
|
|
|
%{python3_sitelib}/drv_libxml2.py
|
|
|
|
%{python3_sitelib}/libxml2.py
|
2024-01-06 06:13:31 +01:00
|
|
|
|
|
|
|
%files -n python-libxml2-py27
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python27_sitearch}/libxml2*
|
|
|
|
%{python27_sitearch}/drv_libxml2.py*
|
2024-01-06 06:13:29 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
2024-01-06 06:13:32 +01:00
|
|
|
%dir %{_datadir}/doc/libxml2/
|
|
|
|
%{_datadir}/doc/libxml2/*
|
2024-01-06 06:13:31 +01:00
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 06:13:32 +01:00
|
|
|
#%{_datadir}/doc/libxml2-python-%{version}/
|
2024-01-06 06:13:31 +01:00
|
|
|
%endif
|
2024-01-06 06:13:29 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:13:32 +01:00
|
|
|
* Sun Oct 16 2022 Automatic Build System <autodist@mambasoft.it> 2.10.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
* Tue Aug 30 2022 Automatic Build System <autodist@mambasoft.it> 2.10.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
* Fri Aug 26 2022 Automatic Build System <autodist@mambasoft.it> 2.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 2.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
* Tue May 03 2022 Automatic Build System <autodist@mambasoft.it> 2.9.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:32 +01:00
|
|
|
* Sat Apr 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.13-1mamba
|
|
|
|
- update to 2.9.13
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Fri May 14 2021 Automatic Build System <autodist@mambasoft.it> 2.9.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.10-5mamba
|
|
|
|
- rebuilt to fix libxml2mod.so linked against py27 in py3
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Mon Mar 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.10-4mamba
|
|
|
|
- add -py27 package required for e.g. gimp-help
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Mon Nov 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.10-3mamba
|
|
|
|
- python-libxml2-py3: fix: don't install in libxml2 subdir
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.10-2mamba
|
|
|
|
- rebuilt with only python3 package, added debug package
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Mon Nov 25 2019 Automatic Build System <autodist@mambasoft.it> 2.9.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Fri Mar 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.9-2mamba
|
|
|
|
- added -py36 package
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Mon Jan 28 2019 Automatic Build System <autodist@mambasoft.it> 2.9.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Fri Mar 09 2018 Automatic Build System <autodist@mambasoft.it> 2.9.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Mon Nov 27 2017 Automatic Build System <autodist@mambasoft.it> 2.9.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Fri Nov 10 2017 Automatic Build System <autodist@mambasoft.it> 2.9.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Tue Sep 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.5-2mamba
|
|
|
|
- rebuilt to fix %py_requires incorrectly based on python 2.6
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Fri Sep 08 2017 Automatic Build System <autodist@mambasoft.it> 2.9.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Mon May 23 2016 Automatic Build System <autodist@mambasoft.it> 2.9.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Wed Dec 09 2015 Automatic Build System <autodist@mambasoft.it> 2.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:30 +01:00
|
|
|
* Sun Oct 26 2014 Automatic Build System <autodist@mambasoft.it> 2.9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:13:29 +01:00
|
|
|
* Mon Nov 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.1-2mamba
|
|
|
|
- rebuilt with python 2.7
|
|
|
|
|
|
|
|
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 2.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 12 2012 Automatic Build System <autodist@mambasoft.it> 2.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 2.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Feb 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.8-1mamba
|
|
|
|
- update to 2.7.8
|
|
|
|
|
|
|
|
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 2.7.7-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sun Apr 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.7-1mamba
|
|
|
|
- update to 2.7.7
|
|
|
|
|
|
|
|
* Sat Oct 24 2009 Automatic Build System <autodist@mambasoft.it> 2.7.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Sep 29 2009 Automatic Build System <autodist@mambasoft.it> 2.7.5-1mamba
|
|
|
|
- update to 2.7.5
|
|
|
|
|
|
|
|
* Tue Dec 09 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.30-2mamba
|
|
|
|
- rebuild with python 2.6
|
|
|
|
|
|
|
|
* Fri Nov 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.30-1mamba
|
|
|
|
- update to 2.6.30
|
|
|
|
|
|
|
|
* Wed Apr 11 2007 Davide Madrisan <davide.madrisan@gmail.com> 2.6.27-2mamba
|
|
|
|
- new subpackage apidocs with API documentation
|
|
|
|
- do not build static libraries
|
|
|
|
|
|
|
|
* Tue Apr 10 2007 Tiziano Pratellesi <tiziano.pratellesi@openmamba.org> 2.6.27-1mamba
|
|
|
|
- update to 2.6.27
|
|
|
|
|
|
|
|
* Thu Jan 04 2007 Davide Madrisan <davide.madrisan@qilinux.it> 2.6.26-1qilnx
|
|
|
|
- update to version 2.6.26 by autospec
|
|
|
|
- man3 page moved to devel package
|
|
|
|
|
|
|
|
* Fri Sep 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 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 <silvan.calarco@mambasoft.it> 2.6.20-1qilnx
|
|
|
|
- update to version 2.6.20 by autospec
|
|
|
|
|
2024-01-06 06:13:31 +01:00
|
|
|
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.17-2qilnx
|
2024-01-06 06:13:29 +01:00
|
|
|
- rebuilt with python support
|
|
|
|
|
|
|
|
* Tue Feb 22 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.17-1qilnx
|
|
|
|
- update to version 2.6.17 by autospec
|
|
|
|
- tests disables
|
|
|
|
|
|
|
|
* Fri Dec 10 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.15-2qilnx
|
|
|
|
- documentation moved to devel package
|
|
|
|
|
|
|
|
* Tue Nov 09 2004 Davide Madrisan <davide.madrisan@qilinux.it> 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 <davide.madrisan@qilinux.it> 2.6.7-1qilnx
|
|
|
|
- rebuilt with latest available version (include a security fix: CAN-2004-0110)
|
|
|
|
|
|
|
|
* Wed May 21 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.5.7-1qilnx
|
|
|
|
- first build
|