public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-dunamai] epel10.3: Assert that the .dist-info directory contains a license file
Date: Mon, 28 Sep 2026 12:58:54 GMT [thread overview]
Message-ID: <179060033471.1.1656159284210989910.rpms-python-dunamai-4c92b290f77f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-dunamai
Branch : epel10.3
Commit : 4c92b290f77f0741da7a9fbe002390eca1d23ee9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-28T12:47:24+01:00
Stats : +10/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-dunamai/c/4c92b290f77f0741da7a9fbe002390eca1d23ee9?branch=epel10.3
Log:
Assert that the .dist-info directory contains a license file
---
diff --git a/python-dunamai.spec b/python-dunamai.spec
index 9952019..480c45f 100644
--- a/python-dunamai.spec
+++ b/python-dunamai.spec
@@ -2,6 +2,9 @@
# Useful to disable when breezy is broken with new Python version.
%bcond breezy 1
+# Is poetry-core too old for the license file to be handled automatically?
+%bcond no_pep_639_license %[ %{defined fc43} || %{defined el10} || %{defined el9} ]
+
%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
@@ -59,7 +62,11 @@ sed -i 's/\r$//' CHANGELOG.md
%install
%pyproject_install
+%if %{with no_pep_639_license}
%pyproject_save_files dunamai
+%else
+%pyproject_save_files --assert-license dunamai
+%endif
# generate man pages
for binary in "dunamai" "dunamai check" "dunamai from" "dunamai from any" "dunamai from bazaar" "dunamai from darcs" "dunamai from fossil" "dunamai from git" "dunamai from mercurial" "dunamai from pijul" "dunamai from subversion"
@@ -89,6 +96,9 @@ export DARCS_EMAIL="Yep something <name@example.com>"
%files -n python3-dunamai -f %{pyproject_files}
%doc README.md CHANGELOG.md
+%if %{with no_pep_639_license}
+%license LICENSE
+%endif
%{_bindir}/dunamai
%{_mandir}/man1/dunamai*.1*
reply other threads:[~2026-09-28 12:58 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=179060033471.1.1656159284210989910.rpms-python-dunamai-4c92b290f77f@fedoraproject.org \
--to=code@musicinmybrain.net \
--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