Remove python2-urwid

Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
cherry530 2021-12-06 16:02:32 +08:00
parent 9244fa9503
commit c0241e0b7b

View File

@ -1,7 +1,7 @@
#%define _python_bytecompile_errors_terminate_build 0 #%define _python_bytecompile_errors_terminate_build 0
Name: python-urwid Name: python-urwid
Version: 2.1.2 Version: 2.1.2
Release: 1 Release: 2
Summary: Console user interface library Summary: Console user interface library
License: LGPLv2+ License: LGPLv2+
URL: http://excess.org/urwid/ URL: http://excess.org/urwid/
@ -11,15 +11,6 @@ Source0: https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.
Urwid is a console user interface library for Python. It includes Urwid is a console user interface library for Python. It includes
many features useful for text console application developers 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 python2-mock
%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 %package -n python3-urwid
Summary: %summary Summary: %summary
%{?python_provide:%python_provide python3-urwid} %{?python_provide:%python_provide python3-urwid}
@ -33,34 +24,16 @@ many features useful for text console application developers
%autosetup -n urwid-%{version} -p1 %autosetup -n urwid-%{version} -p1
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
find urwid -type f -name "*.py" -exec chmod 644 {} \; find urwid -type f -name "*.py" -exec chmod 644 {} \;
rm -rf %{py3dir}
cp -a . %{py3dir}
%build %build
%py2_build
cd %{py3dir}
%py3_build %py3_build
cd -
find examples -type f -exec chmod 0644 \{\} \; find examples -type f -exec chmod 0644 \{\} \;
%check %check
PYTHON=%{__python2} %{__python2} setup.py test
cd %{py3dir}
PYTHON=%{__python3} %{__python3} setup.py test PYTHON=%{__python3} %{__python3} setup.py test
cd -
%install %install
%py2_install
cd %{py3dir}
%py3_install %py3_install
cd -
%files -n python2-urwid
%doc README.rst examples docs COPYING
%{python2_sitearch}/urwid
%{python2_sitearch}/urwid-2.1.2*.egg-info
%files -n python3-urwid %files -n python3-urwid
%doc README.rst examples docs COPYING %doc README.rst examples docs COPYING
@ -68,6 +41,9 @@ cd -
%{python3_sitearch}/urwid-%{version}*.egg-info %{python3_sitearch}/urwid-%{version}*.egg-info
%changelog %changelog
* Mon Dec 06 2021 xu_ping <xuping33@huawei.com> - 2.1.2-2
- Remove python2-urwid
* Tue Jul 27 2021 liyanan <liyanan32@huawei.com> - 2.1.2-1 * Tue Jul 27 2021 liyanan <liyanan32@huawei.com> - 2.1.2-1
- update to 2.1.2 - update to 2.1.2