Subpackage python2-itsdangerous has been removed

This commit is contained in:
Miro Hrončok 2019-09-24 11:14:16 +02:00
parent 7de0c92648
commit 32b29cd3d4

View File

@ -1,14 +1,9 @@
%global upstream_name itsdangerous
%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_without python3
%else
%bcond_with python3
%endif
Name: python-%{upstream_name}
Version: 0.24
Release: 18%{?dist}
Release: 19%{?dist}
Summary: Python library for passing trusted data to untrusted environments
License: BSD
URL: http://pythonhosted.org/itsdangerous/
@ -24,22 +19,6 @@ Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the
implementation on the Django signing module. It also however supports JSON Web
Signatures (JWS).
%package -n python2-%{upstream_name}
Summary: Python 2 library for passing trusted data to untrusted environments
%{?python_provide:%python_provide python2-%{upstream_name}}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description -n python2-%{upstream_name}
Itsdangerous is a Python library for passing data through untrusted
environments (for example, HTTP cookies) while ensuring the data is not
tampered with.
Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the
implementation on the Django signing module. It also however supports JSON Web
Signatures (JWS).
%if %{with python3}
%package -n python3-%{upstream_name}
Summary: Python 3 library for passing trusted data to untrusted environments
%{?python_provide:%python_provide python3-%{upstream_name}}
@ -54,46 +33,32 @@ tampered with.
Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the
implementation on the Django signing module. It also however supports JSON Web
Signatures (JWS).
%endif
%prep
%setup -q -n %{upstream_name}-%{version}
rm -r *.egg-info
%build
%py2_build
%if %{with python3}
%py3_build
%endif
%install
%py2_install
%if %{with python3}
%py3_install
%endif
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} tests.py
%if %{with python3}
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests.py
%endif
%files -n python2-%{upstream_name}
%license LICENSE
%doc CHANGES README
%{python2_sitelib}/%{upstream_name}.py*
%{python2_sitelib}/%{upstream_name}*.egg-info
%if %{with python3}
%files -n python3-%{upstream_name}
%license LICENSE
%doc CHANGES README
%{python3_sitelib}/%{upstream_name}.py
%{python3_sitelib}/%{upstream_name}*.egg-info
%{python3_sitelib}/__pycache__/%{upstream_name}*
%endif
%changelog
* Tue Sep 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24-19
- Subpackage python2-itsdangerous has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24-18
- Rebuilt for Python 3.8