Make sure %post/%postun for kernel-tools is wrapped with %{with_tools}
otherwise noarch fails (also make prep)
This commit is contained in:
parent
8addb5fc3a
commit
93e7772b8b
@ -1830,11 +1830,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
### scripts
|
### scripts
|
||||||
###
|
###
|
||||||
|
|
||||||
|
%if %{with_tools}
|
||||||
%post -n kernel-tools
|
%post -n kernel-tools
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun -n kernel-tools
|
%postun -n kernel-tools
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# This macro defines a %%post script for a kernel*-devel package.
|
# This macro defines a %%post script for a kernel*-devel package.
|
||||||
|
Loading…
Reference in New Issue
Block a user