]> git.pld-linux.org Git - packages/steam-launcher.git/blob - steam-launcher.spec
Version: 1.0.0.49
[packages/steam-launcher.git] / steam-launcher.spec
1 Summary:        Launcher for the Steam software distribution service
2 Name:           steam-launcher
3 Version:        1.0.0.49
4 Release:        1
5 License:        distributable
6 Group:          Applications
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
13 Requires:       curl
14 Requires:       fonts-TTF-RedHat-liberation
15 Requires:       glibc >= 6:2.15
16 Requires:       pld-release
17 Requires:       poldek
18 Requires:       python-modules
19 Requires:       rpm
20 Requires:       which
21 Requires:       xdg-user-dirs
22 Requires:       xterm
23 Requires:       xz
24 Requires:       zenity
25 ExclusiveArch:  %{ix86} %{x8664}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %ifarch %{x8664}
29 %define poldek_sources  -n th -n th-i686
30 %else
31 %define poldek_sources  -n th
32 %endif
33
34 %description
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
38 features.
39
40 %prep
41 %setup -qn steam
42 %patch0 -p1
43
44 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 install -d $RPM_BUILD_ROOT/etc/sysconfig
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
55
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
58
59 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 %update_icon_cache hicolor
66 %update_desktop_database
67 %glib_compile_schemas
68
69 %postun
70 %update_icon_cache hicolor
71 %update_desktop_database_postun
72 %glib_compile_schemas
73
74 %files
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}
80 %dir /usr/lib/steam
81 /usr/lib/steam/bootstraplinux*.tar.xz
82 %{_desktopdir}/steam.desktop
83 %{_iconsdir}/hicolor/*/*/*.png
84 %{_mandir}/man6/steam.6*
85 %{_pixmapsdir}/*.png
This page took 0.0597299999999999 seconds and 4 git commands to generate.