Ok, I've figured out how to create the kmod-devel packages by taking a
page from the kmodtool.
I did the kmod-spl-devel package like this:
# We need to package kernel dependent devel subpackage for each kernel version.
%{expand:%(for kernel_version in %{?kernel_versions} ; do
cat <<EOF
%package -n kmod-spl-devel-${kernel_version%%___*}
Summary: Solaris Porting Layer Kernel Module Headers and Symbols
Group: Development
Requires: kmod-spl = %{version}-%{release}
%description -n kmod-spl-devel-${kernel_version%%___*}
Solaris Porting Layer Kernel Module Headers and Symbols.
%files -n kmod-spl-devel-${kernel_version%%___*}
%defattr(-,root,root,-)
%{_usrsrc}/spl-%{version}/${kernel_version%%___*}/
EOF
done)}
I'll need to add this as a dependency to the kmod-zfs package.
Richard