Place the debuginfo for the kmod into its own rpm so that
it doesn't have to track against the userspace packages.
FIXES 132034
Reviewed-on: https://gerrit.openafs.org/11867
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit
443dd5367e0cd9050ad39a6594c5be521271b4e9)
Change-Id: I4b0783b2279cd3c295a92fcac1d0b2ad06e89376
Reviewed-on: https://gerrit.openafs.org/12818
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
%if %{build_modules}
%if %{fedorakmod}
+
+# Make debuginfo for the kernel components into their own package
+# so we can upgrade kernel and userspace seperately and still debug each
+%package -n %{name}-kernel-debuginfo
+Summary: Debug information for %{name} kernel modules
+Group: Development/Debug
+AutoReqProv: no
+%description -n %{name}-kernel-debuginfo
+This package provides debug information for %{name} kernel modules.
+
+%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*openafs.ko(\.debug)?' -o kmod-debuginfo.list}
+
%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)}
%else
%if %{build_modules}
+%if %{fedorakmod}
+%files -f kmod-debuginfo.list -n %{name}-kernel-debuginfo
+%defattr(-,root,root)
+%endif
+
%if !%{fedorakmod}
%if %{up_package}
%files kernel