-@@ -1250,7 +1250,10 @@
- unset DISPLAY ||:\
- %{nil}
-
--%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
-+%install \
-+%if 0%{?_enable_debug_packages}\
-+%{?buildsubdir:%{debug_package}}\
-+%endif\
- %%install\
- LANG=C\
- export LANG\
-@@ -1407,7 +1410,7 @@
- %{?verbose:set -x;} \
- if [ -d "$RPM_BUILD_ROOT" ]; then \
- echo "Strip executable binaries, archives and shared object files."; \
-- filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
-+ filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*\.debug" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
- elfexelist=`echo $filelist | xargs -r file | \
- awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
- elfsharedlist=`echo $filelist | xargs -r file | \
---- rpm-4.4.2/scripts/find-debuginfo.sh.orig 2005-07-14 17:52:31.000000000 +0200
-+++ rpm-4.4.2/scripts/find-debuginfo.sh 2005-07-23 13:57:04.542906944 +0200
-@@ -25,7 +25,7 @@
- [ -f "${debugfn}" ] && continue
-
- echo extracting debug info from $f
-- /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
-+ /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
-
- # A binary already copied into /usr/lib/debug doesn't get stripped,
- # just has its file names collected and adjusted.
-@@ -35,10 +35,12 @@
+--- rpm.org/scripts/find-debuginfo.sh 2007-09-06 09:36:38.000000000 +0200
++++ rpm/scripts/find-debuginfo.sh 2007-10-02 20:38:57.745519759 +0200
+@@ -92,7 +92,8 @@
+ $strip_g && case "$(file -bi "$2")" in
+ application/x-sharedlib,*) g=-g ;;
+ esac
+- eu-strip --remove-comment $g -f "$1" "$2" || exit
++ objcopy --only-keep-debug --remove-section .comment "$2" "$1" || exit
++ objcopy --add-gnu-debuglink="$1" "$2" || exit
+ }