From 920f2c3d5585eab6b8727b9f96a143fc1e500035 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Mon, 24 Jan 2011 15:59:12 +0100
Subject: [PATCH] hard code defaults (no debug) for f14 until spec2make can
 understand rpmbuild options

---
 kernel-2.6.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/kernel-2.6.spec b/kernel-2.6.spec
index 58ff91cde..48e9eae24 100644
--- a/kernel-2.6.spec
+++ b/kernel-2.6.spec
@@ -111,7 +111,7 @@ Summary: The Linux kernel
 # kernel-kdump
 %define with_kdump     %{?_without_kdump:     0} %{?!_without_kdump:     1}
 # kernel-debug
-%define with_debug     %{?_without_debug:     1} %{?!_without_debug:     0}
+%define with_debug     %{?_with_debug:	      1} %{?!_with_debug:        0}
 # kernel-doc
 %define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
 # kernel-headers
@@ -130,7 +130,11 @@ Summary: The Linux kernel
 %define with_debuginfo %{?_without_debuginfo: 1} %{?!_without_debuginfo: 0}
 %else
 %if "%{distroname}" == "f14"
-%define with_debuginfo %{?_without_debuginfo: 1} %{?!_without_debuginfo: 0}
+# for now, spec2make does not understand --with or --define options
+# I'm hard-coding this for now
+%define with_debuginfo 0
+%define with_debug 0
+%define with_doc 0
 %else
 %define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
 %endif
-- 
2.47.0