diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in index 9b5e4716d9..57ed607aed 100644 --- a/zfs-modules.spec.in +++ b/zfs-modules.spec.in @@ -66,8 +66,8 @@ %endif %else -# CHAOS 4.x: -%if %{defined ch4} +# CHAOS 4.x/5.x: +%if %{defined ch4} || %{defined ch5} %if %{undefined kver} %define klnk %{_usrsrc}/kernels/*/include/config %define kver %((echo X; %{__cat} %{klnk}/kernel.release @@ -85,8 +85,8 @@ %endif %else -# RHEL 5: -%if %{defined el5} +# RHEL 5.x/6.x: +%if %{defined el5} || %{defined el6} %if %{undefined kver} %define klnk %{_usrsrc}/kernels/*/include/config %define kver %((echo X; %{__cat} %{klnk}/kernel.release