]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-macros.patch
- dropped obsolete comment
[packages/rpm.git] / rpm-macros.patch
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 @@
5  %endif\
6  %{nil}
7  
8 -%_defaultdocdir                %{_usr}/doc
9 +%_defaultdocdir                %{_usr}/share/doc
10  
11  #      The path to the pgp executable (legacy, use %{__pgp} instead).
12  %_pgpbin               %{__pgp}
13 @@ -242,12 +242,12 @@
14  #      The directory where newly built source packages will be written.
15  %_srcrpmdir            %{_topdir}/SRPMS
16  
17 -#      Directory where temporaray files can be created.
18 -%_tmppath              %{_var}/tmp
19 +#      Directory where temporary files can be created.
20 +%_tmppath              %(echo "${TMPDIR:-/tmp}")
21  %tmpdir                        %{_tmppath}
22  
23  #      Path to top of build area.
24 -%_topdir               @PKGSRCDIR_MACRO@
25 +%_topdir               %(echo $HOME)/rpm
26  
27  #==============================================================================
28  # ---- Optional rpmrc macros.
29 @@ -257,7 +257,7 @@
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
38 @@ -356,8 +356,8 @@
39  #              "w9.bzdio"      bzip2 level 9.
40  #              "w9.lzdio"      lzma level 9.
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)
49 @@ -1224,17 +1224,17 @@
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}
64  %_includedir           %{_prefix}/include
65  %_oldincludedir                /usr/include
66 -%_infodir              %{_prefix}/info
67 -%_mandir               %{_prefix}/man
68 +%_infodir              %{_prefix}/share/info
69 +%_mandir               %{_prefix}/share/man
70  %_localedir            %{_datadir}/locale
71  
72  #==============================================================================
73 @@ -1535,7 +1535,33 @@
74  # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
75  #%__executable_provides        %{_rpmhome}/executabledeps.sh --provides
76  #%__executable_requires        %{_rpmhome}/executabledeps.sh --requires
77 -%__scriptlet_requires  /bin/bash --rpm-requires
78 +#%__scriptlet_requires /bin/bash --rpm-requires
79  
80 +# PLD rpm macros
81 +%_enable_debug_packages 1
82 +
83 +# provides don't obsolete
84 +%_upgrade_tag name
85 +
86 +#-----------------------------------------------------------------
87 +# CFLAGS and LDFLAGS used to build
88 +
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.
91 +
92 +%debugcflags   -O0 -g -Wall
93 +%optldflags    -Wl,--as-needed
94 +
95 +# Warning: those macros are overwritten by macros.build,
96 +#          left here for compatibility
97 +%rpmcflags     %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
98 +%rpmcxxflags   %{rpmcflags}
99 +%rpmldflags    %{!?no_build_with_as_needed:-Wl,--as-needed}
100 +
101 +# arch macros
102 +%ix86  i386 i486 i586 i686 pentium3 pentium4 athlon
103 +%x8664 x86_64 amd64 ia32e
104 +%ppc   ppc ppc7400 ppc7450
105 +  
106  # \endverbatim
107  #*/
This page took 0.044064 seconds and 3 git commands to generate.