public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Pencil2D] f45: Use various long options
@ 2026-09-17 15:18 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-17 15:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/Pencil2D
Branch : f45
Commit : f1c5759528c673c95ad030b414bc8978aad5f6ef
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-07T19:11:08+01:00
Stats : +9/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/Pencil2D/c/f1c5759528c673c95ad030b414bc8978aad5f6ef?branch=f45
Log:
Use various long options
---
diff --git a/Pencil2D.spec b/Pencil2D.spec
index 1c207bd..5e02e9b 100644
--- a/Pencil2D.spec
+++ b/Pencil2D.spec
@@ -332,15 +332,16 @@ Pencil2D是适用于Mac OS X,Windows和Linux的动画/绘图软件。它允许
%autosetup -n pencil-%{version} -p1
# Unbundle miniz
-rm -v core_lib/src/miniz.h core_lib/src/miniz.cpp
-sed -r -i '/\bminiz\.(h|cpp)/d' core_lib/core_lib.pro
-echo "LIBS_PRIVATE += $(pkgconf --libs miniz)" | tee -a */*.pro >/dev/null
-echo "INCLUDEPATH += $(pkgconf --variable=includedir miniz)" | tee -a */*.pro >/dev/null
+rm core_lib/src/miniz.h core_lib/src/miniz.cpp
+sed --regexp-extended --in-place '/\bminiz\.(h|cpp)/d' core_lib/core_lib.pro
+printf 'LIBS_PRIVATE += %s\nINCLUDEPATH += %s\n' \
+ "$(pkgconf --libs miniz)" "$(pkgconf --variable=includedir miniz)" |
+ tee --append */*.pro >/dev/null
# Unbundle catch2, using version 3.x
# https://catch2-temp.readthedocs.io/en/latest/migrate-v2-to-v3.html
-echo '#include <catch2/catch_all.hpp>' > tests/src/catch.hpp
-echo "LIBS += $(pkgconf --libs catch2)" >> tests/tests.pro
+printf '#include <%s>\n' 'catch2/catch_all.hpp' > tests/src/catch.hpp
+printf 'LIBS += %s\n' "$(pkgconf --libs catch2)" >> tests/tests.pro
%conf
@@ -368,7 +369,8 @@ QT_QPA_PLATFORM=offscreen help2man --no-info --output=pencil2d.1 ./app/pencil2d
%install
%make_install INSTALL_ROOT='%{buildroot}'
-install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 pencil2d.1
+install -D --target='%{buildroot}%{_mandir}/man1' \
+ --preserve-timestamp --mode=0644 pencil2d.1
%check
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-17 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 15:18 [rpms/Pencil2D] f45: 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