SPECS: quake2-mod-lithium.spec - alpha binary is out there too

glen glen at pld-linux.org
Mon Oct 22 16:24:44 CEST 2007


Author: glen                         Date: Mon Oct 22 14:24:44 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- alpha binary is out there too

---- Files affected:
SPECS:
   quake2-mod-lithium.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/quake2-mod-lithium.spec
diff -u SPECS/quake2-mod-lithium.spec:1.1 SPECS/quake2-mod-lithium.spec:1.2
--- SPECS/quake2-mod-lithium.spec:1.1	Mon Oct 22 16:19:15 2007
+++ SPECS/quake2-mod-lithium.spec	Mon Oct 22 16:24:39 2007
@@ -6,21 +6,30 @@
 Release:	0.1
 License:	?
 Group:		Applications/Games
-# Source0Download:	http://asp.planetquake.com/dl/dl.asp?lithium/lithium2_1.24-i386-unknown-linux2.0.tar.gz
+# Source0Download:	http://asp.planetquake.com/dl/dl.asp?lithium/lithium2_%{version}-i386-unknown-linux2.0.tar.gz
 Source0:	lithium2_%{version}-i386-unknown-linux2.0.tar.gz
 # NoSource0-md5:	9b84269fb49d208598d1658226e4135e
 NoSource:	0
+# Source1Download:	http://asp.planetquake.com/dl/dl.asp?lithium/lithium2_%{version}-axp-unknown-linux2.0.tar.gz
+Source1:	lithium2_%{version}-axp-unknown-linux2.0.tar.gz
+# NoSource1-md5:	-
+NoSource:	1
 URL:		http://lithium.planetquake.gamespy.com/
 Requires:	quake2-common
-ExclusiveArch:	%{ix86}
+ExclusiveArch:	%{ix86} alpha
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_gamelibdir	%{_libdir}/quake2
-%define		_gamedatadir	%{_datadir}/quake2
-%define		_gamehomedir	/var/games/quake2
 
-# because of gl_image.c:1559
-%define		specflags	-fno-strict-aliasing
+%ifarch %{ix86}
+%define		qarch	i386
+%else
+%ifarch alpha
+%define		qarch	axp
+%else
+%define		qarch	%{nil}
+%endif
+%endif
 
 %description
 Lithium II is a very configurable server-side deathmatch modification
@@ -28,12 +37,19 @@
 requiring clients to download anything special.
 
 %prep
-%setup -q -n %{_modname}
+%setup -qcT
+%ifarch %{ix86}
+%{__tar} xzf %{SOURCE0}
+%endif
+%ifarch alpha
+%{__tar} xzf %{SOURCE1}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
-install game*.so $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
+cd lithium
+install game%{qarch}.so $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
 cp -a admin.lst ctf.lst maps.lst $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
 cp -a lithctf.cfg lithium.cfg procket.cfg stock.cfg stockctf.cfg $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
 cp -a lithium2.qst $RPM_BUILD_ROOT%{_gamelibdir}/%{_modname}
@@ -43,12 +59,12 @@
 
 %files
 %defattr(644,root,root,755)
-%doc *.txt
+%doc lithium/*.txt
 %dir %{_gamelibdir}/%{_modname}
 %{_gamelibdir}/%{_modname}/*.lst
 %{_gamelibdir}/%{_modname}/*.cfg
 %{_gamelibdir}/%{_modname}/*.qst
-%attr(755,root,root) %{_gamelibdir}/%{_modname}/game*.so
+%attr(755,root,root) %{_gamelibdir}/%{_modname}/game%{qarch}.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -56,6 +72,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2007/10/22 14:24:39  glen
+- alpha binary is out there too
+
 Revision 1.1  2007/10/22 14:19:15  glen
 - new
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/quake2-mod-lithium.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list