|
|
952565 |
%bcond_without python3
|
|
|
952565 |
%global srcname idna
|
|
|
952565 |
|
|
|
952565 |
Name: python-%{srcname}
|
|
|
952565 |
Version: 2.5
|
|
|
956215 |
Release: 7%{?dist}
|
|
|
952565 |
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
|
952565 |
|
|
|
952565 |
License: BSD and Python and Unicode
|
|
|
952565 |
URL: https://github.com/kjd/idna
|
|
|
952565 |
Source0: https://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
952565 |
BuildArch: noarch
|
|
|
952565 |
|
|
|
952565 |
BuildRequires: python2-devel
|
|
|
952565 |
BuildRequires: python2-setuptools
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
952565 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
%description
|
|
|
952565 |
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
952565 |
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
|
|
952565 |
version of the protocol is often referred to as "IDNA2008" and can produce
|
|
|
952565 |
different results from the earlier standard from 2003.
|
|
|
952565 |
|
|
|
952565 |
The library is also intended to act as a suitable drop-in replacement for the
|
|
|
952565 |
"encodings.idna" module that comes with the Python standard library but
|
|
|
952565 |
currently only supports the older 2003 specification.
|
|
|
952565 |
|
|
|
952565 |
%package -n python2-%{srcname}
|
|
|
952565 |
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
|
952565 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
952565 |
|
|
|
952565 |
%description -n python2-%{srcname}
|
|
|
952565 |
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
952565 |
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
|
|
952565 |
version of the protocol is often referred to as "IDNA2008" and can produce
|
|
|
952565 |
different results from the earlier standard from 2003.
|
|
|
952565 |
|
|
|
952565 |
The library is also intended to act as a suitable drop-in replacement for the
|
|
|
952565 |
"encodings.idna" module that comes with the Python standard library but
|
|
|
952565 |
currently only supports the older 2003 specification.
|
|
|
952565 |
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
952565 |
Summary: Internationalized Domain Names in Applications (IDNA)
|
|
|
952565 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
952565 |
|
|
|
952565 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
952565 |
A library to support the Internationalised Domain Names in Applications (IDNA)
|
|
|
952565 |
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
|
|
|
952565 |
version of the protocol is often referred to as "IDNA2008" and can produce
|
|
|
952565 |
different results from the earlier standard from 2003.
|
|
|
952565 |
|
|
|
952565 |
The library is also intended to act as a suitable drop-in replacement for the
|
|
|
952565 |
"encodings.idna" module that comes with the Python standard library but
|
|
|
952565 |
currently only supports the older 2003 specification.
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
%prep
|
|
|
952565 |
%setup -q -n %{srcname}-%{version}
|
|
|
952565 |
# Remove bundled egg-info
|
|
|
952565 |
rm -rf %{srcname}.egg-info
|
|
|
952565 |
|
|
|
952565 |
%build
|
|
|
952565 |
%py2_build
|
|
|
952565 |
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
%py3_build
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
%install
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
%py3_install
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
%py2_install
|
|
|
952565 |
|
|
|
952565 |
%check
|
|
|
952565 |
%{__python2} setup.py test
|
|
|
952565 |
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
%{__python3} setup.py test
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
|
|
|
952565 |
%files -n python2-%{srcname}
|
|
|
952565 |
%license LICENSE.rst
|
|
|
952565 |
%doc README.rst HISTORY.rst
|
|
|
952565 |
%{python2_sitelib}/%{srcname}
|
|
|
952565 |
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
|
|
952565 |
|
|
|
952565 |
%if %{with python3}
|
|
|
952565 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
952565 |
%license LICENSE.rst
|
|
|
952565 |
%doc README.rst HISTORY.rst
|
|
|
952565 |
%{python3_sitelib}/%{srcname}
|
|
|
952565 |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
|
952565 |
%endif # with python3
|
|
|
952565 |
|
|
|
952565 |
%changelog
|
|
|
011aaa |
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 2.5-7
|
|
|
011aaa |
- Bumping due to problems with modular RPM upgrade path
|
|
|
011aaa |
- Resolves: rhbz#1695587
|
|
|
956215 |
|
|
|
952565 |
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 2.5-6
|
|
|
952565 |
- Switch python3 coditions to bcond
|
|
|
952565 |
|
|
|
952565 |
* Mon Jul 16 2018 Lumír Balhar <lbalhar@redhat.com> - 2.5-5
|
|
|
952565 |
- First version for python27 module
|