packages: unreal-tournament/unreal-tournament.spec - prep sources in prep, ...

glen glen at pld-linux.org
Fri Mar 4 21:48:01 CET 2011


Author: glen                         Date: Fri Mar  4 20:48:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- prep sources in prep, skip unavailable deps

---- Files affected:
packages/unreal-tournament:
   unreal-tournament.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/unreal-tournament/unreal-tournament.spec
diff -u packages/unreal-tournament/unreal-tournament.spec:1.6 packages/unreal-tournament/unreal-tournament.spec:1.7
--- packages/unreal-tournament/unreal-tournament.spec:1.6	Fri Mar  4 20:34:22 2011
+++ packages/unreal-tournament/unreal-tournament.spec	Fri Mar  4 21:47:56 2011
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	3dfx		# prefer Glide over OpenGL in config
 # TODO
 # - all
 # - use datadir
@@ -7,7 +10,7 @@
 Summary(pl.UTF-8):	Futurystyczna gra FPS
 Name:		unreal-tournament
 Version:	451
-Release:	0.1
+Release:	0.2
 License:	as-is
 Group:		Applications/Games
 Source0:	ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run
@@ -21,8 +24,8 @@
 ExclusiveArch:	%{ix86} %{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_noautoreq		Core.so Editor.so Engine.so Render.so
-%define		__syslibs		libSDL-1.1.so.0 libmikmod.so.2 libopenal-0.0.so
+%define		_noautoreq		Core.so Editor.so Engine.so Render.so libopenal-0.0.so libglide.so.2
+%define		__syslibs		libSDL-1.1.so.0 libmikmod.so.2
 %define		_noautoprov		%{__syslibs} %{_noautoreq} ALAudio.so Audio.so Fire.so GlideDrv.so IpDrv.so NullNetDriver.so NullRender.so OpenGLDrv.so SDLDrv.so SDLGLDrv.so SDLSoftDrv.so UWeb.so
 %define		_enable_debug_packages	0
 %define		skip_post_check_so	libSDL-1.1.so.0
@@ -40,26 +43,31 @@
 %setup -qcT
 skip=$(grep -a ^skip= %{SOURCE0} | cut -d= -f2)
 tail -n +$skip %{SOURCE0} | tar -zx
-install -d UTPG
+install -d UTPG lib
 tar -C UTPG -xf %{SOURCE1}
 rm -f UTPG/{checkfiles.sh,patch.md5}
 
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{gamedatadir},%{gamelibdir}} \
-	$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_bindir}}
-
-tar -zxf Credits.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
+tar -zxf Credits.tar.gz -C lib
 # NetGamesUSA.com
-tar -zxf NetGamesUSA.com.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
+tar -zxf NetGamesUSA.com.tar.gz -C lib
 
 # System
 %if %{with 3dfx}
-	tar -zxf Glide.ini.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
+tar -zxf Glide.ini.tar.gz -C lib
 %else
-	tar -zxf OpenGL.ini.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
+tar -zxf OpenGL.ini.tar.gz -C lib
 %endif
-tar -zxf data.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
+tar -zxf data.tar.gz -C lib
+
+# not really needed to execute
+chmod a-x lib/NetGamesUSA.com/ngStats/spawnBrowser.exe
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{gamedatadir},%{gamelibdir}} \
+	$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_bindir}}
+
+cp -a lib/* $RPM_BUILD_ROOT%{gamelibdir}
 
 # the most important things, ucc & ut :)
 install -p bin/x86/{ucc,ut} $RPM_BUILD_ROOT%{gamelibdir}
@@ -100,6 +108,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/03/04 20:47:56  glen
+- prep sources in prep, skip unavailable deps
+
 Revision 1.6  2011/03/04 19:34:22  glen
 - make package with current rpm macros
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/unreal-tournament/unreal-tournament.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list