[packages/python-semver] - last version of semver compatible with python 2.7
qboosh
qboosh at pld-linux.org
Sun Dec 14 20:06:33 CET 2025
commit 1a44cf2db8d630dafb68aed0538ea01e7bc85e0c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 14 20:06:47 2025 +0100
- last version of semver compatible with python 2.7
python-semver.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
---
diff --git a/python-semver.spec b/python-semver.spec
new file mode 100644
index 0000000..434aadf
--- /dev/null
+++ b/python-semver.spec
@@ -0,0 +1,106 @@
+#
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+
+%define module semver
+Summary: Module to simplify semantic versioning
+Summary(pl.UTF-8): Moduł upraszczający wersjonowanie semantyczne
+Name: python-%{module}
+# keep 2.x here for python2 support
+Version: 2.13.0
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/semver/
+Source0: https://pypi.debian.net/semver/%{module}-%{version}.tar.gz
+# Source0-md5: e98b5fb283ea84daa5195087de83ebf1
+URL: https://pypi.org/project/semver/
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pytest
+BuildRequires: python-pytest-cov
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python-sphinx_argparse
+BuildRequires: python-sphinx_rtd_theme
+BuildRequires: sphinx-pdg-2
+%endif
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Python module to simplify semantic versioning.
+
+The module follows the MAJOR.MINOR.PATCH style:
+- MAJOR version when you make incompatible API changes,
+- MINOR version when you add functionality in a backwards compatible
+ 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}
+Group: Documentation
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
+%{__python} -m pytest test_*.py
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-2
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/pysemver{,-2}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst CONTRIBUTORS LICENSE.txt README.rst
+%attr(755,root,root) %{_bindir}/pysemver-2
+%{py_sitescriptdir}/semver.py[co]
+%{py_sitescriptdir}/semver-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-semver.git/commitdiff/1a44cf2db8d630dafb68aed0538ea01e7bc85e0c
More information about the pld-cvs-commit
mailing list