PATH:
usr
/
lib
/
rpm
#!/bin/sh # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi STRIP=${1:-strip} OBJDUMP=${2:-objdump} case `uname -a` in Darwin*) exit 0 ;; *) ;; esac # Strip .comment and .note sections (the latter only if it is not allocated) # for already stripped elf files in the build root for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \ grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \ sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped.*/\1/p'`; do note="-R .note" if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \ grep ALLOC >/dev/null; then note= fi $STRIP -R .comment $note "$f" || : done
[-] perl.req
[edit]
[-] brp-strip-comment-note
[edit]
[-] check-rpaths-worker
[edit]
[-] macros
[edit]
[-] macros.perl
[edit]
[-] python-macro-helper
[edit]
[-] macros.php
[edit]
[-] script.req
[edit]
[-] rpmdeps
[edit]
[+]
fileattrs
[-] pkgconfigdeps.sh
[edit]
[-] rpm.supp
[edit]
[+]
platform
[-] brp-compress
[edit]
[-] ocaml-find-provides.sh
[edit]
[-] metainfo.prov
[edit]
[-] debugedit
[edit]
[-] rpmrc
[edit]
[-] check-files
[edit]
[-] check-buildroot
[edit]
[-] brp-strip-shared
[edit]
[-] brp-python-bytecompile
[edit]
[-] ocaml-find-requires.sh
[edit]
[-] brp-strip
[edit]
[-] mono-find-provides
[edit]
[-] tgpg
[edit]
[-] rpm.daily
[edit]
[-] pythondeps.sh
[edit]
[-] find-debuginfo.sh
[edit]
[-] elfdeps
[edit]
[+]
..
[-] desktop-file.prov
[edit]
[-] debuginfo.prov
[edit]
[-] brp-java-gcjcompile
[edit]
[-] brp-strip-static-archive
[edit]
[-] perl.prov
[edit]
[-] mkinstalldirs
[edit]
[-] fontconfig.prov
[edit]
[-] find-provides
[edit]
[-] libtooldeps.sh
[edit]
[-] mono-find-requires
[edit]
[-] macros.python
[edit]
[-] pythondistdeps.py
[edit]
[-] brp-python-hardlink
[edit]
[-] rpmdb_loadcvt
[edit]
[-] check-rpaths
[edit]
[-] find-requires
[edit]
[-] rpm2cpio.sh
[edit]
[+]
macros.d
[-] rpmpopt-4.14.2.1
[edit]
[-] sepdebugcrcfix
[edit]
[-] find-lang.sh
[edit]
[-] check-prereqs
[edit]