public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gram_grep] f44: Use various long options
@ 2026-06-19 12:41 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-19 12:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gram_grep
Branch : f44
Commit : 279f4dbc2b51ac39d8e0fbcaf01c8221198a3a8a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-19T12:47:48+01:00
Stats  : +9/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gram_grep/c/279f4dbc2b51ac39d8e0fbcaf01c8221198a3a8a?branch=f44

Log:
Use various long options

---
diff --git a/gram_grep.spec b/gram_grep.spec
index 0e126f2..3334a72 100644
--- a/gram_grep.spec
+++ b/gram_grep.spec
@@ -34,20 +34,23 @@ greater refinement.
 %prep -a
 # Fix line terminations (particularly for files that may be installed)
 find . -type f -exec file '{}' '+' |
-  grep -E '\bCRLF\b' |
-  cut -d ':' -f 1 |
-  xargs -r dos2unix --keepdate
+  grep --extended-regexp '\bCRLF\b' |
+  cut --delimiter=':' --fields1 |
+  xargs --no-run-if-empty dos2unix --keepdate
 
 # Remove include paths for unbundled header-only library dependencies
-sed -r -i 's@^([[:blank:]]*)(include_directories.*"\.\./)@\1# \2@' \
+sed --regexp-extended --in-place \
+    's@^([[:blank:]]*)(include_directories.*"\.\./)@\1# \2@' \
     CMakeLists.txt
 
 
 %install
 # The CMake build system has no provision for installing the program, so
 # %%cmake_install would do nothing. We must install the executable manually.
-install -t '%{buildroot}%{_bindir}' -p -D %{_vpath_builddir}/gram_grep
-install -t '%{buildroot}%{_mandir}/man1' -p -D -m 0644 '%{SOURCE1}'
+install -D --preserve-timestamps \
+    --target='%{buildroot}%{_bindir}' '%{_vpath_builddir}/gram_grep'
+install -D --preserve-timestamps --mode=0644 \
+    --target='%{buildroot}%{_mandir}/man1' '%{SOURCE1}'
 
 
 %check

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-19 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 12:41 [rpms/gram_grep] f44: 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