Make sure %post/%postun for kernel-tools is wrapped with %{with_tools}
otherwise noarch fails (also make prep)
This commit is contained in:
parent
1c2e433fec
commit
e9094d47cd
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue