From 27290dbd7aed1a18daa277cbfbd24cf316de019f Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Oct 12 2018 14:35:19 +0000 Subject: Python2 binary package has been removed --- diff --git a/python-sanction.spec b/python-sanction.spec index 7e9fe07..ad81bf5 100644 --- a/python-sanction.spec +++ b/python-sanction.spec @@ -1,12 +1,9 @@ -%if 0%{?fedora} -%global with_python3 1 -%endif %global modname sanction Name: python-sanction Version: 0.3.1 -Release: 16%{?dist} +Release: 17%{?dist} Summary: A simple, lightweight OAuth2 client Group: Development/Libraries License: MIT @@ -15,13 +12,8 @@ Source0: http://pypi.python.org/packages/source/s/%{modname}/%{modnam BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-nose - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-nose -%endif %global _description\ @@ -56,13 +48,6 @@ sanction has been tested with the following OAuth2 providers:\ %description %_description -%package -n python2-sanction -Summary: %summary -%{?python_provide:%python_provide python2-sanction} - -%description -n python2-sanction %_description - -%if 0%{?with_python3} %package -n python3-sanction Summary: A simple, lightweight OAuth2 client Group: Development/Libraries @@ -96,7 +81,6 @@ sanction has been tested with the following OAuth2 providers: * StackExchange * Instagram * DeviantArt -%endif %prep @@ -105,51 +89,26 @@ sanction has been tested with the following OAuth2 providers: # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif %build -%{__python2} setup.py build - -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif +%py3_build %install -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} -popd -%endif - -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%py3_install %check -%if 0%{?with_python3} -pushd %{py3dir} PYTHONPATH=$(pwd) nosetests-%{python3_version} -popd -%endif -PYTHONPATH=$(pwd) nosetests - -%files -n python2-sanction -%doc README.rst LICENSE.txt -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}* - -%if 0%{?with_python3} %files -n python3-sanction %doc README.rst LICENSE.txt %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}* -%endif %changelog +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 0.3.1-17 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Wed Jul 25 2018 Pierre-Yves Chibon - 0.3.1-16 - Use the py2 version of the macros