[packages/python3-semver] - pl, updated dependencies, cleanup

qboosh qboosh at pld-linux.org
Sun Dec 14 19:46:59 CET 2025


commit 8689963fa7ce7a0bd167b6fb41dda1456ebd4096
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 14 19:47:15 2025 +0100

    - pl, updated dependencies, cleanup

 python3-semver.spec | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)
---
diff --git a/python3-semver.spec b/python3-semver.spec
index 3b63a36..ef789cc 100644
--- a/python3-semver.spec
+++ b/python3-semver.spec
@@ -1,31 +1,36 @@
+#
 # Conditional build:
 %bcond_without	doc	# API documentation
 %bcond_without	tests	# unit tests
 
 %define		module	semver
 Summary:	Module to simplify semantic versioning
-# Name must match the python module/package name (as on pypi or in 'import' statement)
+Summary(pl.UTF-8):	Moduł upraszczający wersjonowanie semantyczne
 Name:		python3-%{module}
 Version:	3.0.4
 Release:	3
 License:	BSD
 Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/semver/
 Source0:	https://pypi.debian.net/semver/%{module}-%{version}.tar.gz
 # Source0-md5:	a0d76b528e489bf7ce1255a0a1486123
 URL:		https://pypi.org/project/semver/
 BuildRequires:	python3-build
 BuildRequires:	python3-installer
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:61
 %if %{with tests}
-#BuildRequires:	python3-
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-cov
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
+BuildRequires:	python3-sphinx_argparse
 BuildRequires:	python3-sphinx_autodoc_typehints
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python3-modules >= 1:3.2
+Requires:	python3-modules >= 1:3.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,6 +43,16 @@ The module follows the MAJOR.MINOR.PATCH style:
   manner, and
 - PATCH version when you make backwards compatible bug fixes.
 
+%description -l pl.UTF-8
+Moduł Pythona upraszczający wersjonowanie semantyczne.
+
+Moduł naśladuje styl wersji GŁÓWNA.POBOCZNA.POPRAWKA:
+- wersja GŁÓWNA zmienia się przy niezgodnych wstecznie zmianach w API,
+- wersja POBOCZNA zmienia się przy dodawaniu funkcjonalności w sposób
+  zgodny wstecznie,
+- wersja POPRAWKI zmienie się przy zgodnych wstecznie poprawkach
+  błędów.
+
 %package apidocs
 Summary:	API documentation for Python %{module} module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona %{module}
@@ -64,7 +79,6 @@ PYTEST_PLUGINS=pytest_cov.plugin \
 %if %{with doc}
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
-rm -rf docs/_build/html/_sources
 %endif
 
 %install
@@ -77,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG.rst CONTRIBUTING.rst README.rst SUPPORT.md
+%doc CHANGELOG.rst CONTRIBUTORS LICENSE.txt README.rst SUPPORT.md
 %attr(755,root,root) %{_bindir}/pysemver
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}.dist-info
@@ -85,5 +99,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/_build/html/*
+%doc docs/_build/html/{_static,advanced,contribute,migration,usage,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-semver.git/commitdiff/8689963fa7ce7a0bd167b6fb41dda1456ebd4096



More information about the pld-cvs-commit mailing list