From 23c9cff0c6fefd187287f6e16295969bedb85e70 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Apr 2020 05:13:32 -0400 Subject: [PATCH] import python-idna-2.8-6.module+el8.2.0+5234+f98739b6 --- .gitignore | 1 + .python-idna.metadata | 1 + SPECS/python-idna.spec | 198 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+) create mode 100644 .gitignore create mode 100644 .python-idna.metadata create mode 100644 SPECS/python-idna.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a87a65c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/idna-2.8.tar.gz diff --git a/.python-idna.metadata b/.python-idna.metadata new file mode 100644 index 0000000..68fb3d3 --- /dev/null +++ b/.python-idna.metadata @@ -0,0 +1 @@ +c1e59def26dac74a2ec53181032df76d40368657 SOURCES/idna-2.8.tar.gz diff --git a/SPECS/python-idna.spec b/SPECS/python-idna.spec new file mode 100644 index 0000000..8636886 --- /dev/null +++ b/SPECS/python-idna.spec @@ -0,0 +1,198 @@ +%global with_python3 1 +%global srcname idna + +# Prepared for Python 2 removal +%bcond_with python2 + +Name: python-%{srcname} +Version: 2.8 +Release: 6%{?dist} +Summary: Internationalized Domain Names in Applications (IDNA) + +License: BSD and Python and Unicode +URL: https://github.com/kjd/idna +Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +# Exclude i686 arch. Due to a modularity issue it's being added to the +# x86_64 compose of CRB, but we don't want to ship it at all. +# See: https://projects.engineering.redhat.com/browse/RCM-72605 +ExcludeArch: i686 + +%if %{with python2} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%endif +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-rpm-macros + +%description +A library to support the Internationalised Domain Names in Applications (IDNA) +protocol as specified in RFC 5891 . 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. + +%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 . 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} +Summary: Internationalized Domain Names in Applications (IDNA) +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python%{python3_pkgversion}-%{srcname} +A library to support the Internationalised Domain Names in Applications (IDNA) +protocol as specified in RFC 5891 . 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. + +%prep +%autosetup -p1 -n %{srcname}-%{version} +# Remove bundled egg-info +rm -rf %{srcname}.egg-info + +%build +%if %{with python2} +%py2_build +%endif +%py3_build + +%install +%py3_install +%if %{with python2} +%py2_install +%endif + +%check +%if %{with python2} +%{__python2} setup.py test +%endif +%{__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} +%license LICENSE.rst +%doc README.rst HISTORY.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Dec 13 2019 Tomas Orsava - 2.8-6 +- Exclude unsupported i686 arch + +* Wed Nov 20 2019 Lumír Balhar - 2.8-5 +- Adjusted for Python 3.8 module in RHEL 8 + +* Thu Oct 03 2019 Miro Hrončok - 2.8-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Thu Aug 15 2019 Miro Hrončok - 2.8-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 28 2019 Jeremy Cline - 2.8-1 +- Update to v2.8 +- Drop python version conditionals + +* Sat Feb 02 2019 Fedora Release Engineering - 2.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Miro Hrončok - 2.7-2 +- Rebuilt for Python 3.7 + +* Tue Jun 12 2018 Jeremy Cline - 2.7-1 +- Update to v2.7 (rhbz 1589803) + +* Fri Feb 09 2018 Fedora Release Engineering - 2.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 19 2018 Iryna Shcherbina - 2.5-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Mar 07 2017 Jeremy Cline - 2.5-1 +- Update to version 2.5 + +* Wed Mar 01 2017 Jeremy Cline - 2.4-1 +- Update to version 2.4 + +* Tue Feb 28 2017 Paul Wouters - 2.3-1 +- Resolves bugzilla 1427499 Update to 2.3 for IDNAError bugfix and memory improvement + +* Thu Feb 09 2017 Jeremy Cline - 2.2-1 +- Update to version 2.2 (#1406757) + +* Fri Dec 09 2016 Charalampos Stratakis - 2.1-3 +- Rebuild for Python 3.6 + +* Mon Nov 28 2016 Orion Poplawski - 2.1-2 +- Ship python2-idna +- Enable python3 for EPEL +- Modernize spec + +* Mon Oct 17 2016 tom.prince@ualberta.net - 2.1-1 +- Bump version. + +* Tue Jul 19 2016 Fedora Release Engineering - 2.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Nov 04 2015 Robert Kuska - 2.0-2 +- Rebuilt for Python3.5 rebuild + +* Thu Aug 13 2015 Paul Wouters - 2.0-1 +- Update to 2.0 which is required by python-cryptography + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Dec 31 2014 tom.prince@ualberta.net - 1.0-1 +- Bump version. + +* Mon Oct 27 2014 tom.prince@ualberta.net - 0.8-3 +- Update licences. + +* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-2 +- Be more specfic about .egg-info directories. +- Use python2-devel + +* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1 +- Initial package.