public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/runc] f44: Eliminate rpmlint errors and warnings
@ 2026-09-26 23:33 Bradley G Smith
  0 siblings, 0 replies; only message in thread
From: Bradley G Smith @ 2026-09-26 23:33 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/runc
            Branch : f44
            Commit : eaf6afdb1e0a2d3b470becb74d22cb6e129067e5
            Author : Bradley G Smith <bradley.g.smith@gmail.com>
            Date   : 2026-09-26T16:19:47-07:00
            Stats  : +11/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/runc/c/eaf6afdb1e0a2d3b470becb74d22cb6e129067e5?branch=f44

            Log:
            Eliminate rpmlint errors and warnings

- Handle duplicate license files
- Remove shebang from bash completion file

---
diff --git a/runc.spec b/runc.spec
index 68f3abf..f5ad229 100644
--- a/runc.spec
+++ b/runc.spec
@@ -22,13 +22,12 @@ Source0:        %{gosource}
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
 
+BuildRequires:  fdupes
 BuildRequires:  go-vendor-tools
 BuildRequires:  go-md2man
 BuildRequires:  libpathrs-devel
 BuildRequires:  pkgconfig(libseccomp)
 
-Requires:       libpathrs
-
 Provides:       oci-runtime
 
 Recommends:     container-selinux >= 2:2.85-1
@@ -45,6 +44,10 @@ specification.
 %goprep -p1
 tar -xf %{S:1}
 
+# remove shebang in bash completion file
+%global runccomp ./contrib/completions/bash/runc
+sed -i "1c\\# bash completion for runc                                -*- shell-script -*-" %{runccomp}
+
 %generate_buildrequires
 %go_vendor_license_buildrequires -c %{S:2}
 
@@ -65,9 +68,13 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 # install man pages
 install -d -p                           %{buildroot}%{_mandir}/man8
 install -m 0644 -vp man/man8/*.8        %{buildroot}%{_mandir}/man8/.
+
 # install bash completion
-install -m 0755 -vd                     %{buildroot}/%{bash_completions_dir}
-install -m 0644 -vp contrib/completions/bash/%{name} %{buildroot}/%{bash_completions_dir}
+install -d -m 0755                      %{buildroot}%{bash_completions_dir}
+install -D -m 0644 -t                   %{buildroot}%{bash_completions_dir} %{runccomp}
+
+# remove duplicate license files
+%fdupes %{buildroot}%{_datadir}/licenses/runc
 
 %check
 %go_vendor_license_check -c %{S:2}

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

only message in thread, other threads:[~2026-09-26 23:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-26 23:33 [rpms/runc] f44: Eliminate rpmlint errors and warnings Bradley G Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox