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: c6f75ebaa9e32f2565df620d1867f274
9 Source1: %{name}.sysconfig
10 Patch0: steamdeps.patch
11 URL: http://store.steampowered.com/
12 BuildRequires: sed >= 4.0
14 Requires: glibc >= 6:2.15
17 Requires: python-modules
20 Requires: xdg-user-dirs
24 ExclusiveArch: %{ix86} %{x8664}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define poldek_sources -n th -n th-i686
30 %define poldek_sources -n th
34 Steam is a software distribution service with an online store,
35 automated installation, automatic updates, achievements, SteamCloud
36 synchronized savegame and screenshot functionality, and many social
43 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
46 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/etc/sysconfig
51 DESTDIR=$RPM_BUILD_ROOT
53 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
55 # installed only when apt is installed on the build host
56 [ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
58 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
61 rm -rf $RPM_BUILD_ROOT
64 %update_icon_cache hicolor
65 %update_desktop_database
69 %update_icon_cache hicolor
70 %update_desktop_database_postun
74 %defattr(644,root,root,755)
75 %doc steam_install_agreement.txt
76 %attr(755,root,root) %{_bindir}/steam
77 %attr(755,root,root) %{_bindir}/steamdeps
78 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
80 /usr/lib/steam/bootstraplinux*.tar.xz
81 %{_desktopdir}/steam.desktop
82 %{_iconsdir}/hicolor/*/*/*.png
83 %{_mandir}/man6/steam.6*