SPECS: quake4.spec - package files
glen
glen at pld-linux.org
Wed Oct 26 23:14:03 CEST 2005
Author: glen Date: Wed Oct 26 21:14:03 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- package files
---- Files affected:
SPECS:
quake4.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/quake4.spec
diff -u SPECS/quake4.spec:1.1 SPECS/quake4.spec:1.2
--- SPECS/quake4.spec:1.1 Wed Oct 26 22:15:18 2005
+++ SPECS/quake4.spec Wed Oct 26 23:13:57 2005
@@ -1,4 +1,10 @@
# $Revision$, $Date$
+# TODO
+# - dedicated package
+# - .desktop and icon
+# - separate -common, create language packs (us, german available)?
+# - put some decent license
+# - punkbuster? (pb/ subdir)?
Summary: Quake4 for Linux
Name: quake4
Version: 1.0.2147.12
@@ -6,11 +12,20 @@
License: ?
Group: Applications/Games
Source0: %{name}-linux-%{version}.x86.run
-# Source0-md5: 96ac1b993dafe5d255a7ee85d07187db
+# NoSource0-md5: 96ac1b993dafe5d255a7ee85d07187db
+NoSource: 0
URL: http://zerowing.idsoftware.com/linux/quake4/
Requires: OpenGL
+ExclusiveArch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define no_install_post_strip 1
+
+%define _noautoprov libgcc_s.so.1 libstdc++.so.5
+%define _noautoreqdep libgcc_s.so.1 libstdc++.so.5
+%define _gamelibdir %{_libdir}/games/quake4
+%define _gamedatadir %{_datadir}/games/quake4
+
%description
Quake 4 for Linux.
@@ -18,16 +33,44 @@
Quake 4 dla linuksa.
%prep
-%setup -q
+%setup -qcT
+sh %{SOURCE0} --tar xf
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_gamelibdir},%{_gamedatadir}/q4base} \
+ $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_bindir}}
+
+install bin/Linux/x86/{libgcc_s.so.1,libstdc++.so.5} $RPM_BUILD_ROOT%{_gamelibdir}
+install bin/Linux/x86/{q4ded,quake4}.x86 $RPM_BUILD_ROOT%{_gamelibdir}
+cp -a q4base/* $RPM_BUILD_ROOT%{_gamedatadir}/q4base
+cp -a us/q4base/* $RPM_BUILD_ROOT%{_gamedatadir}/q4base
+ln -s %{_gamedatadir}/q4base $RPM_BUILD_ROOT%{_gamelibdir}/q4base
+
+cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name}
+#!/bin/sh
+cd %{_gamelibdir}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
+exec ./quake4.x86 "$@"
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc License.txt README Docs/ENG/readme.txt
+%attr(755,root,root) %{_bindir}/%{name}
+
+%dir %{_gamelibdir}
+%attr(755,root,root) %{_gamelibdir}/quake4.x86
+%attr(755,root,root) %{_gamelibdir}/libgcc_s.so.1
+%attr(755,root,root) %{_gamelibdir}/libstdc++.so.5
+%{_gamelibdir}/q4base
+
+%dir %{_gamedatadir}
+%dir %{_gamedatadir}/q4base
+%{_gamedatadir}/q4base/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -35,6 +78,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2005/10/26 21:13:57 glen
+- package files
+
Revision 1.1 2005/10/26 20:15:18 glen
- new (data not avail for me, so can't proceed now)
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/quake4.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list