]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-pld.macros
- added helperEVR-noassert patch (replace assert by error message;
[packages/rpm.git] / rpm-pld.macros
1 # Overwrite RPM macros with PLD specific one here.
2
3 %_defaultdocdir         %{_usr}/share/doc
4
5 %_tmppath               %(echo "${TMPDIR:-/tmp}")
6 %tmpdir                 %{_tmppath}
7
8 %_topdir                %(echo $HOME)/rpm
9
10 %buildroot              %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
11
12 %_source_payload        w9.gzdio
13 %_binary_payload        w9.lzdio
14
15 %_rpmfc_magic_path      /usr/share/file/magic
16
17 %_libexecdir            %{_exec_prefix}/lib
18 %_sysconfdir            /etc
19 %_sharedstatedir        /var/lib
20 %_localstatedir         /var
21
22
23 %_infodir       %{_prefix}/share/info
24 %_mandir        %{_prefix}/share/man
25
26 %undefine       __scriptlet_requires
27
28 %_enable_debug_packages 1
29
30 # provides don't obsolete
31 %_upgrade_tag name
32
33 #-----------------------------------------------------------------
34 # CFLAGS and LDFLAGS used to build
35
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.
38
39 %debugcflags   -O0 -g -Wall
40 %debugcppflags %{nil}
41 %debugldflags  %{nil}
42
43 %optldflags    -Wl,--as-needed -Wl,-z,relro -Wl,-z,-combreloc
44 %optcppflags   -D_FORTIFY_SOURCE=2
45
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
52
53 # arch macros
54 %ix86  i386 i486 i586 i686 pentium3 pentium4 athlon
55 %x8664 x86_64 amd64 ia32e
56 %ppc   ppc ppc7400 ppc7450
57
This page took 0.029723 seconds and 3 git commands to generate.