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