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
43 %optldflags -Wl,--as-needed -Wl,-z,relro -Wl,-z,-combreloc
44 %optcppflags -D_FORTIFY_SOURCE=2
46 # Warning: those macros are overwritten by macros.build,
47 # left here for compatibility
48 %rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
49 %rpmcxxflags %{rpmcflags}
50 %rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}
51 %rpmcppflags -D_FORTIFY_SOURCE=2
54 %ix86 i386 i486 i586 i686 pentium3 pentium4 athlon
55 %x8664 x86_64 amd64 ia32e
56 %ppc ppc ppc7400 ppc7450