steamdeps: add explicit deps from gcc to prevent installing gcc-multilib [release 1.0.0.75-3mamba;Thu Sep 29 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 18:07:01 +01:00
parent e7c6b94fc9
commit 36c9d95b0a

View File

@ -1,6 +1,6 @@
Name: steam
Version: 1.0.0.75
Release: 1mamba
Release: 3mamba
Summary: Valve's distribution platform, created to kick-start the digital distribution era for games
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
@ -28,8 +28,21 @@ Steam is Valve's distribution platform, created to kick-start the digital distri
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# blank steamdeps because apt-get
ln -sf /bin/true %{buildroot}%{_bindir}/steamdeps
%ifarch x86_64
cat > %{buildroot}%{_prefix}/lib/steam/bin_steamdeps.sh << _EOF
#!/bin/bash
# Install 32-bits deps from x86 legacy repository
if [ ! -e /usr/lib/libGL.so.1 -o ! -e /usr/lib/libstdc++.so.6 ]; then
pkexec dnf install -y --disablerepo=rolling glibc.i586 libglvnd.i586 \
libmesa.i586 libdrm.i586 libstdc++6.i586 libgcc.i586 libatomic.i586
fi
_EOF
chmod +x %{buildroot}%{_prefix}/lib/steam/bin_steamdeps.sh
ln -sf %{_prefix}/lib/steam/bin_steamdeps.sh %{buildroot}%{_bindir}/steamdeps
%else
ln -sf true %{buildroot}%{_bindir}/steamdeps
%endif
install -Dm 644 subprojects/steam-devices/60-steam-input.rules \
%{buildroot}%{_udevrulesdir}/70-steam-input.rules
@ -59,6 +72,12 @@ install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
%doc COPYING
%changelog
* Thu Sep 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.75-3mamba
- steamdeps: add explicit deps from gcc to prevent installing gcc-multilib
* Wed Aug 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.75-2mamba
- provide steamdeps script to install deps from i586 repository
* Sat Jul 16 2022 Automatic Build System <autodist@mambasoft.it> 1.0.0.75-1mamba
- automatic version update by autodist