SPECS: qemu.spec - added bcond_without up, as up module wouldn't b...

czarny czarny at pld-linux.org
Tue Mar 13 09:50:29 CET 2007


Author: czarny                       Date: Tue Mar 13 08:50:29 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without up, as up module wouldn't build without defining with up to 1
- safety check for without up and without smp

---- Files affected:
SPECS:
   qemu.spec (1.82 -> 1.83) 

---- Diffs:

================================================================
Index: SPECS/qemu.spec
diff -u SPECS/qemu.spec:1.82 SPECS/qemu.spec:1.83
--- SPECS/qemu.spec:1.82	Tue Feb 13 21:41:54 2007
+++ SPECS/qemu.spec	Tue Mar 13 09:50:24 2007
@@ -11,9 +11,11 @@
 %bcond_with	gcc4			# use gcc4 patches (broke build on gcc33)
 %bcond_without	dist_kernel		# without distribution kernel
 %bcond_without	kernel			# build kqemu KERNEL MODULES
+%bcond_without	up			# don't build up module
 %bcond_without	smp			# don't build SMP module
 %bcond_without	userspace		# don't build userspace utilities
 #
+
 %define	_kqemu_version	1.3.0pre11
 %define		_rel	1
 Summary:	QEMU CPU Emulator
@@ -128,6 +130,11 @@
 kqemu - moduł jądra SMP.
 
 %prep
+%if %{with dist_kernel} && %{without up} && %{without smp}
+%{error:%{name}: If building kernel module You need to enable at least one of up or smp}
+exit 1
+%endif
+
 %setup -q %{?with_kernel:-a1}
 %patch0 -p1
 %patch1 -p1
@@ -311,6 +318,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.83  2007/03/13 08:50:24  czarny
+- added bcond_without up, as up module wouldn't build without defining with up to 1
+- safety check for without up and without smp
+
 Revision 1.82  2007/02/13 20:41:54  glen
 - patch from jakubowski kamil
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/qemu.spec?r1=1.82&r2=1.83&f=u



More information about the pld-cvs-commit mailing list