Subpackage python2-idna has been removed

This commit is contained in:
Miro Hrončok 2019-11-25 00:43:43 +01:00
parent a1cd425489
commit 902ed5f45f

View File

@ -1,9 +1,8 @@
%global with_python3 1
%global srcname idna %global srcname idna
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.8 Version: 2.8
Release: 4%{?dist} Release: 5%{?dist}
Summary: Internationalized Domain Names in Applications (IDNA) Summary: Internationalized Domain Names in Applications (IDNA)
License: BSD and Python and Unicode License: BSD and Python and Unicode
@ -11,8 +10,6 @@ URL: https://github.com/kjd/idna
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
@ -26,20 +23,6 @@ The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but "encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification. currently only supports the older 2003 specification.
%package -n python2-%{srcname}
Summary: Internationalized Domain Names in Applications (IDNA)
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
A library to support the Internationalised Domain Names in Applications (IDNA)
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
version of the protocol is often referred to as "IDNA2008" and can produce
different results from the earlier standard from 2003.
The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification.
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: Internationalized Domain Names in Applications (IDNA) Summary: Internationalized Domain Names in Applications (IDNA)
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
@ -60,24 +43,15 @@ currently only supports the older 2003 specification.
rm -rf %{srcname}.egg-info rm -rf %{srcname}.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py3_install %py3_install
%py2_install
%check %check
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-%{srcname}
%license LICENSE.rst
%doc README.rst HISTORY.rst
%{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
%files -n python3-%{srcname} %files -n python3-%{srcname}
%license LICENSE.rst %license LICENSE.rst
%doc README.rst HISTORY.rst %doc README.rst HISTORY.rst
@ -85,6 +59,10 @@ rm -rf %{srcname}.egg-info
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Sun Nov 24 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-5
- Subpackage python2-idna 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.8-4 * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-4
- Rebuilt for Python 3.8.0rc1 (#1748018) - Rebuilt for Python 3.8.0rc1 (#1748018)