Blame SPECS/libxslt.spec

7999f5
%if 0%{?rhel} > 7
7999f5
# Disable python2 build by default
7999f5
%bcond_with python2
7999f5
%else
7999f5
%bcond_without python2
7999f5
%endif
7999f5
7999f5
Name:           libxslt
7999f5
Summary:        Library providing the Gnome XSLT engine
7999f5
Version:        1.1.32
bf0b08
Release:        5%{?dist}
7999f5
7999f5
License:        MIT
7999f5
URL:            http://xmlsoft.org/XSLT
7999f5
Source:         ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
7999f5
7999f5
BuildRequires:  autoconf
7999f5
BuildRequires:  automake
7999f5
BuildRequires:  libtool
7999f5
BuildRequires:  make
7999f5
BuildRequires:  gcc
7999f5
BuildRequires:  %{_bindir}/libgcrypt-config
7999f5
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.27
7999f5
7999f5
# Fedora specific patches
7999f5
Patch0:         multilib.patch
7999f5
Patch1:         libxslt-1.1.26-utf8-docs.patch
7999f5
# https://bugzilla.redhat.com/show_bug.cgi?id=1765632
7999f5
Patch2:         multilib2.patch
bf0b08
# https://bugzilla.redhat.com/show_bug.cgi?id=1775517
bf0b08
Patch3:         libxslt-1.1.32-CVE-2019-18197.patch
bf0b08
# https://bugzilla.redhat.com/show_bug.cgi?id=1715732
bf0b08
Patch4:         libxslt-1.1.32-CVE-2019-11068.patch
7999f5
7999f5
%description
7999f5
This C library allows to transform XML files into other XML files
7999f5
(or HTML, text, ...) using the standard XSLT stylesheet transformation
7999f5
mechanism. To use it you need to have a version of libxml2 >= 2.6.27
7999f5
installed. The xsltproc command is a command line interface to the XSLT engine
7999f5
7999f5
%package devel
7999f5
Summary:        Development libraries and header files for %{name}
7999f5
Requires:       %{name}%{?_isa} = %{version}-%{release}
7999f5
Requires:       libgcrypt-devel%{?_isa}
7999f5
Requires:       libgpg-error-devel%{?_isa}
7999f5
7999f5
%description devel
7999f5
The %{name}-devel package contains libraries and header files for
7999f5
developing applications that use %{name}.
7999f5
7999f5
%if %{with python2}
7999f5
%package -n python2-libxslt
7999f5
Summary:        Python 2 bindings for %{name}
7999f5
BuildRequires:  python2-devel
7999f5
BuildRequires:  python2-libxml2
7999f5
Requires:       %{name}%{?_isa} = %{version}-%{release}
7999f5
Requires:       python2-libxml2
7999f5
%{?python_provide:%python_provide python2-libxslt}
7999f5
# Remove before F30
7999f5
Provides:       %{name}-python = %{version}-%{release}
7999f5
Provides:       %{name}-python%{?_isa} = %{version}-%{release}
7999f5
Obsoletes:      %{name}-python < %{version}-%{release}
7999f5
7999f5
%description -n python2-libxslt
7999f5
The libxslt-python package contains a module that permits applications
7999f5
written in the Python programming language to use the interface
7999f5
supplied by the libxslt library to apply XSLT transformations.
7999f5
7999f5
This library allows to parse sytlesheets, uses the libxml2-python
7999f5
to load and save XML and HTML files. Direct access to XPath and
7999f5
the XSLT transformation context are possible to extend the XSLT language
7999f5
with XPath functions written in Python.
7999f5
%endif # with python2
7999f5
7999f5
%prep
7999f5
%autosetup -p1
7999f5
chmod 644 python/tests/*
7999f5
7999f5
%build
7999f5
autoreconf -vfi
7999f5
%configure --disable-static --disable-silent-rules
7999f5
%make_build
7999f5
7999f5
%install
7999f5
%make_install
7999f5
find %{buildroot} -name '*.la' -print -delete
7999f5
# multiarch crazyness on timestamp differences
7999f5
touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config
7999f5
rm -vrf %{buildroot}%{_docdir}
7999f5
7999f5
%check
7999f5
%make_build tests
7999f5
7999f5
%ldconfig_scriptlets
7999f5
7999f5
%files
7999f5
%license Copyright
7999f5
%doc AUTHORS ChangeLog NEWS README FEATURES
7999f5
%{_bindir}/xsltproc
7999f5
%{_libdir}/libxslt.so.*
7999f5
%{_libdir}/libexslt.so.*
7999f5
%{_libdir}/libxslt-plugins/
7999f5
%{_mandir}/man1/xsltproc.1*
7999f5
7999f5
%files devel
7999f5
%doc doc/libxslt-api.xml
7999f5
%doc doc/libxslt-refs.xml
7999f5
%doc doc/EXSLT/libexslt-api.xml
7999f5
%doc doc/EXSLT/libexslt-refs.xml
7999f5
%doc %{_mandir}/man3/libxslt.3*
7999f5
%doc %{_mandir}/man3/libexslt.3*
7999f5
%doc doc/*.html doc/html doc/*.gif doc/*.png
7999f5
%doc doc/images
7999f5
%doc doc/tutorial
7999f5
%doc doc/tutorial2
7999f5
%doc doc/EXSLT
7999f5
%{_libdir}/libxslt.so
7999f5
%{_libdir}/libexslt.so
7999f5
%{_libdir}/xsltConf.sh
7999f5
%{_datadir}/aclocal/libxslt.m4
7999f5
%{_includedir}/libxslt/
7999f5
%{_includedir}/libexslt/
7999f5
%{_libdir}/pkgconfig/libxslt.pc
7999f5
%{_libdir}/pkgconfig/libexslt.pc
7999f5
%{_bindir}/xslt-config
7999f5
7999f5
%if %{with python2}
7999f5
%files -n python2-libxslt
7999f5
%{python2_sitearch}/libxslt.py*
7999f5
%{python2_sitearch}/libxsltmod.so
7999f5
%doc python/libxsltclass.txt
7999f5
%doc python/tests/*.py
7999f5
%doc python/tests/*.xml
7999f5
%doc python/tests/*.xsl
7999f5
%endif # with python2
7999f5
7999f5
%changelog
bf0b08
* Thu Jan 09 2020 David King <dking@redhat.com> - 1.1.32-5
bf0b08
- Fix CVE-2019-18197 (#1775517)
bf0b08
- Fix CVE-2019-11068 (#1715732)
bf0b08
7999f5
* Thu Jan 09 2020 David King <dking@redhat.com> - 1.1.32-4
7999f5
- Fix multilib issues with devel subpackage (#1765632)
7999f5
7999f5
* Mon Jun 25 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.1.32-3
7999f5
- Conditionalize the python2 subpackage
7999f5
7999f5
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.32-2
7999f5
- Fix typo in Requires
7999f5
7999f5
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.32-1
7999f5
- Update to 1.1.32
7999f5
- Cleanup spec
7999f5
- Re-enable hardened build
7999f5
7999f5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.30-5
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7999f5
7999f5
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.30-4
7999f5
- Switch to %%ldconfig_scriptlets
7999f5
7999f5
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.30-3
7999f5
- Update Python 2 dependency declarations to new packaging standards
7999f5
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
7999f5
7999f5
* Wed Oct 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.30-2
7999f5
- Fix broken xslt-config binary
7999f5
7999f5
* Mon Sep  4 2017 Daniel Veillard <veillard@redhat.com> 1.1.30-1
7999f5
- Update to 1.1.30
7999f5
7999f5
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.29-6
7999f5
- Add Provides for the old name without %%_isa
7999f5
7999f5
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.29-5
7999f5
- Python 2 binary package renamed to python2-libxslt
7999f5
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7999f5
7999f5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.29-4
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7999f5
7999f5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.29-3
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7999f5
7999f5
* Mon Jun 26 2017 Petr Pisar <ppisar@redhat.com> - 1.1.29-2
7999f5
- Rebuild against glibc without xlocale.h (bug #1464640)
7999f5
7999f5
* Wed Mar 08 2017 Petr Å abata <contyk@redhat.com> - 1.1.29-1
7999f5
- 1.1.29 bump
7999f5
7999f5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.28-14
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7999f5
7999f5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-13
7999f5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7999f5
7999f5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.28-12
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7999f5
7999f5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-11
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7999f5
7999f5
* Fri Mar  6 2015 Daniel Veillard <veillard@redhat.com> 1.1.28-10
7999f5
- desactivate the hardened build as it seems buggy #1199522
7999f5
7999f5
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.1.28-9
7999f5
- Rebuilt for Fedora 23 Change
7999f5
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
7999f5
7999f5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-8
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7999f5
7999f5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-7
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7999f5
7999f5
* Thu Apr 24 2014 Tomas Mraz <tmraz@redhat.com> - 1.1.28-6
7999f5
- Rebuild for new libgcrypt
7999f5
7999f5
* Tue Aug  6 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.28-5
7999f5
- Fix build with unversioned %%{_docdir_fmt}, ship Python examples only once.
7999f5
7999f5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-4
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7999f5
7999f5
* Fri Jun 21 2013 Matthias Clasen <mclasen@redhat.com> - 1.1.28-3
7999f5
- Don't ship api docs twice (they were included in both
7999f5
  the main and the devel package, by accident (need to save
7999f5
  space on the f19 live images)
7999f5
7999f5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.28-2
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7999f5
7999f5
* Wed Nov 21 2012 Daniel Veillard <veillard@redhat.com> - 1.1.28-1
7999f5
- upstream release of libxslt-1.1.28
7999f5
- a few bug fixes and cleanups
7999f5
7999f5
* Tue Oct  9 2012 Daniel Veillard <veillard@redhat.com> - 1.1.27-2
7999f5
- fix a regression in default namespace handling
7999f5
7999f5
* Wed Sep 12 2012 Daniel Veillard <veillard@redhat.com> - 1.1.27-1
7999f5
- upstream release of libxslt-1.1.27
7999f5
- a lot of bug fixes and improvements
7999f5
7999f5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.26-10
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7999f5
7999f5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.26-9
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7999f5
7999f5
* Sun Mar 20 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.26-8
7999f5
- ChangeLog: fix character encoding
7999f5
- Restore timestamps for patched documentation files
7999f5
7999f5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.26-7
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7999f5
7999f5
* Fri Dec 17 2010 Dan HorĂ¡k <dan[at]danny.cz> - 1.1.26-6
7999f5
- libexslt needs libgcrypt-devel via its pkgconfig file
7999f5
7999f5
* Mon Oct 25 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.1.26-5
7999f5
- Patch from Paul Howarth for converting files to utf8 (#226088)
7999f5
7999f5
* Tue Oct 05 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.1.26-4
7999f5
- Merge-review cleanup (#226088)
7999f5
7999f5
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.26-3
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
7999f5
7999f5
* Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.26-2
7999f5
- disable static libs
7999f5
7999f5
* Thu Sep 24 2009 Daniel Veillard <veillard@redhat.com> 1.1.26-1
7999f5
- couple of bug fixes
7999f5
- export a symbol needed by lxml
7999f5
7999f5
* Mon Sep 21 2009 Daniel Veillard <veillard@redhat.com> 1.1.25-2
7999f5
- fix a locking bug in 1.1.25
7999f5
7999f5
* Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> 1.1.25-1
7999f5
- release of 1.1.25
7999f5
- Add API versioning  for libxslt shared library
7999f5
- xsl:sort lang support using the locale
7999f5
- many bug fixes
7999f5
7999f5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-5
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7999f5
7999f5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-4
7999f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7999f5
7999f5
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.1.24-3
7999f5
- Rebuild for Python 2.6
7999f5
7999f5
* Wed Oct  8 2008 Daniel Veillard <veillard@redhat.com> 1.1.24-2.fc10
7999f5
- CVE-2008-2935 fix
7999f5
7999f5
* Tue May 13 2008 Daniel Veillard <veillard@redhat.com> 1.1.24-1.fc10
7999f5
- release of 1.1.24
7999f5
- fixes a few bugs including the key initialization problem
7999f5
- tentative fix for multiarch devel problems
7999f5
7999f5
* Mon Apr 28 2008 Daniel Veillard <veillard@redhat.com> 1.1.23-3.fc10
7999f5
- and the previous patch was incomplte breaking the python bindings
7999f5
  see 444317 and 444455
7999f5
7999f5
* Tue Apr 22 2008 Daniel Veillard <veillard@redhat.com> 1.1.23-2.fc10
7999f5
- revert a key initialization patch from 1.1.23 which seems broken
7999f5
  see rhbz#442097
7999f5
7999f5
* Tue Apr  8 2008 Daniel Veillard <veillard@redhat.com> 1.1.23-1.fc9
7999f5
- upstream release 1.1.23
7999f5
- bugfixes
7999f5
7999f5
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.22-2
7999f5
- Autorebuild for GCC 4.3
7999f5
7999f5
* Thu Aug 23 2007 Daniel Veillard <veillard@redhat.com> 1.1.22-1
7999f5
- upstream release 1.1.22 see http://xmlsoft.org/XSLT/news.html
7999f5
7999f5
* Tue Jun 12 2007 Daniel Veillard <veillard@redhat.com> 1.1.21-1
7999f5
- upstream release 1.1.21 see http://xmlsoft.org/XSLT/news.html
7999f5
7999f5
* Thu Feb 15 2007 Adam Jackson <ajax@redhat.com>
7999f5
- Add dist tag to Release to fix 6->7 upgrades.
7999f5
7999f5
* Wed Jan 17 2007 Daniel Veillard <veillard@redhat.com>
7999f5
- upstream release 1.1.20 see http://xmlsoft.org/XSLT/news.html
7999f5
7999f5
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 1.1.19-2
7999f5
- rebuild against python 2.5
7999f5
7999f5
* Wed Nov 29 2006 Daniel Veillard <veillard@redhat.com>
7999f5
- upstream release 1.1.19 see http://xmlsoft.org/XSLT/news.html
7999f5
7999f5
* Thu Oct 26 2006 Daniel Veillard <veillard@redhat.com>
7999f5
- upstream release 1.1.18 see http://xmlsoft.org/XSLT/news.html
7999f5
7999f5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.1.17-1.1
7999f5
- rebuild
7999f5
7999f5
* Tue Jun  6 2006 Daniel Veillard <veillard@redhat.com>
7999f5
- upstream release 1.1.17 see http://xmlsoft.org/XSLT/news.html