From: Edward Z. Yang Date: Sun, 27 Nov 2011 00:32:51 +0000 (-0500) Subject: Linux: 3: Update specfile to know about 3.* kernels. X-Git-Tag: upstream/1.6.1.pre1^2~83 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fbf2f3cbabe04f5420dd0ec5ed87b7139e2d7673;p=packages%2Fo%2Fopenafs.git Linux: 3: Update specfile to know about 3.* kernels. Update spec file to be consistent with acinclude.m4 with regards to sysnames. We don't bother updating the code inside the legacy kernel build section, as it doesn't get triggered for 3.* kernels (it should probably get cleaned up at some point.) Also, fix a bug in error message printing of unrecognized kernel. Signed-off-by: Edward Z. Yang Reviewed-on: http://gerrit.openafs.org/6120 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear (cherry picked from commit 0f9214164ad56bfe74d0f2cec8775a312f5128dd) Change-Id: Ie414751cf01c44a73bf9eaef67c593cced2680d9 Reviewed-on: http://gerrit.openafs.org/6121 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 3eba32656..e6ba96da8 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -693,11 +693,11 @@ case %{kernvers} in 2.4.*) kv='24' ;; - 2.6.*) + 2.6.* | 3.*) kv='26' ;; *) - echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`" + echo "I don't know how to build linux-`expr %{kernvers} : '\(^[0-9]*[.][0-9]*\)'`" exit 1 ;; esac @@ -972,12 +972,12 @@ case %{kernvers} in kv='24' kmodend=.o ;; - 2.6.*) + 2.6.* | 3.*) kv='26' kmodend=.ko ;; *) - echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`" + echo "I don't know how to build linux-`expr %{kernvers} : '\(^[0-9]*[.][0-9]*\)'`" exit 1 ;; esac