public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hwinfo] epel10: Fix build when %_sbindir != /usr/sbin
@ 2026-09-04 15:54 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-04 15:54 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hwinfo
            Branch : epel10
            Commit : f8ed7bf4e3ddf56badd489afb4fcde9278821473
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
            Date   : 2025-04-24T14:02:29+02:00
            Stats  : +5/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/hwinfo/c/f8ed7bf4e3ddf56badd489afb4fcde9278821473?branch=epel10

            Log:
            Fix build when %_sbindir != /usr/sbin

... (rhbz#2340622)

---
diff --git a/hwinfo.spec b/hwinfo.spec
index 8bb82fa..a0fcaba 100644
--- a/hwinfo.spec
+++ b/hwinfo.spec
@@ -20,7 +20,7 @@ BuildRequires:  libuuid-devel
 BuildRequires:  gcc
 BuildRequires:  flex
 BuildRequires:  perl-interpreter
-BuildRequires: make
+BuildRequires:  make
 Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 Obsoletes:      %{name} < 22.2-1
 
@@ -64,6 +64,10 @@ make %{make_flags}
 
 %ldconfig_scriptlets libs
 
+%if "%{_sbindir}" == "%{_bindir}"
+# Makefile hardcodes sbin paths. Fix the install locations here.
+mv %{buildroot}/usr/sbin  %{buildroot}%{_sbindir}
+%endif
 
 %files
 %{_sbindir}/check_hd

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

only message in thread, other threads:[~2026-09-04 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 15:54 [rpms/hwinfo] epel10: Fix build when %_sbindir != /usr/sbin 

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