You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.6.1)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 3;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
%bcond_without tests
|
|
|
|
%global srcname urwid
|
|
|
|
Name: python-%{srcname}
|
|
Version: 2.5.3
|
|
Release: %autorelease
|
|
Summary: Console user interface library
|
|
|
|
# examples/twisted_serve_ssh.py is MIT
|
|
License: LGPL-2.1-or-later AND MIT
|
|
URL: http://excess.org/urwid/
|
|
Source0: %{pypi_source urwid}
|
|
|
|
%global _description\
|
|
Urwid is a Python library for making text console applications. It has\
|
|
many features including fluid interface resizing, support for UTF-8 and\
|
|
CJK encodings, standard and custom text layout modes, simple markup for\
|
|
setting text attributes, and a powerful, dynamic list box that handles a\
|
|
mix of widget types. It is flexible, modular, and leaves the developer in\
|
|
control.
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-%{srcname}
|
|
Summary: %summary
|
|
%{?python_provide:%python_provide python3-urwid}
|
|
BuildRequires: gcc
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
# needed by selftest suite for test.support
|
|
BuildRequires: python3-test
|
|
|
|
%description -n python3-%{srcname} %_description
|
|
|
|
%prep
|
|
%autosetup -n %{srcname}-%{version}
|
|
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
|
|
%if %{with tests}
|
|
# tests are failing: https://github.com/urwid/urwid/issues/344
|
|
PYTHON=%{__python3} %{__python3} setup.py test || :
|
|
%endif
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%files -n python3-%{srcname}
|
|
%license COPYING
|
|
%doc README.rst examples docs
|
|
%{python3_sitearch}/urwid/
|
|
%{python3_sitearch}/urwid-%{version}*.egg-info/
|
|
|
|
%changelog
|
|
## START: Generated by rpmautospec
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.5.3-3
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
* Tue Feb 13 2024 Tomas Tomecek <ttomecek@fedoraproject.org> - 2.5.3-2
|
|
- RPMAUTOSPEC: unresolvable merge
|
|
## END: Generated by rpmautospec
|