Comment out Python bindings until upstream can convert them to Python 3.
https://bugzilla.redhat.com/show_bug.cgi?id=1738016
This commit is contained in:
parent
20dbf0c258
commit
4d440de998
43
libxslt.spec
43
libxslt.spec
@ -1,7 +1,7 @@
|
|||||||
Name: libxslt
|
Name: libxslt
|
||||||
Summary: Library providing the Gnome XSLT engine
|
Summary: Library providing the Gnome XSLT engine
|
||||||
Version: 1.1.33
|
Version: 1.1.33
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://xmlsoft.org/XSLT
|
URL: http://xmlsoft.org/XSLT
|
||||||
@ -39,19 +39,20 @@ Requires: libgpg-error-devel%{?_isa}
|
|||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%package -n python2-libxslt
|
%if 0
|
||||||
Summary: Python 2 bindings for %{name}
|
# Upstream package has not been ported to Python 3. I have
|
||||||
BuildRequires: python2-devel
|
# converted this section so it could be used to compile the
|
||||||
BuildRequires: python2-libxml2
|
# Python 3 bindings one day once that has happened, but
|
||||||
|
# commented it out. - RWMJ 2019-09-10
|
||||||
|
%package -n python3-libxslt
|
||||||
|
Summary: Python 3 bindings for %{name}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-libxml2
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: python2-libxml2
|
Requires: python3-libxml2
|
||||||
%{?python_provide:%python_provide python2-libxslt}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
# Remove before F30
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-libxslt
|
%description -n python3-libxslt
|
||||||
The libxslt-python package contains a module that permits applications
|
The libxslt-python package contains a module that permits applications
|
||||||
written in the Python programming language to use the interface
|
written in the Python programming language to use the interface
|
||||||
supplied by the libxslt library to apply XSLT transformations.
|
supplied by the libxslt library to apply XSLT transformations.
|
||||||
@ -60,6 +61,7 @@ This library allows to parse sytlesheets, uses the libxml2-python
|
|||||||
to load and save XML and HTML files. Direct access to XPath and
|
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.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
@ -67,8 +69,9 @@ chmod 644 python/tests/*
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -vfi
|
autoreconf -vfi
|
||||||
export PYTHON=%{__python2}
|
#export PYTHON=%{__python3}
|
||||||
%configure --disable-static --disable-silent-rules --with-python
|
#%configure --disable-static --disable-silent-rules --with-python
|
||||||
|
%configure --disable-static --disable-silent-rules
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -114,15 +117,21 @@ rm -vrf %{buildroot}%{_docdir}
|
|||||||
%{_libdir}/pkgconfig/libexslt.pc
|
%{_libdir}/pkgconfig/libexslt.pc
|
||||||
%{_bindir}/xslt-config
|
%{_bindir}/xslt-config
|
||||||
|
|
||||||
%files -n python2-libxslt
|
%if 0
|
||||||
%{python2_sitearch}/libxslt.py*
|
%files -n python3-libxslt
|
||||||
%{python2_sitearch}/libxsltmod.so
|
%{python3_sitearch}/libxslt.py*
|
||||||
|
%{python3_sitearch}/libxsltmod.so
|
||||||
|
%{python3_sitearch}/__pycache__/nbd*.py*
|
||||||
%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
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 10 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1.33-3
|
||||||
|
- Comment out Python bindings until upstream can convert them to Python 3.
|
||||||
|
|
||||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.33-2
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.33-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user