aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-05-21 11:53:49 -0700
committerBrian Behlendorf <[email protected]>2010-05-21 11:53:49 -0700
commitedbbb609bd4418997282e4fe7110eb8073dd66cb (patch)
tree568f30dbd9c53b494ea737fd4a85a2f3fa0fdb20
parent32f5faff694b30c7992181057e3028571f834d41 (diff)
Minor spec file cleanup for RHEL6 package dependency.
-rw-r--r--spl-modules.spec.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/spl-modules.spec.in b/spl-modules.spec.in
index b7e1c0934..92ccbd21f 100644
--- a/spl-modules.spec.in
+++ b/spl-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}