0b7e09
%global srcname idna
0b7e09
0b7e09
Name:           python-%{srcname}
0b7e09
Version:        2.10
0b7e09
Release:        3%{?dist}
0b7e09
Summary:        Internationalized Domain Names in Applications (IDNA)
0b7e09
0b7e09
License:        BSD and Python and Unicode
0b7e09
URL:            https://github.com/kjd/idna
0b7e09
Source0:        https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
0b7e09
BuildArch:      noarch
0b7e09
# Exclude i686 arch. Due to a modularity issue it's being added to the
0b7e09
# x86_64 compose of CRB, but we don't want to ship it at all.
0b7e09
# See: https://projects.engineering.redhat.com/browse/RCM-72605
0b7e09
ExcludeArch:    i686
0b7e09
0b7e09
BuildRequires:  python%{python3_pkgversion}-devel
0b7e09
BuildRequires:  python%{python3_pkgversion}-rpm-macros
0b7e09
BuildRequires:  python%{python3_pkgversion}-setuptools
0b7e09
0b7e09
%description
0b7e09
A library to support the Internationalised Domain Names in Applications (IDNA)
0b7e09
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
0b7e09
version of the protocol is often referred to as "IDNA2008" and can produce
0b7e09
different results from the earlier standard from 2003.
0b7e09
0b7e09
The library is also intended to act as a suitable drop-in replacement for the
0b7e09
"encodings.idna" module that comes with the Python standard library but
0b7e09
currently only supports the older 2003 specification.
0b7e09
0b7e09
%package -n python%{python3_pkgversion}-%{srcname}
0b7e09
Summary:        Internationalized Domain Names in Applications (IDNA)
0b7e09
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
0b7e09
0b7e09
%description -n python%{python3_pkgversion}-%{srcname}
0b7e09
A library to support the Internationalised Domain Names in Applications (IDNA)
0b7e09
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
0b7e09
version of the protocol is often referred to as "IDNA2008" and can produce
0b7e09
different results from the earlier standard from 2003.
0b7e09
0b7e09
The library is also intended to act as a suitable drop-in replacement for the
0b7e09
"encodings.idna" module that comes with the Python standard library but
0b7e09
currently only supports the older 2003 specification.
0b7e09
0b7e09
%prep
0b7e09
%autosetup -p1 -n %{srcname}-%{version}
0b7e09
# Remove bundled egg-info
0b7e09
rm -rf %{srcname}.egg-info
0b7e09
0b7e09
%build
0b7e09
%py3_build
0b7e09
0b7e09
%install
0b7e09
%py3_install
0b7e09
0b7e09
%check
0b7e09
%{__python3} setup.py test
0b7e09
0b7e09
0b7e09
%files -n python%{python3_pkgversion}-%{srcname}
0b7e09
%license LICENSE.rst
0b7e09
%doc README.rst HISTORY.rst
0b7e09
%{python3_sitelib}/%{srcname}
0b7e09
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
0b7e09
0b7e09
0b7e09
%changelog
0b7e09
* Wed Jan 13 2021 Tomas Orsava <torsava@redhat.com> - 2.10-3
0b7e09
- Convert from Fedora to the python39 module in RHEL8
0b7e09
- Resolves: rhbz#1877430
0b7e09
0b7e09
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-2
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b7e09
0b7e09
* Tue Jul 07 2020 Lumír Balhar <lbalhar@redhat.com> - 2.10-1
0b7e09
- Update to 2.10 (#1851653)
0b7e09
0b7e09
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.9-2
0b7e09
- Rebuilt for Python 3.9
0b7e09
0b7e09
* Tue May 05 2020 Lumír Balhar <lbalhar@redhat.com> - 2.9-1
0b7e09
- Update to 2.9 (#1803654)
0b7e09
0b7e09
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-6
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0b7e09
0b7e09
* Sun Nov 24 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-5
0b7e09
- Subpackage python2-idna has been removed
0b7e09
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
0b7e09
0b7e09
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-4
0b7e09
- Rebuilt for Python 3.8.0rc1 (#1748018)
0b7e09
0b7e09
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-3
0b7e09
- Rebuilt for Python 3.8
0b7e09
0b7e09
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0b7e09
0b7e09
* Tue May 28 2019 Jeremy Cline <jcline@redhat.com> - 2.8-1
0b7e09
- Update to v2.8
0b7e09
- Drop python version conditionals
0b7e09
0b7e09
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-4
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0b7e09
0b7e09
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-3
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0b7e09
0b7e09
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7-2
0b7e09
- Rebuilt for Python 3.7
0b7e09
0b7e09
* Tue Jun 12 2018 Jeremy Cline <jeremy@jcline.org> - 2.7-1
0b7e09
- Update to v2.7 (rhbz 1589803)
0b7e09
0b7e09
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0b7e09
0b7e09
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.5-3
0b7e09
- Update Python 2 dependency declarations to new packaging standards
0b7e09
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0b7e09
0b7e09
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0b7e09
0b7e09
* Tue Mar 07 2017 Jeremy Cline <jeremy@jcline.org> - 2.5-1
0b7e09
- Update to version 2.5
0b7e09
0b7e09
* Wed Mar 01 2017 Jeremy Cline <jeremy@jcline.org> - 2.4-1
0b7e09
- Update to version 2.4
0b7e09
0b7e09
* Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1
0b7e09
- Resolves: rhbz#1427499 Update to 2.3 for IDNAError bugfix and memory improvement
0b7e09
0b7e09
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1
0b7e09
- Update to version 2.2 (#1406757)
0b7e09
0b7e09
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1-3
0b7e09
- Rebuild for Python 3.6
0b7e09
0b7e09
* Mon Nov 28 2016 Orion Poplawski <orion@cora.nwra.com> - 2.1-2
0b7e09
- Ship python2-idna
0b7e09
- Enable python3 for EPEL
0b7e09
- Modernize spec
0b7e09
0b7e09
* Mon Oct 17 2016 tom.prince@ualberta.net - 2.1-1
0b7e09
- Bump version.
0b7e09
0b7e09
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
0b7e09
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0b7e09
0b7e09
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b7e09
0b7e09
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 2.0-2
0b7e09
- Rebuilt for Python3.5 rebuild
0b7e09
0b7e09
* Thu Aug 13 2015 Paul Wouters <pwouters@redhat.com> - 2.0-1
0b7e09
- Update to 2.0 which is required by python-cryptography
0b7e09
0b7e09
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
0b7e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0b7e09
0b7e09
* Wed Dec 31 2014 tom.prince@ualberta.net - 1.0-1
0b7e09
- Bump version.
0b7e09
0b7e09
* Mon Oct 27 2014 tom.prince@ualberta.net - 0.8-3
0b7e09
- Update licences.
0b7e09
0b7e09
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-2
0b7e09
- Be more specfic about .egg-info directories.
0b7e09
- Use python2-devel
0b7e09
0b7e09
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1
0b7e09
- Initial package.