]> git.pld-linux.org Git - packages/steam-launcher.git/blame_incremental - steam-launcher.spec
up to 1.0.0.69
[packages/steam-launcher.git] / steam-launcher.spec
... / ...
CommitLineData
1Summary: Launcher for the Steam software distribution service
2Name: steam-launcher
3Version: 1.0.0.69
4Release: 1
5License: distributable
6Group: Applications
7Source0: http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
8# Source0-md5: 9099e348686ac5d50f6a8823e40c421d
9Source1: %{name}.sysconfig
10Patch0: steamdeps.patch
11Patch1: desktop_path.patch
12URL: http://store.steampowered.com/
13BuildRequires: sed >= 4.0
14Requires: ca-certificates >= 20180409-3
15Requires: curl
16Requires: fonts-TTF-RedHat-liberation
17Requires: glibc >= 6:2.15
18Requires: libtxc_dxtn
19Requires: pld-release
20Requires: poldek
21Requires: python-modules
22Requires: rpm
23Requires: which
24Requires: xdg-user-dirs
25Requires: xterm
26Requires: xz
27Requires: zenity
28ExclusiveArch: %{ix86} %{x8664}
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%ifarch %{x8664}
32%define poldek_sources -n th -n th-i686
33%else
34%define poldek_sources -n th
35%endif
36
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
44%setup -qn steam-launcher
45%patch0 -p1
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
50
51sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56install -d $RPM_BUILD_ROOT/etc/sysconfig
57
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
60
61rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_subscriber_agreement.txt}
62
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
66sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
67
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
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)
87%doc steam_subscriber_agreement.txt
88%attr(755,root,root) %{_bindir}/steam
89%attr(755,root,root) %{_bindir}/steamdeps
90%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
91%dir /usr/lib/steam
92%attr(755,root,root) /usr/lib/steam/bin_steam.sh
93%attr(755,root,root) /usr/lib/steam/bin_steamdeps.py
94/usr/lib/steam/bootstraplinux*.tar.xz
95%{_desktopdir}/steam.desktop
96%{_iconsdir}/hicolor/*/*/*.png
97%{_mandir}/man6/steam.6*
98%{_pixmapsdir}/*.png
This page took 0.033646 seconds and 4 git commands to generate.