public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-dunamai] epel10: init
Date: Mon, 28 Sep 2026 12:31:09 GMT [thread overview]
Message-ID: <179059866939.1.7271727202472205923.rpms-python-dunamai-b6281a257f5c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-dunamai
Branch : epel10
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=epel10
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
reply other threads:[~2026-09-28 12:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179059866939.1.7271727202472205923.rpms-python-dunamai-b6281a257f5c@fedoraproject.org \
--to=sanjay.ankur@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox