e7233af
%global with_python3 1
e7233af
%global srcname idna
e7233af
e7233af
Name:           python-%{srcname}
Jeremy Cline 939f059
Version:        2.7
Jeremy Cline 939f059
Release:        1%{?dist}
e7233af
Summary:        Internationalized Domain Names in Applications (IDNA)
e7233af
e7233af
License:        BSD and Python and Unicode
e7233af
URL:            https://github.com/kjd/idna
Tom Prince 1721259
Source0:        https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
e7233af
BuildArch:      noarch
e7233af
e7233af
BuildRequires:  python2-devel
da2a81f
BuildRequires:  python2-setuptools
e7233af
%if 0%{?with_python3}
Orion Poplawski 3cba5e9
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski 3cba5e9
BuildRequires:  python%{python3_pkgversion}-setuptools
e7233af
%endif # with_python3
e7233af
e7233af
%description
e7233af
A library to support the Internationalised Domain Names in Applications (IDNA)
e7233af
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
e7233af
version of the protocol is often referred to as "IDNA2008" and can produce
e7233af
different results from the earlier standard from 2003.
e7233af
e7233af
The library is also intended to act as a suitable drop-in replacement for the
e7233af
"encodings.idna" module that comes with the Python standard library but
707eb17
currently only supports the older 2003 specification.
e7233af
Orion Poplawski 3cba5e9
%package -n python2-%{srcname}
Orion Poplawski 3cba5e9
Summary:        Internationalized Domain Names in Applications (IDNA)
Orion Poplawski 3cba5e9
%{?python_provide:%python_provide python2-%{srcname}}
Orion Poplawski 3cba5e9
Orion Poplawski 3cba5e9
%description -n python2-%{srcname}
Orion Poplawski 3cba5e9
A library to support the Internationalised Domain Names in Applications (IDNA)
Orion Poplawski 3cba5e9
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
Orion Poplawski 3cba5e9
version of the protocol is often referred to as "IDNA2008" and can produce
Orion Poplawski 3cba5e9
different results from the earlier standard from 2003.
Orion Poplawski 3cba5e9
Orion Poplawski 3cba5e9
The library is also intended to act as a suitable drop-in replacement for the
Orion Poplawski 3cba5e9
"encodings.idna" module that comes with the Python standard library but
Orion Poplawski 3cba5e9
currently only supports the older 2003 specification.
Orion Poplawski 3cba5e9
e7233af
%if 0%{?with_python3}
Orion Poplawski 3cba5e9
%package -n python%{python3_pkgversion}-%{srcname}
e7233af
Summary:        Internationalized Domain Names in Applications (IDNA)
Orion Poplawski 3cba5e9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
e7233af
Orion Poplawski 3cba5e9
%description -n python%{python3_pkgversion}-%{srcname}
e7233af
A library to support the Internationalised Domain Names in Applications (IDNA)
e7233af
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>.  This
707eb17
version of the protocol is often referred to as "IDNA2008" and can produce
e7233af
different results from the earlier standard from 2003.
e7233af
e7233af
The library is also intended to act as a suitable drop-in replacement for the
707eb17
"encodings.idna" module that comes with the Python standard library but
707eb17
currently only supports the older 2003 specification.
e7233af
%endif # with_python3
e7233af
e7233af
%prep
e7233af
%setup -q -n %{srcname}-%{version}
e7233af
# Remove bundled egg-info
e7233af
rm -rf %{srcname}.egg-info
e7233af
e7233af
%build
Orion Poplawski 3cba5e9
%py2_build
e7233af
e7233af
%if 0%{?with_python3}
Orion Poplawski 3cba5e9
%py3_build
e7233af
%endif # with_python3
e7233af
e7233af
%install
e7233af
%if 0%{?with_python3}
Orion Poplawski 3cba5e9
%py3_install
e7233af
%endif # with_python3
e7233af
Orion Poplawski 3cba5e9
%py2_install
e7233af
e7233af
%check
e7233af
%{__python2} setup.py test
e7233af
e7233af
%if 0%{?with_python3}
Tom Prince 1721259
%{__python3} setup.py test
e7233af
%endif # with_python3
e7233af
e7233af
Orion Poplawski 3cba5e9
%files -n python2-%{srcname}
Orion Poplawski 3cba5e9
%license LICENSE.rst
Orion Poplawski 3cba5e9
%doc README.rst HISTORY.rst
e7233af
%{python2_sitelib}/%{srcname}
e7233af
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
e7233af
e7233af
%if 0%{?with_python3}
Orion Poplawski 3cba5e9
%files -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski 3cba5e9
%license LICENSE.rst
Orion Poplawski 3cba5e9
%doc README.rst HISTORY.rst
e7233af
%{python3_sitelib}/%{srcname}
e7233af
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
e7233af
%endif # with_python3
e7233af
e7233af
%changelog
Jeremy Cline 939f059
* Tue Jun 12 2018 Jeremy Cline <jeremy@jcline.org> - 2.7-1
Jeremy Cline 939f059
- Update to v2.7 (rhbz 1589803)
Jeremy Cline 939f059
0c1d7bd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
0c1d7bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0c1d7bd
da2a81f
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.5-3
da2a81f
- Update Python 2 dependency declarations to new packaging standards
da2a81f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
da2a81f
3073bf6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
3073bf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3073bf6
cc119a3
* Tue Mar 07 2017 Jeremy Cline <jeremy@jcline.org> - 2.5-1
cc119a3
- Update to version 2.5
cc119a3
d912c9f
* Wed Mar 01 2017 Jeremy Cline <jeremy@jcline.org> - 2.4-1
d912c9f
- Update to version 2.4
d912c9f
6e14ec1
* Tue Feb 28 2017 Paul Wouters <pwouters@redhat.com> - 2.3-1
6e14ec1
- Resolves: rhbz#1427499 Update to 2.3 for IDNAError bugfix and memory improvement
6e14ec1
f624239
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.2-1
f624239
- Update to version 2.2 (#1406757)
f624239
9acc2ca
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1-3
9acc2ca
- Rebuild for Python 3.6
9acc2ca
Orion Poplawski 3cba5e9
* Mon Nov 28 2016 Orion Poplawski <orion@cora.nwra.com> - 2.1-2
Orion Poplawski 3cba5e9
- Ship python2-idna
Orion Poplawski 3cba5e9
- Enable python3 for EPEL
Orion Poplawski 3cba5e9
- Modernize spec
Orion Poplawski 3cba5e9
Tom Prince 1721259
* Mon Oct 17 2016 tom.prince@ualberta.net - 2.1-1
Tom Prince 1721259
- Bump version.
Tom Prince 1721259
e2ebb4f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
e2ebb4f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e2ebb4f
bfa6847
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
bfa6847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bfa6847
Robert Kuska ebb29b5
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 2.0-2
Robert Kuska ebb29b5
- Rebuilt for Python3.5 rebuild
Robert Kuska ebb29b5
8987bde
* Thu Aug 13 2015 Paul Wouters <pwouters@redhat.com> - 2.0-1
8987bde
- Update to 2.0 which is required by python-cryptography
8987bde
29370d9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
29370d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
29370d9
707eb17
* Wed Dec 31 2014 tom.prince@ualberta.net - 1.0-1
707eb17
- Bump version.
707eb17
e7233af
* Mon Oct 27 2014 tom.prince@ualberta.net - 0.8-3
e7233af
- Update licences.
e7233af
e7233af
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-2
e7233af
- Be more specfic about .egg-info directories.
e7233af
- Use python2-devel
e7233af
e7233af
* Sat Jul 12 2014 tom.prince@ualberta.net - 0.8-1
e7233af
- Initial package.