]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- unify kernel macros
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 22 Oct 2007 20:24:59 +0000 (20:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    qemu.spec -> 1.85.2.18

qemu.spec

index 2b3eb05c7f861c010b1d5f54666f3a082d4182d0..b4fe8e14d27c2f820d98b659255bd7fbf53dc9fa 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
 %bcond_without userspace               # don't build userspace utilities
 %bcond_with    grsec_kernel    # build for kernel-grsecurity
 #
-%if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel}
-%define        alt_kernel      grsecurity
-%endif
-#
-#
 # no kernel kqemu module for ppc
 %ifarch ppc
 %undefine      with_kqemu
 %undefine      with_kernel
 %endif
+#
+%if %{without kernel}
+%undefine      with_dist_kernel
+%endif
+#
+%if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel}
+%define        alt_kernel      grsecurity
+%endif
+
 %define        _kqemu_version  1.3.0pre11
 %define                _rel    55
 Summary:       QEMU CPU Emulator
@@ -58,8 +62,8 @@ Patch13:      %{name}-dosguest.patch
 # This patch will be obsolete in versions after 0.9.0
 Patch14:       %{name}-0.9.0-remove-iohandlers.patch
 URL:           http://fabrice.bellard.free.fr/qemu/
-%if %{with kernel} && %{with dist_kernel}
-BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.7}
 BuildRequires: rpmbuild(macros) >= 1.330
 %endif
 %if %{with userspace}
This page took 0.141167 seconds and 4 git commands to generate.