python-urwid/python-urwid.spec

57 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-12-14 16:27:02 +08:00
Name: python-urwid
2021-07-27 11:31:10 +08:00
Version: 2.1.2
Release: 2
2019-12-14 16:27:02 +08:00
Summary: Console user interface library
License: LGPLv2+
URL: http://excess.org/urwid/
2021-07-27 11:31:10 +08:00
Source0: https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.tar.gz
2019-12-14 16:27:02 +08:00
%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 glibc-all-langpacks
2019-12-14 16:27:02 +08:00
%description -n python3-urwid
Urwid is a console user interface library for Python. It includes
many features useful for text console application developers
%prep
2021-07-27 11:31:10 +08:00
%autosetup -n urwid-%{version} -p1
2019-12-14 16:27:02 +08:00
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
2021-07-27 11:31:10 +08:00
%{python3_sitearch}/urwid-%{version}*.egg-info
2019-12-14 16:27:02 +08:00
%changelog
* Tue Jul 27 2021 liyanan <liyanan32@huawei.com> - 2.1.2-2
- Add buildrequires glibc-all-langpacks to fix build failed
2021-07-27 11:31:10 +08:00
* Tue Jul 27 2021 liyanan <liyanan32@huawei.com> - 2.1.2-1
- update to 2.1.2
2021-06-01 14:53:40 +08:00
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.3-7
- Completing build dependencies
2020-10-29 15:33:12 +08:00
* Thu Oct 22 2020 zhanghua <zhanghua40@huawei.com> - 2.3-6
- remove python2 subpackage
* Fri Nov 22 2019 sunguoshuai <sunguoshuai@huawei.com> - 2.3-5
2019-12-14 16:27:02 +08:00
- Package init.