]> git.pld-linux.org Git - packages/steam-launcher.git/blobdiff - steam-launcher.spec
up to 1.0.0.56
[packages/steam-launcher.git] / steam-launcher.spec
index fcfff2ce798c61fd730d16c630ade28560333a80..d5e8d2bd546986b4a22c7d2b34b3627c8b3ba8ee 100644 (file)
@@ -1,19 +1,19 @@
-
-# TODO:
-#      - check on and fix for x86_64 (multilib system required)
-
 Summary:       Launcher for the Steam software distribution service
 Name:          steam-launcher
-Version:       1.0.0.47
-Release:       0.1
+Version:       1.0.0.56
+Release:       1
 License:       distributable
 Group:         Applications
 Source0:       http://repo.steampowered.com/steam/pool/steam/s/steam/steam_%{version}.tar.gz
-# Source0-md5: c6f75ebaa9e32f2565df620d1867f274
+# Source0-md5: 1ea5a9bbfc742ce7fee18d67d62c79ea
+Source1:       %{name}.sysconfig
 Patch0:                steamdeps.patch
 URL:           http://store.steampowered.com/
+BuildRequires: sed >= 4.0
 Requires:      curl
-Requires:      glibc >= 2.15
+Requires:      fonts-TTF-RedHat-liberation
+Requires:      glibc >= 6:2.15
+Requires:      libtxc_dxtn
 Requires:      pld-release
 Requires:      poldek
 Requires:      python-modules
@@ -26,6 +26,12 @@ Requires:    zenity
 ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch %{x8664}
+%define        poldek_sources  -n th -n th-i686
+%else
+%define        poldek_sources  -n th
+%endif
+
 %description
 Steam is a software distribution service with an online store,
 automated installation, automatic updates, achievements, SteamCloud
@@ -36,16 +42,22 @@ features.
 %setup -qn steam
 %patch0 -p1
 
-%build
 sed -i -e's/^ARCH\s*=.*$/ARCH = "%{_arch}"/' steamdeps
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT/etc/sysconfig
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_install_agreement.txt}
+rm $RPM_BUILD_ROOT%{_docdir}/steam/{README,steam_subscriber_agreement.txt}
+
+# installed only when apt is installed on the build host
+[ -d $RPM_BUILD_ROOT/etc/apt ] && rm -r $RPM_BUILD_ROOT/etc/apt
+
+sed -e's/@SOURCES@/%{poldek_sources}/' %{SOURCE1} > $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -62,9 +74,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc steam_install_agreement.txt
+%doc steam_subscriber_agreement.txt
 %attr(755,root,root) %{_bindir}/steam
 %attr(755,root,root) %{_bindir}/steamdeps
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %dir /usr/lib/steam
 /usr/lib/steam/bootstraplinux*.tar.xz
 %{_desktopdir}/steam.desktop
This page took 0.73576 seconds and 4 git commands to generate.