]> git.pld-linux.org Git - packages/steam-launcher.git/blob - steam-launcher.spec
rel 2; missing R breaks textures in a lot of games
[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.50
4 Release:        2
5 License:        distributable
6 Group:          Applications
7 Source0:        http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
8 # Source0-md5:  2fab57a606705012a4f800a28670dc3a
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:       libtxc_dxtn
17 Requires:       pld-release
18 Requires:       poldek
19 Requires:       python-modules
20 Requires:       rpm
21 Requires:       which
22 Requires:       xdg-user-dirs
23 Requires:       xterm
24 Requires:       xz
25 Requires:       zenity
26 ExclusiveArch:  %{ix86} %{x8664}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %ifarch %{x8664}
30 %define poldek_sources  -n th -n th-i686
31 %else
32 %define poldek_sources  -n th
33 %endif
34
35 %description
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
39 features.
40
41 %prep
42 %setup -qn steam
43 %patch0 -p1
44
45 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 install -d $RPM_BUILD_ROOT/etc/sysconfig
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
56
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
59
60 sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 %update_icon_cache hicolor
67 %update_desktop_database
68 %glib_compile_schemas
69
70 %postun
71 %update_icon_cache hicolor
72 %update_desktop_database_postun
73 %glib_compile_schemas
74
75 %files
76 %defattr(644,root,root,755)
77 %doc steam_install_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}
81 %dir /usr/lib/steam
82 /usr/lib/steam/bootstraplinux*.tar.xz
83 %{_desktopdir}/steam.desktop
84 %{_iconsdir}/hicolor/*/*/*.png
85 %{_mandir}/man6/steam.6*
86 %{_pixmapsdir}/*.png
This page took 0.103545 seconds and 3 git commands to generate.