]> git.pld-linux.org Git - packages/steam-launcher.git/blob - steam-launcher.spec
steamdeps updated for x86_64 and improved
[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.47
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:  c6f75ebaa9e32f2565df620d1867f274
9 Source1:        %{name}.sysconfig
10 Patch0:         steamdeps.patch
11 URL:            http://store.steampowered.com/
12 BuildRequires:  sed >= 4.0
13 Requires:       curl
14 Requires:       glibc >= 6:2.15
15 Requires:       pld-release
16 Requires:       poldek
17 Requires:       python-modules
18 Requires:       rpm
19 Requires:       which
20 Requires:       xdg-user-dirs
21 Requires:       xterm
22 Requires:       xz
23 Requires:       zenity
24 ExclusiveArch:  %{ix86} %{x8664}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %ifarch %{x8664}
28 %define poldek_sources  -n th -n th-i686
29 %else
30 %define poldek_sources  -n th
31 %endif
32
33 %description
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
37 features.
38
39 %prep
40 %setup -qn steam
41 %patch0 -p1
42
43 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 install -d $RPM_BUILD_ROOT/etc/sysconfig
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
54
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
57
58 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 %update_icon_cache hicolor
65 %update_desktop_database
66 %glib_compile_schemas
67
68 %postun
69 %update_icon_cache hicolor
70 %update_desktop_database_postun
71 %glib_compile_schemas
72
73 %files
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}
79 %dir /usr/lib/steam
80 /usr/lib/steam/bootstraplinux*.tar.xz
81 %{_desktopdir}/steam.desktop
82 %{_iconsdir}/hicolor/*/*/*.png
83 %{_mandir}/man6/steam.6*
84 %{_pixmapsdir}/*.png
This page took 0.075266 seconds and 4 git commands to generate.