Compare commits

...

No commits in common. "c8-stream-3.8" and "c8-beta-stream-3.9" have entirely different histories.

3 changed files with 29 additions and 52 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/idna-2.8.tar.gz SOURCES/idna-2.10.tar.gz

View File

@ -1 +1 @@
c1e59def26dac74a2ec53181032df76d40368657 SOURCES/idna-2.8.tar.gz ab9b7f0143cc0095da8439939eee9ce153af5f60 SOURCES/idna-2.10.tar.gz

View File

@ -1,12 +1,8 @@
%global with_python3 1
%global srcname idna %global srcname idna
# Prepared for Python 2 removal
%bcond_with python2
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.8 Version: 2.10
Release: 6%{?dist} Release: 3%{?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
@ -18,13 +14,9 @@ BuildArch: noarch
# See: https://projects.engineering.redhat.com/browse/RCM-72605 # See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686 ExcludeArch: i686
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%endif
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-setuptools
%description %description
A library to support the Internationalised Domain Names in Applications (IDNA) A library to support the Internationalised Domain Names in Applications (IDNA)
@ -36,22 +28,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.
%if %{with python2}
%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.
%endif
%package -n python%{python3_pkgversion}-%{srcname} %package -n python%{python3_pkgversion}-%{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}}
@ -72,44 +48,45 @@ currently only supports the older 2003 specification.
rm -rf %{srcname}.egg-info rm -rf %{srcname}.egg-info
%build %build
%if %{with python2}
%py2_build
%endif
%py3_build %py3_build
%install %install
%py3_install %py3_install
%if %{with python2}
%py2_install
%endif
%check %check
%if %{with python2}
%{__python2} setup.py test
%endif
%{__python3} setup.py test %{__python3} setup.py test
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE.rst
%doc README.rst HISTORY.rst
%{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
%endif
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE.rst %license LICENSE.rst
%doc README.rst HISTORY.rst %doc README.rst HISTORY.rst
%{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%changelog
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 2.8-6
- Exclude unsupported i686 arch
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 2.8-5 %changelog
- Adjusted for Python 3.8 module in RHEL 8 * Wed Jan 13 2021 Tomas Orsava <torsava@redhat.com> - 2.10-3
- Convert from Fedora to the python39 module in RHEL8
- Resolves: rhbz#1877430
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 07 2020 Lumír Balhar <lbalhar@redhat.com> - 2.10-1
- Update to 2.10 (#1851653)
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.9-2
- Rebuilt for Python 3.9
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 2.9-1
- Update to 2.9 (#1803654)
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* 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)
@ -153,7 +130,7 @@ rm -rf %{srcname}.egg-info
- Update to version 2.4 - Update to version 2.4
* Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1 * Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1
- Resolves bugzilla 1427499 Update to 2.3 for IDNAError bugfix and memory improvement - Resolves: rhbz#1427499 Update to 2.3 for IDNAError bugfix and memory improvement
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1 * Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1
- Update to version 2.2 (#1406757) - Update to version 2.2 (#1406757)