up to 1.0.0.69
[packages/steam-launcher.git] / steam-launcher.spec
CommitLineData
5f6e21fa
JK
1Summary: Launcher for the Steam software distribution service
2Name: steam-launcher
4433d5e8 3Version: 1.0.0.69
1e29eb3c 4Release: 1
5f6e21fa
JK
5License: distributable
6Group: Applications
7Source0: http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
4433d5e8 8# Source0-md5: 9099e348686ac5d50f6a8823e40c421d
d58e2a57 9Source1: %{name}.sysconfig
7b16f921 10Patch0: steamdeps.patch
2837397a 11Patch1: desktop_path.patch
5f6e21fa 12URL: http://store.steampowered.com/
5cada23f 13BuildRequires: sed >= 4.0
08b55c58 14Requires: ca-certificates >= 20180409-3
5f6e21fa 15Requires: curl
87488f77 16Requires: fonts-TTF-RedHat-liberation
5cada23f 17Requires: glibc >= 6:2.15
800a7af0 18Requires: libtxc_dxtn
5f6e21fa 19Requires: pld-release
7b16f921
JK
20Requires: poldek
21Requires: python-modules
22Requires: rpm
23Requires: which
24Requires: xdg-user-dirs
5f6e21fa
JK
25Requires: xterm
26Requires: xz
27Requires: zenity
28ExclusiveArch: %{ix86} %{x8664}
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
d58e2a57
JK
31%ifarch %{x8664}
32%define poldek_sources -n th -n th-i686
33%else
34%define poldek_sources -n th
35%endif
36
5f6e21fa
JK
37%description
38Steam is a software distribution service with an online store,
39automated installation, automatic updates, achievements, SteamCloud
40synchronized savegame and screenshot functionality, and many social
41features.
42
43%prep
2837397a 44%setup -qn steam-launcher
7b16f921 45%patch0 -p1
2837397a
JP
46%patch1 -p1
47
48%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' bin_steamdeps.py
49%{__sed} -i -e '1s,/usr/bin/env bash,%{__bash},' bin_steam.sh
5f6e21fa 50
7b16f921 51sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
5f6e21fa
JK
52
53%install
54rm -rf $RPM_BUILD_ROOT
d58e2a57
JK
55
56install -d $RPM_BUILD_ROOT/etc/sysconfig
57
5f6e21fa
JK
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
60
15d492f2 61rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_subscriber_agreement.txt}
5f6e21fa 62
6b775bed
JK
63# installed only when apt is installed on the build host
64[ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
65
d58e2a57
JK
66sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
67
2837397a
JP
68%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/steam.desktop
69%{__mv} $RPM_BUILD_ROOT/usr/lib/steam/steam.desktop $RPM_BUILD_ROOT%{_desktopdir}/steam.desktop
70
71
5f6e21fa
JK
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%post
76%update_icon_cache hicolor
77%update_desktop_database
78%glib_compile_schemas
79
80%postun
81%update_icon_cache hicolor
82%update_desktop_database_postun
83%glib_compile_schemas
84
85%files
86%defattr(644,root,root,755)
15d492f2 87%doc steam_subscriber_agreement.txt
5f6e21fa
JK
88%attr(755,root,root) %{_bindir}/steam
89%attr(755,root,root) %{_bindir}/steamdeps
d58e2a57 90%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
7b16f921 91%dir /usr/lib/steam
2837397a
JP
92%attr(755,root,root) /usr/lib/steam/bin_steam.sh
93%attr(755,root,root) /usr/lib/steam/bin_steamdeps.py
7b16f921 94/usr/lib/steam/bootstraplinux*.tar.xz
5f6e21fa
JK
95%{_desktopdir}/steam.desktop
96%{_iconsdir}/hicolor/*/*/*.png
97%{_mandir}/man6/steam.6*
98%{_pixmapsdir}/*.png
This page took 0.581321 seconds and 4 git commands to generate.