public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dunamai] epel9: init
@ 2026-09-28 17:21 Ankur Sinha
0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-09-28 17:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-dunamai
Branch : epel9
Commit : b6281a257f5c2046655ccdda8a5da56ab9b9c1eb
Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
Date : 2022-11-01T17:34:21+00:00
Stats : +78/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-dunamai/c/b6281a257f5c2046655ccdda8a5da56ab9b9c1eb?branch=epel9
Log:
init
---
diff --git a/python-dunamai.spec b/python-dunamai.spec
new file mode 100644
index 0000000..5aff60e
--- /dev/null
+++ b/python-dunamai.spec
@@ -0,0 +1,78 @@
+# See this for all pyproject macros: https://src.fedoraproject.org/rpms/pyproject-rpm-macros
+# New guidelines: https://fedoraproject.org/wiki/Changes/PythonPackagingGuidelines202x
+
+# Enabled by default
+# If the package needs to download data for the test which cannot be done in
+# koji, these can be disabled in koji by using `bcond_with` instead, but the
+# tests must be validated in mock with network enabled like so:
+# mock -r fedora-rawhide-x86_64 rebuild <srpm> --enable-network --rpmbuild-opts="--with tests"
+%bcond_without tests
+
+# Replace "dunamai" with the appropriate value using your editor's
+# search and replace function. It is preferred to using macros like %{pypi_name}
+# because they make the spec harder to read especially in cases where the
+# canonical ("pretty name") of the module is different from its name on pypi
+
+
+# for github etc. use the forgemacros
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_using_forges_hosted_revision_control
+
+%global _description %{expand:
+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.}
+
+Name: python-dunamai
+Version: 1.13.2
+Release: %{autorelease}
+Summary: Dynamic version generation
+
+License: MIT
+URL: https://pypi.org/pypi/dunamai
+Source0: %{pypi_source dunamai}
+
+BuildArch: noarch
+
+%description %_description
+
+%package -n python3-dunamai
+Summary: %{summary}
+# pyproject-rpm-macros is also pulled in by python3-devel
+BuildRequires: python3-devel
+
+%description -n python3-dunamai %_description
+
+%prep
+%autosetup -n dunamai-%{version}
+
+# Comment out to remove /usr/bin/env shebangs
+# Can use something similar to correct/remove /usr/bin/python shebangs also
+# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
+
+# see pyproject-rpm-macros documentation for more forms
+%generate_buildrequires
+%pyproject_buildrequires
+
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+%pyproject_save_files dunamai
+
+%check
+%if %{with tests}
+%{pytest}
+# or %%{tox}
+%endif
+
+# LICENSE/COPYING are included in the dist-info, so we do not need to
+# explicitly list them again
+%files -n python3-dunamai -f %{pyproject_files}
+%doc README.rst
+
+%changelog
+%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-28 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 17:21 [rpms/python-dunamai] epel9: init Ankur Sinha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox