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: 1ea5a9bbfc742ce7fee18d67d62c79ea
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
19 Requires: python-modules
22 Requires: xdg-user-dirs
26 ExclusiveArch: %{ix86} %{x8664}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define poldek_sources -n th -n th-i686
32 %define poldek_sources -n th
36 Steam is a software distribution service with an online store,
37 automated installation, automatic updates, achievements, SteamCloud
38 synchronized savegame and screenshot functionality, and many social
45 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
48 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/etc/sysconfig
53 DESTDIR=$RPM_BUILD_ROOT
55 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_subscriber_agreement.txt}
57 # installed only when apt is installed on the build host
58 [ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
60 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
63 rm -rf $RPM_BUILD_ROOT
66 %update_icon_cache hicolor
67 %update_desktop_database
71 %update_icon_cache hicolor
72 %update_desktop_database_postun
76 %defattr(644,root,root,755)
77 %doc steam_subscriber_agreement.txt
78 %attr(755,root,root) %{_bindir}/steam
79 %attr(755,root,root) %{_bindir}/steamdeps
80 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
82 /usr/lib/steam/bootstraplinux*.tar.xz
83 %{_desktopdir}/steam.desktop
84 %{_iconsdir}/hicolor/*/*/*.png
85 %{_mandir}/man6/steam.6*