[packages/python3-dunamai] - new
qboosh
qboosh at pld-linux.org
Sun Nov 2 12:03:13 CET 2025
commit 67e2be1176be4d2ca38a5cc0bdbb50cd945abef3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 12:03:05 2025 +0100
- new
python3-dunamai.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
---
diff --git a/python3-dunamai.spec b/python3-dunamai.spec
new file mode 100644
index 0000000..00f0c07
--- /dev/null
+++ b/python3-dunamai.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Dynamic version generation
+Summary(pl.UTF-8): Dynamiczne generowanie wersji
+Name: python3-dunamai
+Version: 1.25.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/dunamai/
+Source0: https://files.pythonhosted.org/packages/source/d/dunamai/dunamai-%{version}.tar.gz
+# Source0-md5: 74e16e6b35645ee136c5df3328567862
+URL: https://pypi.org/project/dunamai/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-poetry-core >= 1.0.0
+%if %{with tests}
+%if "%{_ver_lt %{py3_ver} 3.8}" == "1"
+BuildRequires: python3-importlib_metadata >= 1.6.0
+%endif
+BuildRequires: python3-packaging >= 20.9
+BuildRequires: python3-pytest >= 7.2
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Dunamai is a Python 3.5+ library and command line tool for producing
+dynamic, standards-compliant version strings, derived from tags in
+your version control system. This facilitates uniquely identifying
+nightly or per-commit builds in continuous integration and releasing
+new versions of your software simply by creating a tag.
+
+%description -l pl.UTF-8
+Dunamai to biblioteka Pythona 3.5+ oraz narzędzie wiersza poleceń do
+tworzenia dynamicznych, zgodnych ze standardami łańcuchów wersji,
+wywodzących się ze znaczników w systemie kontroli wersji. Pomaga to
+na unikatowe identyfikowanie wyników nocnych lub wykonywanych po
+każdym zatwierdzeniu budowań w procesie ciągłej integracji albo
+przy wydawaniu nowych wersji oprogramowania poprzez samo utworzenie
+znacznika.
+
+%prep
+%setup -q -n dunamai-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/build-3-test \
+%{__python3} -m pytest tests/unit -k 'not test__cli_check'
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%attr(755,root,root) %{_bindir}/dunamai
+%{py3_sitescriptdir}/dunamai
+%{py3_sitescriptdir}/dunamai-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-dunamai.git/commitdiff/67e2be1176be4d2ca38a5cc0bdbb50cd945abef3
More information about the pld-cvs-commit
mailing list