Cooker kernels are affected by the same bug as was noted in 2006, as the
kernel-doc package gets broken name/versioning...
Attached patch fixes it and also adds support for building .nosrc.rpm
just as was done for 2006.0
Signed-off-by: Thomas Backlund <[EMAIL PROTECTED]>
--- kernel-2.6.spec.old 2006-09-01 06:42:03.015903000 +0300
+++ kernel-2.6.spec 2006-09-01 06:41:27.405903000 +0300
@@ -107,6 +107,10 @@
%{?_with_100: %global build_100 1}
%{?_with_101: %global build_101 1}
+### THis is for the .nosrc.rpm
+%define build_nosrc 0
+%{?_with_nosrc: %global build_nosrc 1}
+
%if %(if [ -z "$CC" ] ; then echo 0; else echo 1; fi)
%define kmake %make CC="$CC"
%else
@@ -141,6 +145,11 @@ Source15: linux-mdkconfig.h
Source16: linux-merge-config.awk
Source100: linux-%{patches_ver}.tar.bz2
+### This is for .nosrc.rpm
+%if %build_nosrc
+NoSource: 0
+%endif
+
####################################################################
#
# Patches
@@ -324,13 +333,13 @@ doing).
# kernel-doc: documentation for the Linux kernel
#
-%package -n %{kname}-doc
+%package -n %{kname}-doc-%{mdkversion}
Version: %{version}
Release: %{release}
Summary: Various documentation bits found in the kernel source.
Group: Books/Computer books
-%description -n %{kname}-doc
+%description -n %{kname}-doc-%{mdkversion}
This package contains documentation files form the kernel source. Various
bits of information about the Linux kernel and the device drivers shipped
with it are documented in these files. You also might want install this
@@ -1007,7 +1016,7 @@ exit 0
%endif
%if %build_doc
-%files -n %{kname}-doc
+%files -n %{kname}-doc-%{mdkversion}
%defattr(-,root,root)
%doc linux-%{tar_version}/Documentation/*
%endif