Browse Source

libxslt-1.1.37-1

Tomohiro "Tomo-p" KATO 1 year ago
parent
commit
b0432e1a05
1 changed files with 18 additions and 11 deletions
  1. 18 11
      lib/libx/libxslt/libxslt-vl.spec

+ 18 - 11
lib/libx/libxslt/libxslt-vl.spec

@@ -1,10 +1,12 @@
+%bcond_without python3
+
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 %define _unpackaged_files_terminate_build 1
 
 Summary: Library providing the Gnome XSLT engine
 Summary(ja): XSLT エンジンライブラリ
 Name: libxslt
-Version: 1.1.35
+Version: 1.1.37
 Release: 1%{_dist_release}
 Group: system
 Vendor: Project Vine
@@ -153,11 +155,11 @@ perl -pi -e 's|sysconfig\.get_python_lib\(\)|sysconfig.get_python_lib(1)|' confi
 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} )
+( export PYTHON=%{__python}; cd py2 && %configure --without-crypto --with-python=%{__python} --enable-static)
 make %{?_smp_mflags} -C py2
 
 %if %{with python3}
-( cd py3 && %configure --without-crypto --cache-file=../config.cache --with-python=%{__python3} )
+( export PYTHON=%{__python3}; cd py3 && %configure --without-crypto --with-python=%{__python3} --enable-static)
 make %{?_smp_mflags} -C py3
 %endif
 
@@ -180,6 +182,8 @@ find %{buildroot} -name '*.la' -print -delete
 touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config
 rm -vrf %{buildroot}%{_docdir}
 
+rm -f %{buildroot}%{python_sitelib}/libxslt.py{c,o}
+
 
 %clean
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
@@ -188,8 +192,8 @@ rm -vrf %{buildroot}%{_docdir}
 %files
 %defattr(-, root, root)
 %license Copyright
-%doc AUTHORS ChangeLog NEWS README TODO FEATURES
-%doc doc/*.html doc/html doc/tutorial doc/EXSLT
+%doc AUTHORS NEWS README TODO FEATURES
+%doc doc/*.html doc/tutorial doc/EXSLT
 %{_bindir}/xsltproc
 %{_libdir}/lib*.so.*
 %{_mandir}/man1/xsltproc.1*
@@ -197,7 +201,7 @@ rm -vrf %{buildroot}%{_docdir}
 %files devel
 %defattr(-, root, root)
 %license Copyright
-%doc AUTHORS ChangeLog NEWS README TODO FEATURES
+%doc AUTHORS NEWS README TODO FEATURES
 %{_includedir}/*
 %{_libdir}/lib*.so
 %{_libdir}/*.sh
@@ -217,24 +221,24 @@ rm -vrf %{buildroot}%{_docdir}
 %files python
 %defattr(-, root, root)
 %license Copyright
-%doc AUTHORS ChangeLog NEWS README FEATURES
+%doc AUTHORS NEWS README FEATURES
 %doc python/tests/*.py
 %doc python/tests/*.xml
 %doc python/tests/*.xsl
-%{python_sitearch}/libxslt.py
+%{python_sitelib}/libxslt.py
 %{python_sitearch}/libxsltmod*
 
 %if %{with python3}
 %files -n python3-%{name}
 %defattr(-, root, root)
 %license Copyright
-%doc AUTHORS ChangeLog NEWS README FEATURES
+%doc AUTHORS NEWS README FEATURES
 %doc python/TODO
-%doc python/libxsltclass.txt
 %doc python/tests/*.py
 %doc python/tests/*.xml
 %doc python/tests/*.xsl
-%{python3_sitearch}/libxslt.py
+%{python3_sitelib}/libxslt.py
+%{python3_sitelib}/__pycache__/*
 %{python3_sitearch}/libxsltmod*
 %endif
 
@@ -253,6 +257,9 @@ rm -vrf %{buildroot}%{_docdir}
 
 
 %changelog
+* Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.37-1
+- updated to 1.1.37.
+
 * Thu May 12 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.35-1
 - updated to 1.1.35.