Subpackage python2-libxml2 has been removed

This commit is contained in:
Miro Hrončok 2019-10-31 17:08:38 +01:00
parent db4e58d054
commit ad2c085c0c

View File

@ -1,6 +1,6 @@
Name: libxml2
Version: 2.9.9
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Library providing XML and HTML support
License: MIT
@ -53,24 +53,6 @@ Summary: Static library for libxml2
Static library for libxml2 provided for specific uses or shaving a few
microseconds when parsing, do not link to them for generic purpose packages.
%package -n python2-%{name}
%{?python_provide:%python_provide python2-%{name}}
Summary: Python bindings for the libxml2 library
BuildRequires: python2-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
%description -n python2-%{name}
The libxml2-python package contains a Python 2 module that permits applications
written in the Python programming language, version 2, to use the interface
supplied by the libxml2 library to manipulate XML files.
This library allows to manipulate XML files. It includes support
to read, modify and write XML and HTML files. There is DTDs support
this includes parsing and validation even with complex DTDs, either
at parse time or later once the document has been modified.
%package -n python3-%{name}
Summary: Python 3 bindings for the libxml2 library
BuildRequires: python3-devel
@ -93,16 +75,13 @@ at parse time or later once the document has been modified.
find doc -type f -executable -print -exec chmod 0644 {} ';'
%build
mkdir py2 py3
mkdir py3
%global _configure ../configure
%global _configure_disable_silent_rules 1
( cd py2 && %configure --cache-file=../config.cache --with-python=%{__python2} )
( cd py3 && %configure --cache-file=../config.cache --with-python=%{__python3} )
%make_build -C py2
%make_build -C py3
%install
%make_install -C py2
%make_install -C py3
# multiarch crazyness on timestamp differences or Makefile/binaries for examples
@ -115,7 +94,6 @@ rm -vrf %{buildroot}%{_datadir}/doc/
gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
%check
%make_build runtests -C py2
%make_build runtests -C py3
%ldconfig_scriptlets
@ -150,13 +128,6 @@ gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
%license Copyright
%{_libdir}/libxml2.a
%files -n python2-%{name}
%doc python/TODO python/libxml2class.txt
%doc doc/*.py doc/python.html
%{python2_sitearch}/libxml2.py*
%{python2_sitearch}/drv_libxml2.py*
%{python2_sitearch}/libxml2mod.so
%files -n python3-%{name}
%doc python/TODO python/libxml2class.txt
%doc doc/*.py doc/python.html
@ -167,6 +138,10 @@ gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
%{python3_sitearch}/libxml2mod.so
%changelog
* Thu Oct 31 2019 Miro Hrončok <mhroncok@redhat.com> - 2.9.9-7
- Subpackage python2-libxml2 has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.9.9-6
- Rebuilt for Python 3.8.0rc1 (#1748018)