From 3440e81f9e0bb257a217da45a3879a8245a0bed92e6d7aab7914c757cdb079c1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 24 Jan 2022 08:47:46 +0000 Subject: [PATCH] Accepting request 948234 from home:gmbr3:Active - Set sbindir to /usr/bin to fix Steam issues (rh#1858437, gh#ValveSoftware/steam-for-linux#3306) - Add symlinks from /usr/sbin to /usr/bin OBS-URL: https://build.opensuse.org/request/show/948234 OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=81 --- pciutils.changes | 7 +++++++ pciutils.spec | 16 +++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/pciutils.changes b/pciutils.changes index 9a4b4b3..216be8b 100644 --- a/pciutils.changes +++ b/pciutils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Jan 23 14:56:10 UTC 2022 - Callum Farmer + +- Set sbindir to /usr/bin to fix Steam issues + (rh#1858437, gh#ValveSoftware/steam-for-linux#3306) +- Add symlinks from /usr/sbin to /usr/bin + ------------------------------------------------------------------- Tue May 11 14:19:35 UTC 2021 - Callum Farmer diff --git a/pciutils.spec b/pciutils.spec index c163003..b017749 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -70,10 +70,10 @@ development using the PCI utilities. %autosetup -p1 %build -%make_build OPT="%{optflags}" PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} STRIP="" SHARED="yes" +%make_build OPT="%{optflags}" PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_bindir} STRIP="" SHARED="yes" %install -make install PREFIX=%{buildroot}%{_prefix} SBINDIR=%{buildroot}%{_sbindir} \ +make install PREFIX=%{buildroot}%{_prefix} SBINDIR=%{buildroot}%{_bindir} \ ROOT=%{buildroot} MANDIR=%{buildroot}%{_mandir} STRIP="" \ SHARED="yes" LIBDIR=%{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir}/pci @@ -84,9 +84,15 @@ ln -sf %{_libdir}/libpci.so.3 %{buildroot}%{_libdir}/libpci.so %if !0%{?usrmerged} mkdir %{buildroot}/sbin -ln -s %{_sbindir}/{lspci,setpci} %{buildroot}/sbin +ln -s %{_bindir}/{lspci,setpci} %{buildroot}/sbin %endif +mkdir %{buildroot}%{_sbindir} +ln -s %{_bindir}/{lspci,setpci} %{buildroot}%{_sbindir} + +rm %{buildroot}%{_bindir}/update-pciids +rm %{buildroot}%{_mandir}/man8/update-pciids.8 + %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig @@ -97,13 +103,13 @@ ln -s %{_sbindir}/{lspci,setpci} %{buildroot}/sbin /sbin/lspci /sbin/setpci %endif +%{_bindir}/lspci +%{_bindir}/setpci %{_sbindir}/lspci %{_sbindir}/setpci -%exclude %{_sbindir}/update-pciids %{_mandir}/man7/pcilib.7%{?ext_man} %{_mandir}/man8/lspci.8%{?ext_man} %{_mandir}/man8/setpci.8%{?ext_man} -%exclude %{_mandir}/man8/update-pciids.8%{?ext_man} %{_mandir}/man5/pci.ids.5%{?ext_man} %files -n %{lname}