steamdeps: use xterm and kdialog to provide more feedback on initial 32-bit deps installation [release 1.0.0.75-4mamba;Tue Nov 08 2022]
This commit is contained in:
parent
36c9d95b0a
commit
d0f063d657
22
steam.spec
22
steam.spec
@ -1,6 +1,6 @@
|
||||
Name: steam
|
||||
Version: 1.0.0.75
|
||||
Release: 3mamba
|
||||
Release: 4mamba
|
||||
Summary: Valve's distribution platform, created to kick-start the digital distribution era for games
|
||||
Group: Graphical Desktop/Applications/Games
|
||||
Vendor: openmamba
|
||||
@ -8,10 +8,14 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://developer.valvesoftware.com/wiki/Steam_under_Linux
|
||||
Source: http://repo.steampowered.com/steam/archive/precise/steam_%{version}.tar.gz
|
||||
Source1: steamdeps
|
||||
Source2: steamdeps.sh
|
||||
License: no OSI Approved
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
Requires: curl
|
||||
Requires: kdialog
|
||||
Requires: xterm
|
||||
Requires: xz
|
||||
Requires: zenity
|
||||
|
||||
@ -28,17 +32,10 @@ Steam is Valve's distribution platform, created to kick-start the digital distri
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
|
||||
%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
|
||||
install -D -m0755 %{SOURCE2} %{buildroot}%{_prefix}/lib/steam/steamdeps.sh
|
||||
|
||||
%ifarch x86_64
|
||||
install -D -m0755 %{SOURCE1} %{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
|
||||
@ -72,6 +69,9 @@ install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
|
||||
%doc COPYING
|
||||
|
||||
%changelog
|
||||
* Tue Nov 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.75-4mamba
|
||||
- steamdeps: use xterm and kdialog to provide more feedback on initial 32-bit deps installation
|
||||
|
||||
* 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
|
||||
|
||||
|
5
steamdeps
Normal file
5
steamdeps
Normal file
@ -0,0 +1,5 @@
|
||||
#!/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
|
||||
xterm -bg black -fg white -e /usr/lib/steam/steamdeps.sh
|
||||
fi
|
8
steamdeps.sh
Normal file
8
steamdeps.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Install 32-bits deps from x86 legacy repository
|
||||
pkexec dnf install -y --disablerepo=rolling \
|
||||
glibc.i586 libglvnd.i586 libmesa.i586 libdrm.i586 libstdc++6.i586 libgcc.i586 libatomic.i586
|
||||
if [ $? -ne 0 ]; then
|
||||
kdialog --msgbox "There was an error while installing Steam 32-bit dependencies.\nPlease check that you have enough free space and that the system is up-to-date before retrying."
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user