diff --git a/libxslt-1.1.35.tar.xz b/libxslt-1.1.35.tar.xz deleted file mode 100644 index 3769ca82fc3c0c09a7f76fa9ebe4fbe6abe3244c..0000000000000000000000000000000000000000 Binary files a/libxslt-1.1.35.tar.xz and /dev/null differ diff --git a/libxslt-1.1.37.tar.xz b/libxslt-1.1.37.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..c4073daee96bd122e293ccca5a2afc717858d35c Binary files /dev/null and b/libxslt-1.1.37.tar.xz differ diff --git a/libxslt.spec b/libxslt.spec index a5d693e1ddf1b26d32a2bedb99908b793ac3ecb0..2f627874329bc9c3ea12b8bb6bf7db7d23cf5e81 100644 --- a/libxslt.spec +++ b/libxslt.spec @@ -1,7 +1,7 @@ -%define anolis_release 2 +%define anolis_release 1 Name: libxslt Summary: Library providing the Gnome XSLT engine -Version: 1.1.35 +Version: 1.1.37 Release: %{anolis_release}%{?dist} License: MIT @@ -10,14 +10,10 @@ Source0: https://download.gnome.org/sources/%{name}/1.1/%{name}-%{version Provides: xsltproc = %{version}-%{release} -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: libtool BuildRequires: make BuildRequires: gcc BuildRequires: pkgconfig(libxml-2.0) >= 2.6.27 - %description This C library allows to transform XML files into other XML files (or HTML, text, ...) using the standard XSLT stylesheet transformation @@ -35,27 +31,39 @@ The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Development libraries and header files for %{name} Requires: %{name} = %{version}-%{release} -Requires: libgpg-error-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package -n python3-libxslt +Summary: Python 3 bindings for %{name} +BuildRequires: python3-devel +BuildRequires: python3-libxml2 +Requires: %{name} = %{version}-%{release} +Requires: python3-libxml2 +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-libxslt +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 to parse sytlesheets, uses the libxml2-python +to load and save XML and HTML files. Direct access to XPath and +the XSLT transformation context are possible to extend the XSLT language +with XPath functions written in Python. %prep %autosetup -p1 chmod 644 python/tests/* %build -autoreconf -vfi -%configure --disable-static --disable-silent-rules --with-python=no --with-crypto=no +%configure --disable-static --disable-silent-rules --with-python=yes --with-crypto=no %make_build %install %make_install -find %{buildroot} -name '*.la' -print -delete -# multiarch crazyness on timestamp differences -touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config rm -vrf %{buildroot}%{_docdir} %generate_compatibility_deps @@ -63,8 +71,6 @@ rm -vrf %{buildroot}%{_docdir} %check %make_build tests -%ldconfig_scriptlets - %files %dir %{abidir} %license Copyright @@ -73,12 +79,11 @@ rm -vrf %{buildroot}%{_docdir} %{_libdir}/libexslt.so.* %{_libdir}/libxslt-plugins/ %{_mandir}/man1/xsltproc.1* -%{abidir}/xsltproc-option.list %{abidir}/libxslt.dump %{abidir}/libexslt.dump %files doc -%doc AUTHORS ChangeLog NEWS README FEATURES +%doc AUTHORS NEWS README FEATURES %files devel %doc doc/libxslt-api.xml @@ -87,13 +92,10 @@ rm -vrf %{buildroot}%{_docdir} %doc doc/EXSLT/libexslt-refs.xml %doc %{_mandir}/man3/libxslt.3* %doc %{_mandir}/man3/libexslt.3* -%doc doc/*.html doc/html doc/*.gif doc/*.png -%doc doc/images %doc doc/tutorial %doc doc/tutorial2 -%doc doc/EXSLT -%{_datadir}/gtk-doc/ -%{_libdir}/cmake/libxslt/ +%{_datadir}/gtk-doc/* +%{_libdir}/cmake/libxslt %{_libdir}/libxslt.so %{_libdir}/libexslt.so %{_libdir}/xsltConf.sh @@ -105,8 +107,21 @@ rm -vrf %{buildroot}%{_docdir} %{_bindir}/xslt-config %{abidir}/xslt-config-option.list +%files -n python3-libxslt +%{python3_sitelib}/libxslt.py* +%{python3_sitearch}/libxsltmod.so +%{python3_sitelib}/__pycache__/libxslt* +%doc python/libxsltclass.txt +%doc python/tests/*.py +%doc python/tests/*.xml +%doc python/tests/*.xsl +%{abidir}/libxsltmod.dump %changelog +* Sun Nov 27 2022 Funda Wang - 1.1.37-1 +- New version 1.1.37 +- Reenable python as upstream does + * Wed Oct 19 2022 mgb01105731 - 1.1.35-2 - optimise spec file & add doc package