[packages/python3-autopage] - pl, updated dependencies

qboosh qboosh at pld-linux.org
Thu Jul 10 17:34:20 CEST 2025


commit bf63d2b96e9942adf0466bbfda75b1aa3707a418
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 10 17:35:54 2025 +0200

    - pl, updated dependencies

 python3-autopage.spec | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/python3-autopage.spec b/python3-autopage.spec
index f1a22ae..e1a7110 100644
--- a/python3-autopage.spec
+++ b/python3-autopage.spec
@@ -1,8 +1,10 @@
+#
 # Conditional build:
 %bcond_without	tests	# unit tests
 
 %define		module	autopage
 Summary:	A library to provide automatic paging for console output
+Summary(pl.UTF-8):	Biblioteka zapewniająca automatyczne stronicowanie wyjścia na konsoli
 Name:		python3-%{module}
 Version:	0.5.2
 Release:	1
@@ -12,9 +14,17 @@ Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/a/autopage/%{module}-%{version}.tar.gz
 # Source0-md5:	57936e4a9d379fe4a60eb617d8cdce33
 URL:		https://pypi.org/project/autopage/
-BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-build
 BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:43
+BuildRequires:	python3-wheel
+%if %{with tests}
+BuildRequires:	python3-fixtures
+BuildRequires:	python3-pytest
+# for fixtures[streams]
+BuildRequires:	python3-testtools
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
 Requires:	python3-modules >= 1:3.6
@@ -26,6 +36,12 @@ Autopage is a Python library to automatically display terminal output
 from a program in a pager (like less) whenever you need it, and never
 when you don't. And it only takes one line of code.
 
+%description -l pl.UTF-8
+Autopage to biblioteka Pythona do automatycznego wyświetlania wyjścia
+terminalowego z programu w programie stronicującym (typu less) zawsze,
+kiedy jest to potrzebne, a nigdy, gdy jest zbędne. I wymaga tylko
+jednej linii kodu.
+
 %prep
 %setup -q -n %{module}-%{version}
 
@@ -34,7 +50,8 @@ when you don't. And it only takes one line of code.
 
 %if %{with tests}
 %{__python3} -m zipfile -e build-3/*.whl build-3-test
-# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+# sigh: tests expect "UTF-8" encoding, not default "utf-8" assumed in non-UTF locale
+LC_ALL=C.UTF-8 \
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS= \
 %{__python3} -m pytest -o pythonpath="$PWD/build-3-test" autopage/tests
@@ -53,8 +70,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
-%dir %{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}/*.py
-%{py3_sitescriptdir}/%{module}/py.typed
-%{py3_sitescriptdir}/%{module}/__pycache__
+%{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-autopage.git/commitdiff/bf63d2b96e9942adf0466bbfda75b1aa3707a418



More information about the pld-cvs-commit mailing list