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