From d2b759bee940cca8adda8f77c581c18794e124db Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 19:02:50 +0300 Subject: [PATCH] import python-urwid-2.5.3-3.el10 --- .gitignore | 1 + .python-urwid.metadata | 1 + SPECS/python-urwid.spec | 82 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 .python-urwid.metadata create mode 100644 SPECS/python-urwid.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff42c78 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/urwid-2.5.3.tar.gz diff --git a/.python-urwid.metadata b/.python-urwid.metadata new file mode 100644 index 0000000..bded352 --- /dev/null +++ b/.python-urwid.metadata @@ -0,0 +1 @@ +38e3a470817617a1b69f467e678cf1d4767368f6 SOURCES/urwid-2.5.3.tar.gz diff --git a/SPECS/python-urwid.spec b/SPECS/python-urwid.spec new file mode 100644 index 0000000..918851f --- /dev/null +++ b/SPECS/python-urwid.spec @@ -0,0 +1,82 @@ +## 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 +* Tue Nov 26 2024 MSVSphere Packaging Team - 2.5.3-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Jun 24 2024 Troy Dawson - 2.5.3-3 +- Bump release for June 2024 mass rebuild + +* Tue Feb 13 2024 Tomas Tomecek - 2.5.3-2 +- RPMAUTOSPEC: unresolvable merge +## END: Generated by rpmautospec