# # spec file for package libxslt-python # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define libname libxslt1 Name: libxslt-python Version: 1.1.29 Release: 1.1 Summary: Python Bindings for libxslt License: MIT Group: Development/Libraries/Python Url: http://xmlsoft.org/XSLT/ Source: ftp://xmlsoft.org/libxslt/libxslt-%{version}.tar.gz Patch0: libxslt-1.1.24-linkflags.patch # pbleser: don't build the doc subdir as it's broken and we don't install # it anyway; neither build the xsltproc subdir (not packaged here, faster) Patch1: libxslt-do_not_build_doc_nor_xsltproc.patch BuildRequires: libgcrypt-devel BuildRequires: libgpg-error-devel BuildRequires: libtool BuildRequires: libxml2-devel BuildRequires: libxml2-python BuildRequires: libxslt-tools #!BuildIgnore: python BuildRequires: python-devel BuildRequires: python-xml Requires: %{libname} = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libxslt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libxslt library to apply XSLT transformations. This library allows parsing stylesheets. It uses the libxml2-python to load and save XML and HTML files. Direct access to XPath and the XSLT transformation context are possible. Thus it is possible to extend the XSLT language with XPath functions written in Python. %prep %setup -q -n libxslt-%{version} %patch0 %patch1 %build autoreconf -fvi %configure \ --with-python=python \ --with-pic \ --disable-static \ --disable-silent-rules make %{?_smp_mflags} PYTHON_SITE_PACKAGES=%{py_sitedir} pythondir=%{py_sitedir} %install make install PYTHON_SITE_PACKAGES=%{py_sitedir} pythondir=%{py_sitedir} DESTDIR=%{buildroot} # Unwanted doc stuff rm -fr %{buildroot}%{_datadir}/doc # #223696 find %{buildroot} -type f -name "*.la" -delete -print # Stuff we won't package rm -rf %{buildroot}/%{_bindir}/* %{buildroot}/%{_libdir}/lib** %{buildroot}/%{_includedir}/* rm -rf %{buildroot}/%{_mandir}/* %{buildroot}/%{_libdir}/pkgconfig/* rm -rf %{buildroot}/%{_libdir}/xsltConf.sh %{buildroot}/%{_datadir}/aclocal/libxslt.m4 %check make %{?_smp_mflags} tests -C python %files %defattr(-, root, root) %{py_sitedir}/* %doc python/libxslt-python-api.xml %changelog * Sat Jun 11 2016 tchvatal@suse.com - Version update to 1.1.29 to match libxslt main package - Sort out with spec-cleaner - BuildIgnore python to avoid cycles - Run tests and do not install them as docs * Fri May 20 2016 kstreitova@suse.com - add libxslt-1.1.28-type_confusion_preprocess_attr.patch to fix type confusion in preprocessing attributes [bnc#952474], [CVE-2015-7995] * Wed Jan 16 2013 dl8fcl@darc.de - in spec file moved the "BuildRequires:" and "Requires:" tags behind "Version:" tag to have them read the variable correctly. * Thu Dec 6 2012 pascal.bleser@opensuse.org - update to 1.1.28: see changelog for libxslt1 1.1.28 for details - enforce having the same version of libxslt1 * Thu Feb 16 2012 coolo@suse.com - add libtool as buildrequire to fix compilation * Mon Nov 21 2011 jengelh@medozas.de - Remove redundant/unwanted tags/section (cf. specfile guidelines) * Tue Aug 2 2011 idonmez@novell.com - Add dependency on libgcrypt-devel and libgpg-error-devel for the libxslt-devel package. * Mon Aug 1 2011 idonmez@novell.com - Correctly obsolete libxslt package in the baselibs.conf too * Fri Jul 29 2011 idonmez@novell.com - Fix build by not using %%exclude * Fri Jul 29 2011 crrodriguez@opensuse.org - Rework build of this package in a sane way. * Wed Jul 21 2010 puzel@novell.com - updated to 1.1.26 - no python related fixes in this libxslt release * Fri Apr 11 2008 prusnak@suse.cz - updated to 1.1.23 * Documentation fix links for Cygwin DocBook setup (Philippe Bourcier) - xsltParseStylesheetDoc doc fix (Jason Viers) - fix manpage default maxdepth value * Bug fixes: - python segfault (Daniel Gryniewicz) - week-in-year bug fix (Maurice van der Pot) - fix python iterator problem (William Brack) - avoid garbage collection problems on str:tokenize and str:split and function results (William Brack and Peter Pawlowski) - superfluous re-generation of keys (William Brack) - remove superfluous code in xsltExtInitTest (Tony Graham) - func:result segfault fix (William Brack) - timezone offset problem (Peter Pawlowski), * Portability fixes: - old gcrypt support fix (Brent Cowgill) - Python portability patch (Stephane Bidoul) - VS 2008 fix (Rob Richard) * Tue Jan 22 2008 prusnak@suse.cz - build without strict aliasing (as main package does) * Tue Sep 18 2007 sbrabec@suse.cz - Updated to version 1.1.22: * Bug fixes: RVT cleanup problems, exclude-result-prefix bug, stylesheet compilation error handling, out of memory allocation errors, namespace problem on compound predicates, python space/tab inconsistencies, hook xsl:message to per transformation error callbacks, cached RVT problem, XPath context maintainance on choose, memory leaks in the math module, exclude-result-prefix induced namespace problem * Portability fixes: improve build with VS2005, fixing build on AIX, fix the security file checks on Windows. * Improvement: add an --encoding option to xsltproc. * Build: configure setup for TRIO_REPLACE_STDIO * Documentation: updated after change from CVs to SVN * Mon Aug 20 2007 sbrabec@suse.cz - Commented out NoSource to provide comfortable rebuild. * Thu Jan 25 2007 prusnak@suse.cz - update to 1.1.20 * sync to libxslt-1.1.20 - drop obsolete patches: * libxslt-transform.patch (included in update) * Thu Jan 11 2007 ke@suse.de - Adjust python-linkflags.patch for 1.1.19 and do not apply obsolete warn patch. * Tue Dec 12 2006 ke@suse.de - 1.1.19. * Tue Nov 28 2006 ke@suse.de - Do not install static Python module; reported by Andreas Hanke [#223696]. * Fri Jun 16 2006 ke@suse.de - 1.1.17. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Fri Sep 30 2005 aj@suse.de - Fix compiler warnings. * Fri Sep 16 2005 ke@suse.de - Update to version 1.1.15. * Wed Jul 6 2005 meissner@suse.de - removed -fno-strict-aliasing, not needed here. * Mon Apr 4 2005 ke@suse.de - Update to version 1.1.14. * Wed Nov 24 2004 mcihar@suse.cz - use rpm macros to build correcly with current python * Tue Nov 2 2004 ke@suse.de - Update to version 1.1.12. * Tue Oct 12 2004 ke@suse.de - Add libgcrypt* and libgpg-error* to neededforbuild. * Fri Oct 8 2004 ke@suse.de - Update to version 1.1.11. * Mon Aug 23 2004 ke@suse.de - Update to version 1.1.9. * Thu Aug 19 2004 schwab@suse.de - Fix a broken cast. * Wed Jul 14 2004 ke@suse.de - Update to version 1.1.8. * Fri May 21 2004 ke@suse.de - Update to version 1.1.7. * Tue Apr 20 2004 ke@suse.de - Update to version 1.1.6. * Fri Dec 12 2003 ke@suse.de - Update to version 1.1.1. * Wed Nov 5 2003 ke@suse.de - Update to version 1.1.0; for details cf. the libxslt changelog. * Fri Aug 29 2003 mcihar@suse.cz - require same python version as it was built with * Fri Aug 15 2003 ke@suse.de - Update to version 1.0.32; for details cf. the libxslt changelog. * Wed Jul 9 2003 ke@suse.de - Update to version 1.0.31; for details cf. the libxslt changelog. * Tue Jun 17 2003 sbrabec@suse.cz - Updated to version 1.0.30. * Mon May 26 2003 ke@suse.de - Remove unwanted files from $RPM_BUILD_ROOT. * Wed Apr 2 2003 ke@suse.de - Update to version 1.0.29; for details cf. the libxslt changelog. * Wed Mar 26 2003 ke@suse.de - Update to version 1.0.28; for details cf. the libxslt changelog. * Tue Feb 11 2003 ke@suse.de - Update to version 1.0.26; for details cf. the libxslt changelog. * Thu Feb 6 2003 ke@suse.de - Update to version 1.0.25; for details cf. the libxslt changelog. * Wed Jan 15 2003 ke@suse.de - Update to version 1.0.24. * Tue Nov 26 2002 ro@suse.de - split specfile to get rid of python dependencies in the main tree