From 32b29cd3d4f64b76e8115b6d8bc1c04f6bdeaa99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 24 Sep 2019 11:14:16 +0200 Subject: [PATCH] Subpackage python2-itsdangerous has been removed --- python-itsdangerous.spec | 45 +++++----------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-) diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec index 4528a8e..d2348b5 100644 --- a/python-itsdangerous.spec +++ b/python-itsdangerous.spec @@ -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 - 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 - 0.24-18 - Rebuilt for Python 3.8