packages: warsow/warsow.spec - add bconds (openal, client, server and qf) -...

lisu lisu at pld-linux.org
Wed Sep 2 09:58:53 CEST 2009


Author: lisu                         Date: Wed Sep  2 07:58:53 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add bconds (openal, client, server and qf)
- TODO changed

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

---- Diffs:

================================================================
Index: packages/warsow/warsow.spec
diff -u packages/warsow/warsow.spec:1.5 packages/warsow/warsow.spec:1.6
--- packages/warsow/warsow.spec:1.5	Tue Sep  1 16:55:22 2009
+++ packages/warsow/warsow.spec	Wed Sep  2 09:58:48 2009
@@ -1,10 +1,14 @@
 # $Revision$, $Date$
-# TODO:	- use our libs instead of static ones
-#	- bconds
-#	- some BRs missing
+# TODO:	- doesn't build without server and without client
 #	- polish description
 #	- install binaries depending on architecture to better place (now they are stored in /usr/bin)
 #
+# Conditional build:
+%bcond_without	client		# build without client
+%bcond_without	openal		# build without openal support
+%bcond_without	qf		# build without qf support
+%bcond_without	server		# build without server
+#
 Summary:	A Fast Paced FPS Game
 Name:		warsow
 Version:	0.5
@@ -18,8 +22,11 @@
 Patch0:		%{name}-flags.patch
 Patch1:		%{name}-dirs.patch
 URL:		http://www.warsow.net/
+%{?with_openal:BuildRequires:	OpenAL-devel}
+%{?with_qf:BuildRequires:	SDL-devel}
 BuildRequires:	curl-devel
 BuildRequires:	libjpeg-devel
+%{?with_qf:BuildRequires:	libvorbis-devel}
 BuildRequires:	unzip
 BuildRequires:	xorg-lib-libXinerama-devel
 BuildRequires:	xorg-lib-libXxf86dga-devel
@@ -51,7 +58,11 @@
 	LD="%{__cc}" \
 	CFLAGS="%{rpmcflags}" \
 	CXXFLAGS="%{rpmcflags} -fPIC" \
-	LDFLAGS="%{rpmldflags}"
+	LDFLAGS="%{rpmldflags}" \
+	%{!?with_client:BUILD_CLIENT=NO} \
+	%{!?with_openal:BUILD_SND_OPENAL=NO} \
+	%{!?with_qf:BUILD_SND_QF=NO} \
+	%{!?with_server:BUILD_SERVER=NO}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -76,6 +87,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/09/02 07:58:48  lisu
+- add bconds (openal, client, server and qf)
+- TODO changed
+
 Revision 1.5  2009/09/01 14:55:22  lisu
 - BRs: curl-devel, libjpeg-devel, xorg-lib-libXinerama-devel, xorg-lib-libXxf86dga-devel, xorg-lib-libXxf86vm-devel, zlib-devel
 
================================================================

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



More information about the pld-cvs-commit mailing list