[packages/python3-urwid] up to 2.6.16

atler atler at pld-linux.org
Tue Mar 18 02:24:35 CET 2025


commit 124b805a56e55eba0f9830b07dfb50afcbc6c160
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Mar 18 00:31:01 2025 +0100

    up to 2.6.16

 0002-Use-non-deprecated-template.patch |  23 ------
 python-urwid.spec                      | 143 ---------------------------------
 python3-urwid.spec                     | 100 +++++++++++++++++++++++
 3 files changed, 100 insertions(+), 166 deletions(-)
---
diff --git a/python-urwid.spec b/python-urwid.spec
deleted file mode 100644
index 1934852..0000000
--- a/python-urwid.spec
+++ /dev/null
@@ -1,143 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# docs build
-%bcond_with	tests	# test target (fails on builders due to lack of pts)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	urwid
-Summary:	Urwid - a console user interface library for Python 2
-Summary(hu.UTF-8):	Urwid egy konzolos felhasználói felület könyvtár Pythonhoz 2
-Summary(pl.UTF-8):	Urwid - biblioteka konsolowego interfejsu użytkownika dla Pythona 2
-Name:		python-%{module}
-Version:	2.1.2
-Release:	8
-License:	LGPL v2.1+
-Group:		Development/Languages/Python
-#Source0Download: http://urwid.org/
-Source0:	https://pypi.python.org/packages/source/u/urwid/%{module}-%{version}.tar.gz
-# Source0-md5:	f7f4e6bed9ba38965dbd619520f39287
-Patch0:		0002-Use-non-deprecated-template.patch
-URL:		http://urwid.org/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-%endif
-%if %{with python3}
-BuildRequires:	python3-2to3 >= 1:3.5
-BuildRequires:	python3-devel >= 1:3.5
-BuildRequires:	python3-setuptools
-%endif
-%if %{with doc}
-BuildRequires:	sphinx-pdg-3 >= 2.0.0
-%endif
-Requires:	python-modules >= 1:2.7
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Urwid is a console user interface library for Python.
-
-%description -l hu.UTF-8
-Urwid egy konzolos felhasználói felület könyvtár Pythonhoz.
-
-%description -l pl.UTF-8
-Urwid to biblioteka konsolowego interfejsu użytkownika dla Pythona.
-
-%package -n python3-%{module}
-Summary:	Urwid - a console user interface library for Python 3
-Summary(hu.UTF-8):	Urwid egy konzolos felhasználói felület könyvtár Pythonhoz 3
-Summary(pl.UTF-8):	Urwid - biblioteka konsolowego interfejsu użytkownika dla Pythona 3
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Urwid is a console user interface library for Python.
-
-%description -n python3-%{module} -l hu.UTF-8
-Urwid egy konzolos felhasználói felület könyvtár Pythonhoz.
-
-%description -n python3-%{module} -l pl.UTF-8
-Urwid to biblioteka konsolowego interfejsu użytkownika dla Pythona.
-
-%package apidocs
-Summary:	API documentation for urwid module
-Summary(pl.UTF-8):	Dokumentacja API modułu urwid
-Group:		Documentation
-
-%description apidocs
-API documentation for urwid module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu urwid.
-
-%prep
-%setup -q -n %{module}-%{version}
-%patch -P 0 -p1
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%if %{with doc}
-cd docs
-sphinx-build-3 -b html . _html
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-# tests
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/urwid/tests
-%endif
-
-%if %{with python3}
-%py3_install
-
-# tests
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/urwid/tests
-%if %{with tests}
-# unversioned copy installed if tests are run
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/urwid.egg-info
-%endif
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst docs/changelog.rst
-%dir %{py_sitedir}/urwid
-%attr(755,root,root) %{py_sitedir}/urwid/str_util.so
-%{py_sitedir}/urwid/*.py[co]
-%{py_sitedir}/urwid-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc README.rst docs/changelog.rst
-%dir %{py3_sitedir}/urwid
-%attr(755,root,root) %{py3_sitedir}/urwid/str_util.cpython-*.so
-%{py3_sitedir}/urwid/*.py
-%{py3_sitedir}/urwid/__pycache__
-%{py3_sitedir}/urwid-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_html/{_images,_static,examples,manual,reference,tutorial,*.html,*.js}
-%endif
diff --git a/python3-urwid.spec b/python3-urwid.spec
new file mode 100644
index 0000000..fd042a0
--- /dev/null
+++ b/python3-urwid.spec
@@ -0,0 +1,100 @@
+#
+# Conditional build:
+%bcond_without	doc	# docs build
+%bcond_with	tests	# test target (fails on builders due to lack of pts)
+
+%define 	module	urwid
+Summary:	Urwid - a console user interface library for Python 3
+Summary(hu.UTF-8):	Urwid egy konzolos felhasználói felület könyvtár Pythonhoz 3
+Summary(pl.UTF-8):	Urwid - biblioteka konsolowego interfejsu użytkownika dla Pythona 3
+Name:		python3-%{module}
+Version:	2.6.16
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Languages/Python
+#Source0Download: http://urwid.org/
+Source0:	https://pypi.python.org/packages/source/u/urwid/%{module}-%{version}.tar.gz
+# Source0-md5:	214f9cea321ccae131cecfaef2a4aa9a
+URL:		http://urwid.org/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	python3-devel >= 1:3.7
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-wcwidth
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3 >= 2.0.0
+BuildRequires:	python3-sphinx_github_changelog
+%endif
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Urwid is a console user interface library for Python.
+
+%description -l hu.UTF-8
+Urwid egy konzolos felhasználói felület könyvtár Pythonhoz.
+
+%description -l pl.UTF-8
+Urwid to biblioteka konsolowego interfejsu użytkownika dla Pythona.
+
+%package apidocs
+Summary:	API documentation for urwid module
+Summary(pl.UTF-8):	Dokumentacja API modułu urwid
+Group:		Documentation
+
+%description apidocs
+API documentation for urwid module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu urwid.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%if %{with doc}
+PYTHONPATH="$(pwd)/build-3/lib" sphinx-build-3 -b html docs docs/_html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+# tests
+%if %{with tests}
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/urwid/tests
+# unversioned copy installed if tests are run
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/urwid.egg-info
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst docs/changelog.rst
+%dir %{py3_sitescriptdir}/urwid
+%{py3_sitescriptdir}/urwid/*.py
+%{py3_sitescriptdir}/urwid/__pycache__
+%dir %{py3_sitescriptdir}/urwid/display
+%{py3_sitescriptdir}/urwid/display/*.py
+%{py3_sitescriptdir}/urwid/display/_web.css
+%{py3_sitescriptdir}/urwid/display/_web.js
+%{py3_sitescriptdir}/urwid/display/__pycache__
+%dir %{py3_sitescriptdir}/urwid/event_loop
+%{py3_sitescriptdir}/urwid/event_loop/*.py
+%{py3_sitescriptdir}/urwid/event_loop/__pycache__
+%dir %{py3_sitescriptdir}/urwid/widget
+%{py3_sitescriptdir}/urwid/widget/*.py
+%{py3_sitescriptdir}/urwid/widget/__pycache__
+%{py3_sitescriptdir}/urwid-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_html/{_images,_static,examples,manual,reference,tutorial,*.html,*.js}
+%endif
diff --git a/0002-Use-non-deprecated-template.patch b/0002-Use-non-deprecated-template.patch
deleted file mode 100644
index f308f38..0000000
--- a/0002-Use-non-deprecated-template.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From: Jochen Sprickerhof <jspricke at debian.org>
-Date: Sun, 9 Aug 2020 17:04:59 +0200
-Subject: Use non deprecated template
-
-defindex.html was deprecated a long time ago, see
-
-https://github.com/python/cpython/commit/7970cd483346dfd7723da214fb27399ecc574095
-
-for example.
----
- docs/tools/templates/indexcontent.html | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/docs/tools/templates/indexcontent.html b/docs/tools/templates/indexcontent.html
-index b7d2ca6..bd50389 100644
---- a/docs/tools/templates/indexcontent.html
-+++ b/docs/tools/templates/indexcontent.html
-@@ -1,4 +1,4 @@
--{% extends "!defindex.html" %}
-+{% extends "layout.html" %}
- {% block body %}
- <h1>Urwid{% if 'dev' in release %} development version{% endif %}</h1>
- <div style="float: left; width: 500px;">
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-urwid.git/commitdiff/124b805a56e55eba0f9830b07dfb50afcbc6c160



More information about the pld-cvs-commit mailing list