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: 2ec8c8172fd34a1c0d007d7250509f42
9 Source1: %{name}.sysconfig
10 Patch0: steamdeps.patch
11 URL: http://store.steampowered.com/
12 BuildRequires: sed >= 4.0
14 Requires: fonts-TTF-RedHat-liberation
15 Requires: glibc >= 6:2.15
18 Requires: python-modules
21 Requires: xdg-user-dirs
25 ExclusiveArch: %{ix86} %{x8664}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define poldek_sources -n th -n th-i686
31 %define poldek_sources -n th
35 Steam is a software distribution service with an online store,
36 automated installation, automatic updates, achievements, SteamCloud
37 synchronized savegame and screenshot functionality, and many social
44 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
47 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT/etc/sysconfig
52 DESTDIR=$RPM_BUILD_ROOT
54 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
56 # installed only when apt is installed on the build host
57 [ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
59 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
62 rm -rf $RPM_BUILD_ROOT
65 %update_icon_cache hicolor
66 %update_desktop_database
70 %update_icon_cache hicolor
71 %update_desktop_database_postun
75 %defattr(644,root,root,755)
76 %doc steam_install_agreement.txt
77 %attr(755,root,root) %{_bindir}/steam
78 %attr(755,root,root) %{_bindir}/steamdeps
79 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
81 /usr/lib/steam/bootstraplinux*.tar.xz
82 %{_desktopdir}/steam.desktop
83 %{_iconsdir}/hicolor/*/*/*.png
84 %{_mandir}/man6/steam.6*