|
@@ -4,7 +4,7 @@
|
|
Summary: Library providing the Gnome XSLT engine
|
|
Summary: Library providing the Gnome XSLT engine
|
|
Summary(ja): XSLT エンジンライブラリ
|
|
Summary(ja): XSLT エンジンライブラリ
|
|
Name: libxslt
|
|
Name: libxslt
|
|
-Version: 1.1.32
|
|
+Version: 1.1.33
|
|
Release: 1%{_dist_release}
|
|
Release: 1%{_dist_release}
|
|
License: MIT
|
|
License: MIT
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -12,10 +12,16 @@ URL: http://xmlsoft.org/XSLT/
|
|
Source0: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
|
|
Source0: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: libxml2-devel >= 2.6.27
|
|
+BuildRequires: libtirpc-devel
|
|
|
|
+BuildRequires: libxcrypt-devel
|
|
|
|
+BuildRequires: libxml2-devel >= 2.9.9
|
|
BuildRequires: zlib-devel >= 1.1.4
|
|
BuildRequires: zlib-devel >= 1.1.4
|
|
-BuildRequires: python python-devel perl libxml2-python
|
|
+BuildRequires: perl
|
|
-Requires: libxml2 >= 2.6.27
|
|
+BuildRequires: python python-devel python-rpm-macros libxml2-python
|
|
|
|
+%if %{with python3}
|
|
|
|
+BuildRequires: python3 python3-devel python3-rpm-macros python3-libxml2
|
|
|
|
+%endif
|
|
|
|
+Requires: libxml2 >= 2.9.9
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -58,7 +64,7 @@ The libxslt-static package contains the static library for libxslt.
|
|
Summary: Python bindings for the libxslt library
|
|
Summary: Python bindings for the libxslt library
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: libxslt = %{version}-%{release}
|
|
Requires: libxslt = %{version}-%{release}
|
|
-Requires: libxml2 >= 2.6.27
|
|
+Requires: libxml2 >= 2.9.9
|
|
Requires: python
|
|
Requires: python
|
|
|
|
|
|
%description python
|
|
%description python
|
|
@@ -71,6 +77,26 @@ to load and save XML and HTML files. Direct access to XPath and
|
|
the XSLT transformation context are possible to extend the XSLT language
|
|
the XSLT transformation context are possible to extend the XSLT language
|
|
with XPath functions written in Python.
|
|
with XPath functions written in Python.
|
|
|
|
|
|
|
|
+%if %{with python3}
|
|
|
|
+%package -n python3-%{name}
|
|
|
|
+Summary: Python bindings for the libxslt library
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: libxslt = %{version}-%{release}
|
|
|
|
+Requires: libxml2 >= 2.9.9
|
|
|
|
+Requires: python3
|
|
|
|
+
|
|
|
|
+%description -n python3-%{name}
|
|
|
|
+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.
|
|
|
|
+
|
|
|
|
+%endif
|
|
|
|
+
|
|
# compat32
|
|
# compat32
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: Library providing the Gnome XSLT engine
|
|
Summary: Library providing the Gnome XSLT engine
|
|
@@ -107,37 +133,39 @@ XSLTのための開発用ファイルです。
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+chmod 644 python/tests/*
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --without-crypto
|
|
+perl -pi -e 's|sysconfig\.get_python_lib\(\)|sysconfig.get_python_lib(1)|' configure
|
|
-make %{?_smp_mflags}
|
|
+
|
|
|
|
+mkdir py2 py3
|
|
|
|
+%global _configure ../configure
|
|
|
|
+%global _configure_disable_silent_rules 1
|
|
|
|
+( export PYTHON_SITE_PACKAGES=%{python_sitearch}; cd py2 && %configure --without-crypto --cache-file=../config.cache --with-python=%{__python} )
|
|
|
|
+make %{?_smp_mflags} -C py2
|
|
|
|
+
|
|
|
|
+%if %{with python3}
|
|
|
|
+( cd py3 && %configure --without-crypto --cache-file=../config.cache --with-python=%{__python3} )
|
|
|
|
+make %{?_smp_mflags} -C py3
|
|
|
|
+%endif
|
|
|
|
|
|
%install
|
|
%install
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT install
|
|
+make install -C py2 DESTDIR=$RPM_BUILD_ROOT
|
|
-
|
|
+
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
+find %{buildroot}%{python_sitearch} -name '*.a' -print -delete
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
|
|
+
|
|
-
|
|
+%if %{with python3}
|
|
-#
|
|
+make install -C py3 DESTDIR=$RPM_BUILD_ROOT
|
|
-# this is a bit ugly but tries to generate the bindings for all versions
|
|
+find %{buildroot}%{python3_sitearch} -name '*.a' -print -delete
|
|
-# of python installed
|
|
+%endif
|
|
-#for i in %{prefix}/include/python*
|
|
+
|
|
-#do
|
|
+find %{buildroot} -name '*.la' -print -delete
|
|
-# py_version=`echo $i | sed "s+%{prefix}/include/python++"`
|
|
+
|
|
-# if test -x %{prefix}/bin/python$py_version
|
|
+# multiarch crazyness on timestamp differences
|
|
-# then
|
|
+touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config
|
|
-# echo generating bindings for Python $py_version
|
|
+rm -vrf %{buildroot}%{_docdir}
|
|
-# (cd python ; make clean ; \
|
|
|
|
-# make PYTHON="%{prefix}/bin/python$py_version" \
|
|
|
|
-# PYTHON_VERSION="$py_version"; \
|
|
|
|
-# make PYTHON="%{prefix}/bin/python$py_version" \
|
|
|
|
-# PYTHON_VERSION="$py_version" \
|
|
|
|
-# prefix=$RPM_BUILD_ROOT%{prefix} \
|
|
|
|
-# mandir=$RPM_BUILD_ROOT%{_mandir} install)
|
|
|
|
-# fi
|
|
|
|
-#done
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
@@ -152,7 +180,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
|
|
+%license Copyright
|
|
|
|
+%doc AUTHORS ChangeLog NEWS README TODO FEATURES
|
|
%doc doc/*.html doc/html doc/tutorial doc/EXSLT
|
|
%doc doc/*.html doc/html doc/tutorial doc/EXSLT
|
|
%{_bindir}/xsltproc
|
|
%{_bindir}/xsltproc
|
|
%{_libdir}/lib*.so.*
|
|
%{_libdir}/lib*.so.*
|
|
@@ -160,7 +189,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
|
|
+%license Copyright
|
|
|
|
+%doc AUTHORS ChangeLog NEWS README TODO FEATURES
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/*.sh
|
|
%{_libdir}/*.sh
|
|
@@ -175,14 +205,29 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
|
|
|
|
|
|
%files python
|
|
%files python
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc AUTHORS ChangeLog NEWS README Copyright FEATURES
|
|
+%license Copyright
|
|
|
|
+%doc AUTHORS ChangeLog NEWS README FEATURES
|
|
|
|
+%doc python/TODO
|
|
|
|
+%doc python/libxsltclass.txt
|
|
|
|
+%doc python/tests/*.py
|
|
|
|
+%doc python/tests/*.xml
|
|
|
|
+%doc python/tests/*.xsl
|
|
|
|
+%{python_sitearch}/libxslt.py
|
|
|
|
+%{python_sitearch}/libxsltmod*
|
|
|
|
+
|
|
|
|
+%if %{with python3}
|
|
|
|
+%files -n python3-%{name}
|
|
|
|
+%defattr(-, root, root)
|
|
|
|
+%license Copyright
|
|
|
|
+%doc AUTHORS ChangeLog NEWS README FEATURES
|
|
%doc python/TODO
|
|
%doc python/TODO
|
|
%doc python/libxsltclass.txt
|
|
%doc python/libxsltclass.txt
|
|
%doc python/tests/*.py
|
|
%doc python/tests/*.py
|
|
%doc python/tests/*.xml
|
|
%doc python/tests/*.xml
|
|
%doc python/tests/*.xsl
|
|
%doc python/tests/*.xsl
|
|
-%{_libdir}/python*/site-packages/libxslt.py
|
|
+%{python3_sitearch}/libxslt.py
|
|
-%{_libdir}/python*/site-packages/libxsltmod*
|
|
+%{python3_sitearch}/libxsltmod*
|
|
|
|
+%endif
|
|
|
|
|
|
# compat32
|
|
# compat32
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
@@ -198,6 +243,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.33-1
|
|
|
|
+- updated to 1.1.33.
|
|
|
|
+- added a sub-package "python3-libxslt".
|
|
|
|
+- added BR:libxcrypt-devel.
|
|
|
|
+- added BR:libtirpc-devel.
|
|
|
|
+
|
|
* Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.32-1
|
|
* Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.32-1
|
|
- updated to 1.1.32.
|
|
- updated to 1.1.32.
|
|
|
|
|