]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- don't run remove-unneeded-elf-sections if don't exist/don't have right to run
authorArtur Frysiak <artur@frysiak.net>
Tue, 29 Aug 2000 10:45:23 +0000 (10:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't run remove-unneeded-elf-sections if debug is defined

Changed files:
    rpm.macros -> 1.21

rpm.macros

index f0c55b8129a892c7a0962a56703d69aa20f11a3a..c7cb558c3ad92de6b072ad65310d26a3838f7aa9 100644 (file)
@@ -103,4 +103,4 @@ done \
 %_rpmfilename          %%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
 
 # remove .comment and .note from ELFs 
-%__spec_install_post   /usr/lib/rpm/remove-unneeded-elf-sections %{buildroot}
+%__spec_install_post   %{?debug:#}if [ -x /usr/lib/rpm/remove-unneeded-elf-sections ] ; then /usr/lib/rpm/remove-unneeded-elf-sections %{buildroot}; fi
This page took 0.080583 seconds and 4 git commands to generate.