packages: unreal-tournament/unreal-tournament.spec - make package with curr...

glen glen at pld-linux.org
Fri Mar 4 20:34:27 CET 2011


Author: glen                         Date: Fri Mar  4 19:34:27 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- make package with current rpm macros

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

---- Diffs:

================================================================
Index: packages/unreal-tournament/unreal-tournament.spec
diff -u packages/unreal-tournament/unreal-tournament.spec:1.5 packages/unreal-tournament/unreal-tournament.spec:1.6
--- packages/unreal-tournament/unreal-tournament.spec:1.5	Fri Jan 25 00:09:29 2008
+++ packages/unreal-tournament/unreal-tournament.spec	Fri Mar  4 20:34:22 2011
@@ -24,8 +24,11 @@
 %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		_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		_gamelibdir		%{_libdir}/games/%{name}
-%define		_gamedatadir	%{_datadir}/games/%{name}
+%define		_enable_debug_packages	0
+%define		skip_post_check_so	libSDL-1.1.so.0
+
+%define		gamelibdir		%{_libdir}/games/%{name}
+%define		gamedatadir		%{_datadir}/games/%{name}
 
 %description
 Unreal Tournament - futuristic FPS game.
@@ -36,39 +39,39 @@
 %prep
 %setup -qcT
 skip=$(grep -a ^skip= %{SOURCE0} | cut -d= -f2)
-tail -n +${skip} %{SOURCE0} | tar -zx
-mkdir UTPG
+tail -n +$skip %{SOURCE0} | tar -zx
+install -d UTPG
 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}} \
+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 $RPM_BUILD_ROOT%{gamelibdir}
 # NetGamesUSA.com
-tar -zxf NetGamesUSA.com.tar.gz -C $RPM_BUILD_ROOT%{_gamelibdir}
+tar -zxf NetGamesUSA.com.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
 
 # System
 %if %{with 3dfx}
-	tar -zxf Glide.ini.tar.gz -C $RPM_BUILD_ROOT%{_gamelibdir}
+	tar -zxf Glide.ini.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
 %else
-	tar -zxf OpenGL.ini.tar.gz -C $RPM_BUILD_ROOT%{_gamelibdir}
+	tar -zxf OpenGL.ini.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
 %endif
-tar -zxf data.tar.gz -C $RPM_BUILD_ROOT%{_gamelibdir}
+tar -zxf data.tar.gz -C $RPM_BUILD_ROOT%{gamelibdir}
 
 # the most important things, ucc & ut :)
-install bin/x86/{ucc,ut} $RPM_BUILD_ROOT%{_gamelibdir}
+install -p bin/x86/{ucc,ut} $RPM_BUILD_ROOT%{gamelibdir}
 
 # install a few random files
-install README icon.{bmp,xpm} $RPM_BUILD_ROOT%{_gamelibdir}
+cp -p README icon.{bmp,xpm} $RPM_BUILD_ROOT%{gamelibdir}
 
 # install a menu item (closes bug #27542)
-install icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/ut.xpm
+cp -p icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/ut.xpm
 
 # finally, unleash the UTPG patch
-cp -rf UTPG/* $RPM_BUILD_ROOT%{_gamelibdir}
+cp -a UTPG/* $RPM_BUILD_ROOT%{gamelibdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -77,21 +80,19 @@
 %defattr(644,root,root,755)
 %{_pixmapsdir}/ut.xpm
 
-%dir %{_gamelibdir}
-%{_gamelibdir}/Web
-%{_gamelibdir}/Textures
-%{_gamelibdir}/NetGamesUSA.com
-%{_gamelibdir}/Help
-%{_gamelibdir}/System
-%{_gamelibdir}/README
-%{_gamelibdir}/checkfiles.sh
-%{_gamelibdir}/icon.bmp
-%{_gamelibdir}/icon.xpm
-%{_gamelibdir}/patch.md5
-%{_gamelibdir}/ucc
-%{_gamelibdir}/ut
+%dir %{gamelibdir}
+%{gamelibdir}/Web
+%{gamelibdir}/Textures
+%{gamelibdir}/NetGamesUSA.com
+%{gamelibdir}/Help
+%{gamelibdir}/System
+%{gamelibdir}/README
+%{gamelibdir}/icon.bmp
+%{gamelibdir}/icon.xpm
+%{gamelibdir}/ucc
+%{gamelibdir}/ut
 
-%dir %{_gamedatadir}
+%dir %{gamedatadir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -99,6 +100,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2011/03/04 19:34:22  glen
+- make package with current rpm macros
+
 Revision 1.5  2008/01/24 23:09:29  glen
 - drop no_install_post_strip (not reasoned)
 
================================================================

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



More information about the pld-cvs-commit mailing list