SPECS: teeworlds.spec - up to 0.5.0 - bam excluded to separate spec

arvenil arvenil at pld-linux.org
Wed Jan 14 23:06:03 CET 2009


Author: arvenil                      Date: Wed Jan 14 22:06:03 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.5.0
- bam excluded to separate spec

---- Files affected:
SPECS:
   teeworlds.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/teeworlds.spec
diff -u SPECS/teeworlds.spec:1.13 SPECS/teeworlds.spec:1.14
--- SPECS/teeworlds.spec:1.13	Sun Sep 28 10:23:52 2008
+++ SPECS/teeworlds.spec	Wed Jan 14 23:05:58 2009
@@ -2,25 +2,23 @@
 #
 # TODO:
 # - optflags
-# - exclude bam to separate spec file and BR it
 Summary:	Cute little buggers with guns
 Summary(pl.UTF-8):	Takie fajne robaczki z gnatami
 Name:		teeworlds
-Version:	0.4.3
-Release:	1
+Version:	0.5.0
+Release:	0.1
 License:	distributable
 Group:		X11/Applications/Games
 Source0:	http://www.teeworlds.com/files/%{name}-%{version}-src.tar.gz
-# Source0-md5:	a31a8cbd1af3f71a462122166e5872d6
-Source1:	http://www.teeworlds.com/files/bam.zip
-# Source1-md5:	dd1937ce711927299a1b09edffa319ca
-Source2:	%{name}.png
-Source3:	%{name}.desktop
-#Source4:	%{name}_srv.desktop
+# Source0-md5:	39d7b5d41c2c7250201214a4ab6844ed
+Source1:	%{name}.png
+Source2:	%{name}.desktop
+#Source3:	%{name}_srv.desktop
 URL:		http://www.teeworlds.com/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	OpenGL-devel
 BuildRequires:	alsa-lib-devel
+BuildRequires:	bam
 BuildRequires:	python
 BuildRequires:	sed >= 4.0
 BuildRequires:	unzip
@@ -36,30 +34,19 @@
 Takie fajne robaczki z gnatami. Gra sieciowa typu CTF, DM.
 
 %prep
-%setup -q -a1 -n %{name}-%{version}-src
-# Workaround for no possibility to pass location of data files
-%{__sed} -i 's|"data/|"%{_datadir}/%{name}/data/|g' \
-	datasrc/data.ds \
-	src/game/client/gc_{map_image,hooks,skin}.cpp \
-	src/game/editor/ed_{editor,io}.cpp \
-	src/engine/e_map.c \
-	src/engine/client/ec_client.c \
-	src/engine/server/es_server.c
+%setup -q -n %{name}-%{version}-src
 
 %build
-cd bam
-./make_unix.sh
-cd ..
-bam/src/bam release
+bam release
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}/data}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
 
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
-install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
 install %{name} %{name}_srv $RPM_BUILD_ROOT%{_bindir}
-cp -rf data $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -rf data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -79,6 +66,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2009/01/14 22:05:58  arvenil
+- up to 0.5.0
+- bam excluded to separate spec
+
 Revision 1.13  2008/09/28 08:23:52  arvenil
 - up to 0.4.3
 - adapter, cleanup
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/teeworlds.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list