1 diff -Nur rpm-4.4.6.orig/macros.in rpm-4.4.6.macros/macros.in
2 --- rpm-4.4.6.orig/macros.in 2006-08-05 20:52:48.000000000 +0200
3 +++ rpm-4.4.6.macros/macros.in 2006-08-05 20:53:57.000000000 +0200
7 # Path to top of build area.
8 -%_topdir %{_usrsrc}/rpm
9 +%_topdir %(echo $HOME)/rpm
11 # The path to the unzip executable (legacy, use %{__unzip} instead).
14 # "w9.gzdio" gzip level 9 (default).
15 # "w9.bzdio" bzip2 level 9.
17 -#%_source_payload w9.gzdio
18 -#%_binary_payload w9.gzdio
19 +%_source_payload w9.gzdio
20 +%_binary_payload w9.lzdio
22 # Archive formats to use for source/binary package payloads.
23 # "cpio" cpio archive (default)
25 export RPM_BUILD_ROOT}\
26 %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\
29 + unset PERL_MM_OPT || :\
35 %{verbose:set -x}%{!verbose:exec > /dev/null}\
37 @@ -1350,5 +1350,22 @@
38 #%__executable_provides @RPMCONFIGDIR@/executabledeps.sh --provides
39 #%__executable_requires @RPMCONFIGDIR@/executabledeps.sh --requires
42 +%_enable_debug_packages 1
44 +#-----------------------------------------------------------------
45 +# CFLAGS and LDFLAGS used to build
47 +%debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2 -feliminate-dwarf2-dups}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
49 +%debugcflags -O0 -g -Wall
50 +%optldflags -Wl,--as-needed
52 +# Warning: those macros are overwritten by macros.build,
53 +# left here for compatibility
54 +%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
55 +%rpmcxxflags %{rpmcflags}
56 +%rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}