Blame SPECS/libxslt.spec

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