spl-modules-devel package must depend on the exact version of kernel

devel package it was built against.
This commit is contained in:
Brian Behlendorf 2009-11-24 15:24:36 -08:00
parent c1541dfef1
commit f6ea161924

View File

@ -155,10 +155,12 @@
%if %{defined build_src_rpm} %if %{defined build_src_rpm}
%define release @SPL_META_RELEASE@ %define release @SPL_META_RELEASE@
%define requires %{kpkg} %define requires %{kpkg}
%define devel_requires %{kdevpkg}
%else %else
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g') %define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
%define release @SPL_META_RELEASE@_%{relext} %define release @SPL_META_RELEASE@_%{relext}
%define requires %{kpkg} %{koppkg} %{kverpkg} %define requires %{kpkg} %{koppkg} %{kverpkg}
%define devel_requires %{kdevpkg} %{koppkg} %{kverpkg}
%endif %endif
Summary: Solaris Porting Layer Modules Summary: Solaris Porting Layer Modules
@ -182,7 +184,7 @@ taskq, thread, time, and vnode APIs.
%package devel %package devel
Summary: Solaris Porting Layer Headers and Symbols Summary: Solaris Porting Layer Headers and Symbols
Group: Development/Libraries Group: Development/Libraries
Requires: %{requires} Requires: %{devel_requires}
BuildRequires: %{kdevpkg} BuildRequires: %{kdevpkg}
%description devel %description devel