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
|
Name: steam
|
||||||
Version: 1.0.0.75
|
Version: 1.0.0.75
|
||||||
Release: 3mamba
|
Release: 4mamba
|
||||||
Summary: Valve's distribution platform, created to kick-start the digital distribution era for games
|
Summary: Valve's distribution platform, created to kick-start the digital distribution era for games
|
||||||
Group: Graphical Desktop/Applications/Games
|
Group: Graphical Desktop/Applications/Games
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -8,10 +8,14 @@ Distribution: openmamba
|
|||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://developer.valvesoftware.com/wiki/Steam_under_Linux
|
URL: https://developer.valvesoftware.com/wiki/Steam_under_Linux
|
||||||
Source: http://repo.steampowered.com/steam/archive/precise/steam_%{version}.tar.gz
|
Source: http://repo.steampowered.com/steam/archive/precise/steam_%{version}.tar.gz
|
||||||
|
Source1: steamdeps
|
||||||
|
Source2: steamdeps.sh
|
||||||
License: no OSI Approved
|
License: no OSI Approved
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
Requires: curl
|
Requires: curl
|
||||||
|
Requires: kdialog
|
||||||
|
Requires: xterm
|
||||||
Requires: xz
|
Requires: xz
|
||||||
Requires: zenity
|
Requires: zenity
|
||||||
|
|
||||||
@ -28,17 +32,10 @@ Steam is Valve's distribution platform, created to kick-start the digital distri
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
%ifarch x86_64
|
install -D -m0755 %{SOURCE2} %{buildroot}%{_prefix}/lib/steam/steamdeps.sh
|
||||||
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
|
|
||||||
|
|
||||||
|
%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
|
ln -sf %{_prefix}/lib/steam/bin_steamdeps.sh %{buildroot}%{_bindir}/steamdeps
|
||||||
%else
|
%else
|
||||||
ln -sf true %{buildroot}%{_bindir}/steamdeps
|
ln -sf true %{buildroot}%{_bindir}/steamdeps
|
||||||
@ -72,6 +69,9 @@ install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- 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