python-urwid/python-urwid.spec
cherry530 c0241e0b7b Remove python2-urwid
Signed-off-by: cherry530 <xuping33@huawei.com>
2021-12-06 16:02:32 +08:00

55 lines
1.5 KiB
RPMSpec

#%define _python_bytecompile_errors_terminate_build 0
Name: python-urwid
Version: 2.1.2
Release: 2
Summary: Console user interface library
License: LGPLv2+
URL: http://excess.org/urwid/
Source0: https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.tar.gz
%description
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}
BuildRequires: python3-devel python3-setuptools python3-test /usr/bin/2to3 gcc
%description -n python3-urwid
Urwid is a console user interface library for Python. It includes
many features useful for text console application developers
%prep
%autosetup -n urwid-%{version} -p1
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
find urwid -type f -name "*.py" -exec chmod 644 {} \;
%build
%py3_build
find examples -type f -exec chmod 0644 \{\} \;
%check
PYTHON=%{__python3} %{__python3} setup.py test
%install
%py3_install
%files -n python3-urwid
%doc README.rst examples docs COPYING
%{python3_sitearch}/urwid
%{python3_sitearch}/urwid-%{version}*.egg-info
%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
- update to 2.1.2
* Fri Aug 21 2020 shixuantong <shixuantong@huawei.com> - 2.3-6
- add release version for rebuild
* Fri Nov 22 2019 sunguoshuai <sunguoshuai@huawei.com> - 2.3-5
- Package init.