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