Browse Source

Reviewed by Nathan (Thanks!)

RPM tries to do all of this auto-optimization stuff that we just don't want, even in optimized builds because we already do it.  So this just disables the macro that causes the following:
   /usr/lib/rpm/redhat/brp-compress
   /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
   /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
   /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Rich Megginson 20 years ago
parent
commit
dcea5f06a6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ldapserver.spec.tmpl

+ 5 - 0
ldapserver.spec.tmpl

@@ -2,9 +2,14 @@
 # Copyright (C) 2005 Red Hat, Inc.
 # All rights reserved.
 # END COPYRIGHT BLOCK
+# The way we do packaging seems to leave unpackaged files in the builddir;
+# however, we really don't want them
 %define _unpackaged_files_terminate_build 0
 # override the default build name format - we do not want the arch subdir
 %define _build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.%{flavor}.rpm
+# don't bother stripping - we already do this for optimized, and we definitely
+# want the symbols in the debug builds
+%define __os_install_post %{nil}
 Summary: @COMPANY-PRODUCT-NAME@
 Name: @LCASE-COMPANY-NAME-NOSP@-ds
 Version: @GEN-VERSION@