From 6fa87d5d6f5e68400577b0c51f4144ffce74cf0e Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Nov 05 2020 16:38:23 +0000 Subject: Remove python2 subpackage --- diff --git a/python-scp.spec b/python-scp.spec index 4849bbc..0e649c1 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 0.13.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Scp module for paramiko License: LGPLv2+ @@ -18,22 +18,6 @@ The scp.py module uses a paramiko transport to send and receive files via the scp1 protocol. This is the protocol as referenced from the openssh scp program, and has only been tested with this implementation. -%if 0%{?fedora} < 30 -%package -n python2-%{pypi_name} -Summary: scp module for paramiko -BuildRequires: python2-setuptools -BuildRequires: python2-devel -# For tests -BuildRequires: python2-paramiko -%{?python_provide:%python_provide python2-%{pypi_name}} - -Requires: python2-paramiko -%description -n python2-%{pypi_name} -The scp.py module uses a paramiko transport to send and receive files via the -scp1 protocol. This is the protocol as referenced from the openssh scp program, -and has only been tested with this implementation. -%endif - %package -n python%{python3_pkgversion}-%{pypi_name} Summary: scp module for paramiko BuildRequires: python%{python3_pkgversion}-setuptools @@ -53,32 +37,15 @@ and has only been tested with this implementation. rm -r %{srcname}.egg-info %build -%if 0%{?fedora} < 30 -%py2_build -%endif %py3_build %install %py3_install -%if 0%{?fedora} < 30 -%py2_install -%endif %check # Tests fail without open local ssh server -%if 0%{?fedora} < 30 -#{__python2} setup.py test -%endif #{__python3} setup.py test -%if 0%{?fedora} < 30 -%files -n python2-%{pypi_name} -%doc README.rst PKG-INFO -%license LICENSE.txt -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%endif - %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst PKG-INFO %license LICENSE.txt @@ -87,6 +54,9 @@ rm -r %{srcname}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Thu Nov 05 2020 Joel Capitao - 0.13.3-2 +- Remove python2 subpackage + * Tue Oct 27 2020 Chedi Toueiti - 0.13.3-1 - Update to 0.13.3