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 1c2e433fec
commit e9094d47cd
1 changed files with 2 additions and 0 deletions

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.