]>
Commit | Line | Data |
---|---|---|
eb4e76ca AM |
1 | diff -urN rpm.org/macros.in rpm/macros.in |
2 | --- rpm.org/macros.in 2007-10-02 20:46:56.430390000 +0200 | |
3 | +++ rpm/macros.in 2007-10-02 20:49:01.480941544 +0200 | |
4 | @@ -213,7 +213,7 @@ | |
4d016095 AM |
5 | %endif\ |
6 | %{nil} | |
7 | ||
8 | -%_defaultdocdir %{_usr}/doc | |
9 | +%_defaultdocdir %{_usr}/share/doc | |
10 | ||
c9b276b0 JB |
11 | # The path to the pgp executable (legacy, use %{__pgp} instead). |
12 | %_pgpbin %{__pgp} | |
eb4e76ca | 13 | @@ -242,12 +242,12 @@ |
c9b276b0 | 14 | # The directory where newly built source packages will be written. |
5bfda13a AM |
15 | %_srcrpmdir %{_topdir}/SRPMS |
16 | ||
c9b276b0 | 17 | -# Directory where temporaray files can be created. |
5bfda13a | 18 | -%_tmppath %{_var}/tmp |
c9b276b0 | 19 | +# Directory where temporary files can be created. |
5bfda13a | 20 | +%_tmppath %(echo "${TMPDIR:-/tmp}") |
c9b276b0 | 21 | %tmpdir %{_tmppath} |
e493253e ER |
22 | |
23 | # Path to top of build area. | |
fee89ffa | 24 | -%_topdir @PKGSRCDIR_MACRO@ |
dc6aae45 | 25 | +%_topdir %(echo $HOME)/rpm |
e493253e | 26 | |
c9b276b0 JB |
27 | #============================================================================== |
28 | # ---- Optional rpmrc macros. | |
eb4e76ca | 29 | @@ -257,7 +257,7 @@ |
5bfda13a AM |
30 | # Configurable build root path, same as BuildRoot: in a specfile. |
31 | # (Note: the configured macro value will override the spec file value). | |
32 | # | |
33 | -%buildroot %{_tmppath}/%{name}-root | |
34 | +%buildroot %{_tmppath}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | # The sub-directory (relative to %{_builddir}) where sources are compiled. | |
37 | # This macro is set after processing %setup, either explicitly from the | |
eb4e76ca | 38 | @@ -356,8 +356,8 @@ |
3f2f32d6 | 39 | # "w9.bzdio" bzip2 level 9. |
c9b276b0 | 40 | # "w9.lzdio" lzma level 9. |
3f2f32d6 ER |
41 | # |
42 | -#%_source_payload w9.gzdio | |
43 | -#%_binary_payload w9.gzdio | |
44 | +%_source_payload w9.gzdio | |
45 | +%_binary_payload w9.lzdio | |
46 | ||
47 | # Archive formats to use for source/binary package payloads. | |
48 | # "cpio" cpio archive (default) | |
eb4e76ca | 49 | @@ -1224,17 +1224,17 @@ |
c9b276b0 JB |
50 | %_exec_prefix %{_prefix} |
51 | %_bindir %{_exec_prefix}/bin | |
52 | %_sbindir %{_exec_prefix}/sbin | |
53 | -%_libexecdir %{_exec_prefix}/libexec | |
54 | +%_libexecdir %{_exec_prefix}/lib | |
55 | %_datadir %{_prefix}/share | |
56 | -%_sysconfdir %{_prefix}/etc | |
57 | -%_sharedstatedir %{_prefix}/com | |
58 | -%_localstatedir %{_prefix}/var | |
59 | +%_sysconfdir /etc | |
60 | +%_sharedstatedir /var/lib | |
61 | +%_localstatedir /var | |
62 | %_lib lib | |
63 | %_libdir %{_exec_prefix}/%{_lib} | |
3bf6878c AM |
64 | %_includedir %{_prefix}/include |
65 | %_oldincludedir /usr/include | |
c9b276b0 | 66 | -%_infodir %{_prefix}/info |
3bf6878c | 67 | -%_mandir %{_prefix}/man |
c9b276b0 | 68 | +%_infodir %{_prefix}/share/info |
3bf6878c | 69 | +%_mandir %{_prefix}/share/man |
c9b276b0 | 70 | %_localedir %{_datadir}/locale |
3bf6878c AM |
71 | |
72 | #============================================================================== | |
eb4e76ca | 73 | @@ -1535,7 +1535,33 @@ |
fee89ffa AM |
74 | # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}. |
75 | #%__executable_provides %{_rpmhome}/executabledeps.sh --provides | |
76 | #%__executable_requires %{_rpmhome}/executabledeps.sh --requires | |
fec17460 JR |
77 | -%__scriptlet_requires %{__bash} --rpm-requires |
78 | +#%__scriptlet_requires %{__bash} --rpm-requires | |
c9b276b0 | 79 | |
e493253e ER |
80 | +# PLD rpm macros |
81 | +%_enable_debug_packages 1 | |
82 | + | |
9ddee74b AM |
83 | +# provides don't obsolete |
84 | +%_upgrade_tag name | |
85 | + | |
e493253e ER |
86 | +#----------------------------------------------------------------- |
87 | +# CFLAGS and LDFLAGS used to build | |
88 | + | |
5dda5fa7 PS |
89 | +%debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}} |
90 | +# -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed. | |
e493253e ER |
91 | + |
92 | +%debugcflags -O0 -g -Wall | |
5b60995d | 93 | +%optldflags -Wl,--as-needed |
94 | + | |
95 | +# Warning: those macros are overwritten by macros.build, | |
96 | +# left here for compatibility | |
e493253e ER |
97 | +%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags} |
98 | +%rpmcxxflags %{rpmcflags} | |
4126bfd3 | 99 | +%rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed} |
eb4e76ca AM |
100 | + |
101 | +# arch macros | |
102 | +%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon | |
103 | +%x8664 x86_64 amd64 ia32e | |
104 | +%ppc ppc ppc7400 ppc7450 | |
c9b276b0 | 105 | + |
e493253e ER |
106 | # \endverbatim |
107 | #*/ |