From 212ed6be0c1f319f20764dc7ae8d7faf81cb9f16 Mon Sep 17 00:00:00 2001 From: zhangtao2020 <18066722603@163.com> Date: Thu, 29 Oct 2020 14:48:43 +0800 Subject: [PATCH] delete python2 --- python-configshell.spec | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/python-configshell.spec b/python-configshell.spec index 65868cf..3c5e547 100644 --- a/python-configshell.spec +++ b/python-configshell.spec @@ -4,7 +4,7 @@ Name: python-configshell Summary: Python library that provides a framework for building simple but nice CLI-based applications. Version: 1.1.27 -Release: 2 +Release: 3 License: ASL 2.0 URL: https://github.com/open-iscsi/configshell-fb Source0: https://github.com/open-iscsi/configshell-fb/archive/v1.1.27.tar.gz @@ -12,17 +12,10 @@ BuildArch: noarch %global _description\ %{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\ -This runs with Python 2 and 2to3 is run by setup.py to run on Python 3.\ +This runs with Python 3 and python 3 is run by setup.py to run on Python 3.\ %description %_description -%package -n python2-configshell -Summary: %summary -BuildRequires: git python2-devel -Requires: python2-pyparsing python2-urwid python2-six - -%description -n python2-configshell %_description - %package -n python3-configshell Summary: %summary BuildRequires: git python3-devel @@ -38,30 +31,25 @@ rm -rf %{py3dir} cp -a . %{py3dir} %build -%py2_build pushd %{py3dir} %{__python3} setup.py build popd %install rm -rf %{buildroot} -%py2_install pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} popd -%files -n python2-configshell -%{python2_sitelib}/* -%license COPYING -%doc README.md - %files -n python3-configshell %{python3_sitelib}/* %license COPYING %doc README.md %changelog -%changelog +* Wed Oct 21 2020 zhangtao - 1.1.27-3 +- delete python2 + * Wed Sep 9 2020 liuweibo - 1.1.27-2 - Fix Source0