Update to v2.8

This commit is contained in:
Jeremy Cline 2019-05-28 12:43:55 -04:00
parent 222e95dce7
commit 7e3e756850
3 changed files with 14 additions and 24 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
/idna-2.4.tar.gz /idna-2.4.tar.gz
/idna-2.5.tar.gz /idna-2.5.tar.gz
/idna-2.7.tar.gz /idna-2.7.tar.gz
/idna-2.8.tar.gz

View File

@ -2,8 +2,8 @@
%global srcname idna %global srcname idna
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.7 Version: 2.8
Release: 4%{?dist} Release: 1%{?dist}
Summary: Internationalized Domain Names in Applications (IDNA) Summary: Internationalized Domain Names in Applications (IDNA)
License: BSD and Python and Unicode License: BSD and Python and Unicode
@ -13,10 +13,8 @@ BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
%if 0%{?with_python3} BuildRequires: python3-devel
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python3-setuptools
BuildRequires: python%{python3_pkgversion}-setuptools
%endif # with_python3
%description %description
A library to support the Internationalised Domain Names in Applications (IDNA) A library to support the Internationalised Domain Names in Applications (IDNA)
@ -42,12 +40,11 @@ The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but "encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification. currently only supports the older 2003 specification.
%if 0%{?with_python3} %package -n python3-%{srcname}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: Internationalized Domain Names in Applications (IDNA) Summary: Internationalized Domain Names in Applications (IDNA)
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python%{python3_pkgversion}-%{srcname} %description -n python3-%{srcname}
A library to support the Internationalised Domain Names in Applications (IDNA) A library to support the Internationalised Domain Names in Applications (IDNA)
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
version of the protocol is often referred to as "IDNA2008" and can produce version of the protocol is often referred to as "IDNA2008" and can produce
@ -56,33 +53,23 @@ different results from the earlier standard from 2003.
The library is also intended to act as a suitable drop-in replacement for the The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but "encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification. currently only supports the older 2003 specification.
%endif # with_python3
%prep %prep
%setup -q -n %{srcname}-%{version} %autosetup -p1 -n %{srcname}-%{version}
# Remove bundled egg-info # Remove bundled egg-info
rm -rf %{srcname}.egg-info rm -rf %{srcname}.egg-info
%build %build
%py2_build %py2_build
%if 0%{?with_python3}
%py3_build %py3_build
%endif # with_python3
%install %install
%if 0%{?with_python3}
%py3_install %py3_install
%endif # with_python3
%py2_install %py2_install
%check %check
%{__python2} setup.py test %{__python2} setup.py test
%if 0%{?with_python3}
%{__python3} setup.py test %{__python3} setup.py test
%endif # with_python3
%files -n python2-%{srcname} %files -n python2-%{srcname}
@ -91,15 +78,17 @@ rm -rf %{srcname}.egg-info
%{python2_sitelib}/%{srcname} %{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
%if 0%{?with_python3} %files -n python3-%{srcname}
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE.rst %license LICENSE.rst
%doc README.rst HISTORY.rst %doc README.rst HISTORY.rst
%{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%endif # with_python3
%changelog %changelog
* Tue May 28 2019 Jeremy Cline <jcline@redhat.com> - 2.8-1
- Update to v2.8
- Drop python version conditionals
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-4 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (idna-2.7.tar.gz) = 34ba985862e386243f43616586e53830177cf4ba0925b6054198dfa63c085ec5c6c5b54c2b3c0989bc768aacceeef76b84471e58a16183b960dc4b8812cd1c61 SHA512 (idna-2.8.tar.gz) = 8ca5cfe6350c51250bafdac7c6e4ddd54c4a5d6bf7acbcef896760a759868c8e9df1fdf550121d8512fa3eb316dcf031ec6058e03b4f66eadee21b63e2187d33