From 4221c8cf933d8b9c2eb531b30a0402a5b69c53fd Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 21 May 2010 15:08:08 -0700 Subject: [PATCH] Minor spec file cleanup for RHEL6 package dependency. --- zfs-modules.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in index c08b59fd4f..93129b3d7d 100644 --- a/zfs-modules.spec.in +++ b/zfs-modules.spec.in @@ -94,7 +94,11 @@ %endif %define kpkg kernel %define kdevpkg kernel-devel - %define kverpkg %{kver} + %if %{defined el6} + %define kverpkg %(echo %{kver} | %{__sed} -e 's/.%{_target_cpu}//g') + %else + %define kverpkg %{kver} + %endif %define koppkg = %if %{undefined kdir} %define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu}