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.8.0_pre1^2~3016 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0f9214164ad56bfe74d0f2cec8775a312f5128dd;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 Change-Id: Ife6046db0bec981be59aa053f63ae71458da7167 Reviewed-on: http://gerrit.openafs.org/6120 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 3f2f7bfe0..4e750772f 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