1 Summary: Launcher for the Steam software distribution service
7 Source0: http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
8 # Source0-md5: 994dc0700ed28da3a8e23c53ac4717b8
9 Source1: %{name}.sysconfig
10 Patch0: steamdeps.patch
11 URL: http://store.steampowered.com/
12 BuildRequires: sed >= 4.0
13 Requires: ca-certificates >= 20180409-3
15 Requires: fonts-TTF-RedHat-liberation
16 Requires: glibc >= 6:2.15
20 Requires: python-modules
23 Requires: xdg-user-dirs
27 ExclusiveArch: %{ix86} %{x8664}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define poldek_sources -n th -n th-i686
33 %define poldek_sources -n th
37 Steam is a software distribution service with an online store,
38 automated installation, automatic updates, achievements, SteamCloud
39 synchronized savegame and screenshot functionality, and many social
46 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
49 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/etc/sysconfig
54 DESTDIR=$RPM_BUILD_ROOT
56 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_subscriber_agreement.txt}
58 # installed only when apt is installed on the build host
59 [ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
61 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
64 rm -rf $RPM_BUILD_ROOT
67 %update_icon_cache hicolor
68 %update_desktop_database
72 %update_icon_cache hicolor
73 %update_desktop_database_postun
77 %defattr(644,root,root,755)
78 %doc steam_subscriber_agreement.txt
79 %attr(755,root,root) %{_bindir}/steam
80 %attr(755,root,root) %{_bindir}/steamdeps
81 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
83 /usr/lib/steam/bootstraplinux*.tar.xz
84 %{_desktopdir}/steam.desktop
85 %{_iconsdir}/hicolor/*/*/*.png
86 %{_mandir}/man6/steam.6*