aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zfs-modules.spec.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in
index 8d96696a2..84d1d5280 100644
--- a/zfs-modules.spec.in
+++ b/zfs-modules.spec.in
@@ -94,14 +94,18 @@
%endif
%define kpkg kernel
%define kdevpkg kernel-devel
- %if %{defined el6}
+ %if %{defined el6} || %{defined ch5}
%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}
+ %if %{defined el6} || %{defined ch5}
+ %define kdir %{_usrsrc}/kernels/%{kver}
+ %else
+ %define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu}
+ %endif
%endif
%if %{undefined kobj}
%define kobj %{kdir}