1 # Overwrite RPM macros with PLD specific one here.
3 %_defaultdocdir %{_usr}/share/doc
5 %_tmppath %(echo "${TMPDIR:-/tmp}")
8 %_topdir %(echo $HOME)/rpm
10 %buildroot %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
12 %_source_payload w9.gzdio
13 %_binary_payload w9.lzdio
15 %_rpmfc_magic_path /usr/share/file/magic
17 %_libexecdir %{_exec_prefix}/lib
19 %_sharedstatedir /var/lib
23 %_infodir %{_prefix}/share/info
24 %_mandir %{_prefix}/share/man
26 %undefine __scriptlet_requires
28 %_enable_debug_packages 1
30 # provides don't obsolete
33 #-----------------------------------------------------------------
34 # CFLAGS and LDFLAGS used to build
36 %debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
37 # -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
39 %debugcflags -O0 -g -Wall
40 %optldflags -Wl,--as-needed
42 # Warning: those macros are overwritten by macros.build,
43 # left here for compatibility
44 %rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
45 %rpmcxxflags %{rpmcflags}
46 %rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}
49 %ix86 i386 i486 i586 i686 pentium3 pentium4 athlon
50 %x8664 x86_64 amd64 ia32e
51 %ppc ppc ppc7400 ppc7450