From 68f6f9361175c7e03dba7ade054e2bf03c22c540 Mon Sep 17 00:00:00 2001 From: zhanghua Date: Thu, 29 Oct 2020 15:33:12 +0800 Subject: [PATCH] remove python2 of package python-urwid --- python-urwid.spec | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/python-urwid.spec b/python-urwid.spec index df413b0..d21bd6c 100644 --- a/python-urwid.spec +++ b/python-urwid.spec @@ -1,6 +1,6 @@ Name: python-urwid Version: 2.0.1 -Release: 5 +Release: 6 Summary: Console user interface library License: LGPLv2+ URL: http://excess.org/urwid/ @@ -10,15 +10,6 @@ Source0: https://pypi.python.org/packages/source/u/urwid/urwid-2.0.1.tar.g Urwid is a console user interface library for Python. It includes many features useful for text console application developers -%package -n python2-urwid -Summary: %summary -%{?python_provide:%python_provide python2-urwid} -BuildRequires: gcc python2-devel python2-setuptools python2-twisted pygobject2 python2-test - -%description -n python2-urwid -Urwid is a console user interface library for Python. It includes -many features useful for text console application developers - %package -n python3-urwid Summary: %summary %{?python_provide:%python_provide python3-urwid} @@ -32,34 +23,16 @@ many features useful for text console application developers %autosetup -n urwid-2.0.1 -p1 find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; find urwid -type f -name "*.py" -exec chmod 644 {} \; -rm -rf %{py3dir} -cp -a . %{py3dir} %build -%py2_build - -cd %{py3dir} %py3_build -cd - find examples -type f -exec chmod 0644 \{\} \; %check -PYTHON=%{__python2} %{__python2} setup.py test -cd %{py3dir} PYTHON=%{__python3} %{__python3} setup.py test -cd - %install -%py2_install - -cd %{py3dir} %py3_install -cd - - -%files -n python2-urwid -%doc README.rst examples docs COPYING -%{python2_sitearch}/urwid -%{python2_sitearch}/urwid-2.0.1*.egg-info %files -n python3-urwid %doc README.rst examples docs COPYING @@ -67,5 +40,8 @@ cd - %{python3_sitearch}/urwid-2.0.1*.egg-info %changelog -* Fri Nov 22 2019 sunguoshuai - 2.3-6 +* Thu Oct 22 2020 zhanghua - 2.3-6 +- remove python2 subpackage + +* Fri Nov 22 2019 sunguoshuai - 2.3-5 - Package init.