Make sure %post/%postun for kernel-tools is wrapped with %{with_tools}

otherwise noarch fails (also make prep)
This commit is contained in:
Josh Boyer 2011-08-17 22:14:23 -04:00
parent 8addb5fc3a
commit 93e7772b8b

View File

@ -1830,11 +1830,13 @@ rm -rf $RPM_BUILD_ROOT
### scripts
###
%if %{with_tools}
%post -n kernel-tools
/sbin/ldconfig
%postun -n kernel-tools
/sbin/ldconfig
%endif
#
# This macro defines a %%post script for a kernel*-devel package.