public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pythoncapi-compat] epel9: Use various long options
@ 2026-10-11 8:34 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-11 8:34 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 8:34 [rpms/pythoncapi-compat] epel9: Use various long options Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox