[packages/python-blessings] - pl, updated dependencies, drop tests from package

qboosh qboosh at pld-linux.org
Tue Dec 2 21:45:41 CET 2025


commit cccf11d58427c55a451722720d6da0333ef9dab3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 2 21:45:52 2025 +0100

    - pl, updated dependencies, drop tests from package

 python-blessings.spec | 51 ++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 38 insertions(+), 13 deletions(-)
---
diff --git a/python-blessings.spec b/python-blessings.spec
index c480a1e..acdb216 100644
--- a/python-blessings.spec
+++ b/python-blessings.spec
@@ -5,31 +5,35 @@
 %bcond_without	python3 # CPython 3.x module
 
 %define		module		blessings
-%define		egg_name	blessings
-%define		pypi_name	blessings
 Summary:	Python library for terminal coloring, styling, and positioning
+Summary(pl.UTF-8):	Biblioteka Pythona do kolorów, styli i położenia na terminalu
 Name:		python-%{module}
 Version:	1.7
 Release:	8
 License:	MIT
 Group:		Libraries/Python
-Source0:	https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+Source0:	https://files.pythonhosted.org/packages/source/b/blessings/%{module}-%{version}.tar.gz
 # Source0-md5:	38555a2bba0ace706aec58444368e022
 Patch1:		0001-fix-tests-when-run-without-a-tty-fixes-25.patch
 Patch2:		0002-more-fixes-for-tests-without-a-tty.patch
 URL:		https://github.com/erikrose/blessings
 %if %{with python2}
-BuildRequires:	python-modules >= 1:2.5
-BuildRequires:	python-nose
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-nose
 BuildRequires:	python-six
 %endif
+%endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-nose
+BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pynose
 BuildRequires:	python3-six
 %endif
+%endif
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,42 +41,63 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Blessings is a thin, practical wrapper around terminal coloring,
 styling, and positioning in Python.
 
+%description -l pl.UTF-8
+Blessings to niewielkie, praktyczne obudowanie kolorów, styli i
+położenia na terminalu w Pythonie.
+
 %package -n python3-%{module}
 Summary:	Python 3 library for terminal coloring, styling, and positioning
+Summary(pl.UTF-8):	Biblioteka Pythona do kolorów, styli i położenia na terminalu
 Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
 
 %description -n python3-%{module}
 Blessings is a thin, practical wrapper around terminal coloring,
 styling, and positioning in Python.
 
+%description -n python3-%{module} -l pl.UTF-8
+Blessings to niewielkie, praktyczne obudowanie kolorów, styli i
+położenia na terminalu w Pythonie.
+
 %prep
-%setup -q -n %{pypi_name}-%{version}
+%setup -q -n %{module}-%{version}
 %patch -P 1 -p1
 %patch -P 2 -p1
-rm -r blessings.egg-info
+
+%{__rm} -r blessings.egg-info
 
 %build
 %if %{with python2}
 %py_build
+
 %if %{with tests}
-nosetests-%{py_ver} build-2/lib
+nosetests-%{py_ver} blessings
 %endif
 %endif
+
 %if %{with python3}
 %py3_build
+
 %if %{with tests}
-nosetests-%{py3_ver} build-3/lib
+nosetests-%{py3_ver} blessings
 %endif
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %if %{with python2}
 %py_install
+
 %py_postclean
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/blessings/tests.py*
 %endif
+
 %if %{with python3}
 %py3_install
+
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/blessings/tests.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/blessings/__pycache__/tests.*
 %endif
 
 %clean
@@ -83,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.rst LICENSE
 %{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
@@ -91,5 +116,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.rst LICENSE
 %{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-blessings.git/commitdiff/cccf11d58427c55a451722720d6da0333ef9dab3




More information about the pld-cvs-commit mailing list