Minor spec file cleanup for RHEL6 package dependency.

This commit is contained in:
Brian Behlendorf 2010-05-21 11:53:49 -07:00
parent 32f5faff69
commit edbbb609bd

View File

@ -94,7 +94,11 @@
%endif %endif
%define kpkg kernel %define kpkg kernel
%define kdevpkg kernel-devel %define kdevpkg kernel-devel
%if %{defined el6}
%define kverpkg %(echo %{kver} | %{__sed} -e 's/.%{_target_cpu}//g')
%else
%define kverpkg %{kver} %define kverpkg %{kver}
%endif
%define koppkg = %define koppkg =
%if %{undefined kdir} %if %{undefined kdir}
%define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu} %define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu}