rpms/kernel/devel kernel.spec,1.321,1.322

Kyle McMartin (kyle) fedora-extras-commits at redhat.com
Tue Dec 18 18:44:46 UTC 2007


Author: kyle

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5940

Modified Files:
	kernel.spec 
Log Message:
* Tue Dec 18 2007 Kyle McMartin <kmcmartin at redhat.com>
- add --with sparse for people^Wsomeone who might care



Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.321
retrieving revision 1.322
diff -u -r1.321 -r1.322
--- kernel.spec	18 Dec 2007 18:12:20 -0000	1.321
+++ kernel.spec	18 Dec 2007 18:43:58 -0000	1.322
@@ -94,12 +94,8 @@
 # Only build the xen kernel (--with xenonly):
 %define with_xenonly   %{?_with_xenonly:      1} %{?!_with_xenonly:      0}
 
-# Whether or not to do C=1 builds with sparse
-%define usesparse 0
-#TODO: Add a --with-sparse
-#if "%fedora" >= "7"
-#define usesparse 1
-#endif
+# should we do C=1 builds with sparse
+%define with_sparse	%{?_with_sparse:      1} %{?!_with_sparse:      0}
 
 # Whether or not to apply the Xen patches -- leave this enabled
 %define includexen 0
@@ -270,7 +266,7 @@
 
 # sparse blows up on ppc64
 %ifarch ppc64 ppc alpha sparc64
-%define usesparse 0
+%define with_sparse 0
 %endif
 
 # Per-arch tweaks
@@ -465,7 +461,7 @@
 BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
 BuildRequires: bzip2, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
 BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config
-%if %{usesparse}
+%if %{with_sparse}
 BuildRequires: sparse >= 0.4.1
 %endif
 BuildConflicts: rhbuildsys(DiskFree) < 500Mb
@@ -1227,7 +1223,7 @@
 ###
 %build
 
-%if %{usesparse}
+%if %{with_sparse}
 %define sparse_mflags	C=1
 %endif
 
@@ -1738,6 +1734,9 @@
 
 %changelog
 * Tue Dec 18 2007 Kyle McMartin <kmcmartin at redhat.com>
+- add --with sparse for people^Wsomeone who might care
+
+* Tue Dec 18 2007 Kyle McMartin <kmcmartin at redhat.com>
 - really disable sparse this time...
 
 * Tue Dec 18 2007 Kyle McMartin <kmcmartin at redhat.com>




More information about the fedora-extras-commits mailing list