]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- added bcond_without up, as up module wouldn't build without defining with up to 1
authorczarny <czarny@pld-linux.org>
Tue, 13 Mar 2007 08:50:24 +0000 (08:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- safety check for without up and without smp

Changed files:
    qemu.spec -> 1.83

qemu.spec

index f14defd3d9589400716ae18213af2c270551d25b..126873c78ca8e897fcf897dca16e2a0a055401ff 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
 %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
@@ -127,6 +129,11 @@ kqemu - SMP kernel module.
 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
This page took 0.034858 seconds and 4 git commands to generate.