[packages/python-scripttest] - updated URLs and packaging
qboosh
qboosh at pld-linux.org
Sun Jan 21 09:19:44 CET 2024
commit 343939f18da7f83f43f2b2a1501423f569b00762
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 21 08:03:20 2024 +0100
- updated URLs and packaging
python-scripttest.spec | 47 ++++++++++++++++++++++++++++++++---------------
1 file changed, 32 insertions(+), 15 deletions(-)
---
diff --git a/python-scripttest.spec b/python-scripttest.spec
index e4bf898..7db45f3 100644
--- a/python-scripttest.spec
+++ b/python-scripttest.spec
@@ -1,34 +1,37 @@
#
# Conditional build:
-%bcond_with tests # do perform tests (not included)
+%bcond_with tests # unit tests (not included in sdist)
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%define module scripttest
Summary: Helper to test command-line scripts
+Summary(pl.UTF-8): Moduł pomocniczy do testowania skryptów linii poleceń
Name: python-%{module}
Version: 1.3
Release: 9
License: MIT
Group: Libraries/Python
-Source0: https://pypi.python.org/packages/source/s/scripttest/%{module}-%{version}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/s/scripttest/%{module}-%{version}.tar.gz
# Source0-md5: 1d1c5117ccfc7b5961cae6c1020c0848
-URL: http://pythonpaste.org/scripttest/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
+URL: https://pypi.org/project/scripttest/
%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-pytest
%endif
%endif
%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python-pytest
%endif
%endif
-Requires: python-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.5
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,10 +42,18 @@ applications.
With it you can easily run the command (in a subprocess) and see the
output (stdout, stderr) and any file modifications.
+%description -l pl.UTF-8
+scripttest to biblioteka pomagająca testować interaktywne aplikacje
+linii poleceń.
+
+Przy jej użyciu mozna łatwo uruchamiać polecenia (w podprocesie) i
+sprawdzać wyjście (stdout, stderr) oraz zmiany dowolnych plików.
+
%package -n python3-%{module}
Summary: Helper to test command-line scripts
+Summary(pl.UTF-8): Moduł pomocniczy do testowania skryptów linii poleceń
Group: Libraries/Python
-Requires: python3-modules
+Requires: python3-modules >= 1:3.2
%description -n python3-%{module}
scripttest is a library to help you test your interactive command-line
@@ -51,6 +62,13 @@ applications.
With it you can easily run the command (in a subprocess) and see the
output (stdout, stderr) and any file modifications.
+%description -n python3-%{module} -l pl.UTF-8
+scripttest to biblioteka pomagająca testować interaktywne aplikacje
+linii poleceń.
+
+Przy jej użyciu mozna łatwo uruchamiać polecenia (w podprocesie) i
+sprawdzać wyjście (stdout, stderr) oraz zmiany dowolnych plików.
+
%prep
%setup -q -n %{module}-%{version}
@@ -68,6 +86,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
+
+%py_postclean
%endif
%if %{with python3}
@@ -81,18 +101,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.rst
-%{py_sitescriptdir}/%{module}*.py
-%{py_sitescriptdir}/%{module}*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
+%{py_sitescriptdir}/scripttest.py[co]
+%{py_sitescriptdir}/scripttest-%{version}-py*.egg-info
%endif
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
%doc README.rst
-%{py3_sitescriptdir}/%{module}.py
-%{py3_sitescriptdir}/__pycache__/%{module}.*
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/scripttest.py
+%{py3_sitescriptdir}/__pycache__/scripttest.cpython-*.py[co]
+%{py3_sitescriptdir}/scripttest-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-scripttest.git/commitdiff/343939f18da7f83f43f2b2a1501423f569b00762
More information about the pld-cvs-commit
mailing list