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/pythoncapi-compat] epel9: Use various long options
Date: Sun, 11 Oct 2026 08:34:53 GMT [thread overview]
Message-ID: <179170769336.1.10619373241391843720.rpms-pythoncapi-compat-c46f28ed6074@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pythoncapi-compat
Branch : epel9
Commit : c46f28ed6074b58ed9bcf401e3b3c22715d92d50
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-11T09:32:39+01:00
Stats : +11/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pythoncapi-compat/c/c46f28ed6074b58ed9bcf401e3b3c22715d92d50?branch=epel9
Log:
Use various long options
---
diff --git a/pythoncapi-compat.spec b/pythoncapi-compat.spec
index 30023e4..eaf6e04 100644
--- a/pythoncapi-compat.spec
+++ b/pythoncapi-compat.spec
@@ -64,12 +64,15 @@ BuildArch: noarch
%prep
%autosetup -n pythoncapi-compat-%{commit}
+
# Workaround for header include path problems in the tests on EPEL9
-sed -r -i 's|"(pythoncapi_compat.h")|"../\1|' \
+sed --regexp-extended --in-place 's|"(pythoncapi_compat.h")|"../\1|' \
tests/test_pythoncapi_compat_cext.c
+
# Compiling with -Werror makes sense for upstream CI, but is probably too
# brittle for downstream builds.
-sed -r -i "s/^([[:blank:]]*)(['\"]-Werror)/\1# \2/" tests/setup.py
+sed --regexp-extended --in-place "s/^([[:blank:]]*)(['\"]-Werror)/\1# \2/" \
+ tests/setup.py
%generate_buildrequires
@@ -85,9 +88,12 @@ popd >/dev/null
%install
-install -t '%{buildroot}%{_includedir}' -D -p -m 0644 pythoncapi_compat.h
-install -D -p -t '%{buildroot}%{_bindir}' upgrade_pythoncapi.py
-install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'
+install -D --preserve-timestamps --mode=0644 \
+ --target='%{buildroot}%{_includedir}' pythoncapi_compat.h
+install -D --preserve-timestamps \
+ --target='%{buildroot}%{_bindir}' upgrade_pythoncapi.py
+install -D --preserve-timestamps --mode=0644 \
+ --target='%{buildroot}%{_mandir}/man1' '%{SOURCE1}'
%py3_shebang_fix %{buildroot}%{_bindir}/upgrade_pythoncapi.py
reply other threads:[~2026-10-11 8:34 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=179170769336.1.10619373241391843720.rpms-pythoncapi-compat-c46f28ed6074@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