1 diff -urN rpm-4.3.org/macros.in rpm-4.3/macros.in
2 --- rpm-4.3.org/macros.in 2004-05-31 17:16:23.251095072 +0200
3 +++ rpm-4.3/macros.in 2004-05-31 17:35:47.653079064 +0200
7 %global __debug_package 1\
10 Summary: Debug information for package %{name}\
11 +Summary(pl): Informacje dla debuggera dla pakietu %{name}\
12 Group: Development/Debug\
15 +%description debuginfo\
16 This package provides debug information for package %{name}.\
17 Debug information is useful when developing applications that use this\
18 package or when debugging this package.\
19 -%files debug -f debugfiles.list\
20 +%description debuginfo -l pl\
21 +Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\
22 +Informacje te s± przydatne przy rozwijaniu aplikacji u¿ywaj±cych tego\
23 +pakietu oraz przy odpluskwianiu samego pakietu.\
24 +%files debuginfo -f debugfiles.list\
25 %defattr(-,root,root)\
29 %__spec_install_pre %{___build_pre}
30 %__spec_install_body %{___build_body}
32 -%{?__debug_package:%{__debug_install_post}}\
33 +%{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
34 %{__arch_install_post}\
37 @@ -1250,7 +1250,10 @@
41 -%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
43 +%if 0%{?_enable_debug_packages}\
44 +%{?buildsubdir:%{debug_package}}\
51 if [ -d "$RPM_BUILD_ROOT" ]; then \
52 echo "Strip executable binaries, archives and shared object files."; \
53 - filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
54 + filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" ! -regex ".*/usr/lib[0-9]*/debug/.*\.debug" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
55 elfexelist=`echo $filelist | xargs -r file | \
56 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
57 elfsharedlist=`echo $filelist | xargs -r file | \
58 diff -urN rpm-4.3.org/scripts/find-debuginfo.sh rpm-4.3/scripts/find-debuginfo.sh
59 --- rpm-4.3.org/scripts/find-debuginfo.sh 2004-05-31 17:16:16.146175184 +0200
60 +++ rpm-4.3/scripts/find-debuginfo.sh 2004-05-31 17:16:51.153853208 +0200
64 echo extracting debug info from $f
65 - /usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
66 + /usr/bin/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l "$SOURCEFILE" "$f"
68 - eu-strip -f "${debugfn}" "$f" || :
69 + eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
73 - eu-strip -f "${debugfn}" "$f" || :
74 + eu-strip -f "${debugfn}" -o "$f.tmp" "$f" || :
79 --- rpm-4.3/platform.in.orig 2004-07-28 21:35:25.000000000 +0200
80 +++ rpm-4.3/platform.in 2004-07-28 21:37:22.000000000 +0200
85 - %{?__debug_package:%{__debug_install_post}}\
86 + %{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
87 %{__arch_install_post}\