From 04a94605a410235bfc9c498efcfbe61d161ca8ab Mon Sep 17 00:00:00 2001 From: zhangy1317 Date: Fri, 28 Jan 2022 11:50:34 +0800 Subject: [PATCH] remove python2 --- python-pretend.spec | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/python-pretend.spec b/python-pretend.spec index 2ec7087..6582259 100644 --- a/python-pretend.spec +++ b/python-pretend.spec @@ -2,33 +2,19 @@ Name: python-pretend Version: 1.0.8 -Release: 15 +Release: 16 Summary: A library to make stubbing with Python easier License: BSD URL: https://github.com/alex/pretend Source0: https://pypi.python.org/packages/source/p/pretend/pretend-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-setuptools - -%if %{with python3} BuildRequires: python3-devel python3-setuptools -%endif %description Pretend is a library to make stubbing with Python easier. -%package -n python2-pretend -Summary: A library to make stubbing with Python easier -License: BSD -%{?python_provide:%python_provide python2-pretend} - - -%description -n python2-pretend -Pretend is a library to make stubbing with Python easier. - -%if %{with python3} %package -n python3-pretend Summary: A library to make stubbing with Python easier License: BSD @@ -37,39 +23,24 @@ License: BSD %description -n python3-pretend Pretend is a library to make stubbing with Python easier. -%endif %prep %autosetup -n pretend-%{version} -p1 %build -%py2_build - -%if %{with python3} %py3_build -%endif %install -%py2_install - -%if %{with python3} %py3_install -%endif - -%files -n python2-pretend -%defattr(-,root,root) -%license LICENSE.rst -%doc PKG-INFO README.rst -%{python2_sitelib}/* -%if %{with python3} %files -n python3-pretend %defattr(-,root,root) %license LICENSE.rst %doc PKG-INFO README.rst %{python3_sitelib}/* -%endif %changelog +* Wed Jan 26 2022 zhangy1317 - 1.0.8-16 +- Remove python2 * Mon Dec 9 2019 openEuler Buildteam - 1.0.8-15 - Package init -- Gitee