-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
steam.spec
135 lines (122 loc) · 3.67 KB
/
steam.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
%define debug_package %{nil}
Summary: Steam Linux Client
Name: steam
Version: 1.0.0.82
Release: 1
Group: Games/Other
License: Proprietary
URL: https://github.com/ValveSoftware/steam-for-linux
Source0: http://repo.steampowered.com/steam/pool/steam/s/steam/%{name}_%{version}.tar.gz
# Input devices seen as joysticks:
Source8: https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/master/after_kernel_4_9/51-these-are-not-joysticks-rm.rules
# First generation Nvidia Shield controller seen as mouse:
Source9: https://raw.githubusercontent.com/cyndis/shield-controller-config/master/99-shield-controller.rules
Patch0: steam-shortcut-tar-fix.patch
# Make Steam Controller usable as a GamePad:
# https://steamcommunity.com/app/353370/discussions/0/490123197956024380/
Patch1: %{name}-controller-gamepad-emulation.patch
Patch2: steam-fix-crackling-audio.patch
Requires: alsa-lib
Requires: awk
Requires: coreutils
Requires: diffutils
Requires: curl >= 7.63.0
# (tpg) see https://github.com/ValveSoftware/csgo-osx-linux/issues/1925
# failed to dlopen engine_client.so error=/usr/lib64/libldap_r-2.4.so.2: version `OPENLDAP_2.4_2' not found
Requires: %{_lib}ldap2.4_2 >= 2.4.46-4
Requires: dbus
Requires: desktop-file-utils
Requires: fonts-ttf-liberation
Requires: gdk-pixbuf2.0
Requires: gtk+2.0
Requires: gnutar >= 1.34-3
Requires: hicolor-icon-theme
Requires: nss
Requires: openal
Requires: pulseaudio
Requires: xterm
Requires: xz
Requires: (zenity-gtk or qarma)
# Libraries
Requires: libcurl4 >= 7.63.0
Requires: libcrypt1
Requires: libdbus-1_3
Requires: libfreetype6
Requires: libgcrypt20
Requires: libgpg-error0
Requires: libGLESv2_2
Requires: libGLdispatch0
Requires: libEGL1
Requires: libGL1
Requires: libglu1
Requires: libgdk_pixbuf2.0_0
Requires: libgtk-x11_2.0_0
Requires: libgnutls
Requires: liblcms2_2
Requires: libOpenGL0
Requires: libpcre1
Requires: libpango1.0_0
Requires: libpng16_16
Requires: libpulseaudio0
Requires: libSDL2_2.0_1
Requires: libstdc++6
Requires: libpixman1_0
Requires: libudev1
Requires: libogg0
Requires: libvorbis0
Requires: libxtst6
Requires: libxrender1
Requires: libxrandr2
Requires: libxi6
Requires: libxfixes3
Requires: libxdmcp6
Requires: libdri-drivers
Requires: libopenal1
Requires: libsm6
Requires: libice6
Requires: libxcb-dri2_0
Requires: libxcb-glx0
Requires: libusb1.0_0
Requires: libcrypto1.1
Requires: libsamplerate0
Requires: libva2
Requires: libva-intel-driver
Requires: libvdpau1
Requires: libvulkan1
# Needed for some Paradox Native Linux games as Crusader Kings III
Requires: %{_lib}ncurses6
# Needed for sound on 32-bit games if use pipewire
Recommends: libpipewire0.3_0
Recommends: alsa-plugins-32bit
# mesa libs
Requires: libGLX_mesa0
Requires: libEGL_mesa0
Requires: vulkan-loader
ExclusiveArch: %{x86_64} %{ix86}
%description
Launcher for the Valve's Steam software distribution service.
%prep
%autosetup -n %{name}-launcher -p1
%build
%install
%make_install
# Remove steamdeps, it's not working on non-Debian based distros
rm -f %{buildroot}%{_bindir}/steamdeps %{buildroot}%{_prefix}/lib/steam/bin_steamdeps.py
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 644 -p subprojects/steam-devices/*.rules \
%{SOURCE8} %{SOURCE9} %{buildroot}%{_udevrulesdir}/
%files
%doc %{_docdir}/*
%{_bindir}/steam*
%dir %{_prefix}/lib/steam
%{_prefix}/lib/steam/bin_steam.sh
%{_prefix}/lib/steam/steam.desktop
%{_prefix}/lib/steam/bootstraplinux_ubuntu12_32.tar.xz
%{_prefix}/lib/steam/steam_launcher/__init__.py
%{_prefix}/lib/steam/steam_launcher/launcherutils.py
%{_datadir}/applications/steam.desktop
%{_datadir}/pixmaps/steam*.png
%{_datadir}/metainfo/com.valvesoftware.Steam.metainfo.xml
%{_iconsdir}/hicolor/*/apps/steam.*
%{_mandir}/man6/steam.6.*
%{_udevrulesdir}/*.rules