3 # - check on and fix for x86_64 (multilib system required)
5 Summary: Launcher for the Steam software distribution service
11 Source0: http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
12 # Source0-md5: c6f75ebaa9e32f2565df620d1867f274
13 Patch0: steamdeps.patch
14 URL: http://store.steampowered.com/
15 BuildRequires: sed >= 4.0
17 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 Steam is a software distribution service with an online store,
32 automated installation, automatic updates, achievements, SteamCloud
33 synchronized savegame and screenshot functionality, and many social
40 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
43 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
47 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
49 # installed only when apt is installed on the build host
50 [ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
53 rm -rf $RPM_BUILD_ROOT
56 %update_icon_cache hicolor
57 %update_desktop_database
61 %update_icon_cache hicolor
62 %update_desktop_database_postun
66 %defattr(644,root,root,755)
67 %doc steam_install_agreement.txt
68 %attr(755,root,root) %{_bindir}/steam
69 %attr(755,root,root) %{_bindir}/steamdeps
71 /usr/lib/steam/bootstraplinux*.tar.xz
72 %{_desktopdir}/steam.desktop
73 %{_iconsdir}/hicolor/*/*/*.png
74 %{_mandir}/man6/steam.6*