summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2011-08-17 22:14:23 -0400
committerJosh Boyer <jwboyer@redhat.com>2011-08-17 22:15:25 -0400
commit93e7772b8b96008038a19a002cc48d31c6f6c7b7 (patch)
tree4ccbc1a06480c12ed029119bfce1a38098e9ab58
parent8addb5fc3a45b5b27738ae01af120a309e5a2036 (diff)
downloadkernel-93e7772b8b96008038a19a002cc48d31c6f6c7b7.tar.gz
kernel-93e7772b8b96008038a19a002cc48d31c6f6c7b7.tar.xz
kernel-93e7772b8b96008038a19a002cc48d31c6f6c7b7.zip
Make sure %post/%postun for kernel-tools is wrapped with %{with_tools}
otherwise noarch fails (also make prep)
-rw-r--r--kernel.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 17259721b..e59827969 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -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.