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