]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-macros.patch
86514ddd9aabede1a69f9ca6d425207b139fc0c0
[packages/rpm.git] / rpm-macros.patch
1 --- rpm-4.4.8/macros.in.orig    2007-04-08 20:24:47.206783474 +0200
2 +++ rpm-4.4.8/macros.in 2007-04-08 20:36:08.925632417 +0200
3 @@ -206,7 +206,7 @@
4  %endif\
5  %{nil}
6  
7 -%_defaultdocdir                %{_usr}/doc
8 +%_defaultdocdir                %{_usr}/share/doc
9  
10  #      The path to the pgp executable (legacy, use %{__pgp} instead).
11  %_pgpbin               %{__pgp}
12 @@ -233,12 +233,12 @@
13  #      The directory where newly built source packages will be written.
14  %_srcrpmdir            %{_topdir}/SRPMS
15  
16 -#      Directory where temporaray files can be created.
17 -%_tmppath              %{_var}/tmp
18 +#      Directory where temporary files can be created.
19 +%_tmppath              %(echo "${TMPDIR:-/tmp}")
20  %tmpdir                        %{_tmppath}
21  
22  #      Path to top of build area.
23 -%_topdir               %{_usrsrc}/rpm
24 +%_topdir               %(echo $HOME)/rpm
25  
26  #==============================================================================
27  # ---- Optional rpmrc macros.
28 @@ -248,7 +248,7 @@
29  #      Configurable build root path, same as BuildRoot: in a specfile.
30  #      (Note: the configured macro value will override the spec file value).
31  #
32 -%buildroot             %{_tmppath}/%{name}-root
33 +%buildroot             %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
34  
35  #      The sub-directory (relative to %{_builddir}) where sources are compiled.
36  #      This macro is set after processing %setup, either explicitly from the
37 @@ -347,8 +347,8 @@
38  #              "w9.bzdio"      bzip2 level 9.
39  #              "w9.lzdio"      lzma level 9.
40  #
41 -#%_source_payload      w9.gzdio
42 -#%_binary_payload      w9.gzdio
43 +%_source_payload       w9.gzdio
44 +%_binary_payload       w9.lzdio
45  
46  #      Archive formats to use for source/binary package payloads.
47  #              "cpio"          cpio archive (default)
48 @@ -498,7 +498,7 @@
49  
50  #
51  # Path to magic file used for file classification.
52 -%_rpmfc_magic_path     %{_usr}/lib/rpm/magic
53 +%_rpmfc_magic_path     /usr/share/file/magic
54  
55  #==============================================================================
56  # ---- Database configuration macros.
57 @@ -757,7 +757,7 @@
58  
59  #      Open all indices before doing chroot(2).
60  #
61 -%_openall_before_chroot        0
62 +%_openall_before_chroot        1
63  
64  #      The path to the dependency universe database. The default value
65  #      is the rpmdb-vendor location. The macro is usually defined in
66 @@ -1127,17 +1127,17 @@
67  %_exec_prefix          %{_prefix}
68  %_bindir               %{_exec_prefix}/bin
69  %_sbindir              %{_exec_prefix}/sbin
70 -%_libexecdir           %{_exec_prefix}/libexec
71 +%_libexecdir           %{_exec_prefix}/lib
72  %_datadir              %{_prefix}/share
73 -%_sysconfdir           %{_prefix}/etc
74 -%_sharedstatedir       %{_prefix}/com
75 -%_localstatedir                %{_prefix}/var
76 +%_sysconfdir           /etc
77 +%_sharedstatedir       /var/lib
78 +%_localstatedir                /var
79  %_lib                  lib
80  %_libdir               %{_exec_prefix}/%{_lib}
81  %_includedir           %{_prefix}/include
82  %_oldincludedir                /usr/include
83 -%_infodir              %{_prefix}/info
84 -%_mandir               %{_prefix}/man
85 +%_infodir              %{_prefix}/share/info
86 +%_mandir               %{_prefix}/share/man
87  %_localedir            %{_datadir}/locale
88  
89  #==============================================================================
90 @@ -1428,7 +1428,25 @@
91  # helpers are also used by %{_usrlibrpm}/rpmdeps {--provides|--requires}.
92  #%__executable_provides        %{_usrlibrpm}/executabledeps.sh --provides
93  #%__executable_requires        %{_usrlibrpm}/executabledeps.sh --requires
94 -%__scriptlet_requires  /bin/bash --rpm-requires
95 +#%__scriptlet_requires /bin/bash --rpm-requires
96  
97 +# PLD rpm macros
98 +%_enable_debug_packages 1
99 +
100 +#-----------------------------------------------------------------
101 +# CFLAGS and LDFLAGS used to build
102 +
103 +%debuginfocflags       %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
104 +# -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
105 +
106 +%debugcflags   -O0 -g -Wall
107 +%optldflags    -Wl,--as-needed
108 +
109 +# Warning: those macros are overwritten by macros.build,
110 +#          left here for compatibility
111 +%rpmcflags     %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
112 +%rpmcxxflags   %{rpmcflags}
113 +%rpmldflags    %{!?no_build_with_as_needed:-Wl,--as-needed}
114 +  
115  # \endverbatim
116  #*/
117 --- rpm-4.4.8/configure.ac.orig 2007-04-08 20:24:47.210783702 +0200
118 +++ rpm-4.4.8/configure.ac      2007-04-08 20:32:18.216485052 +0200
119 @@ -1462,7 +1462,7 @@
120         [Full path to rpm system configuration directory (usually /etc/rpm)])
121  AC_SUBST(SYSCONFIGDIR)
122  
123 -MACROFILES="${USRLIBRPM}/macros:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/.rpmmacros"
124 +MACROFILES="${USRLIBRPM}/macros:${USRLIBRPM}/macros.build:${USRLIBRPM}/%{_target}/macros:${SYSCONFIGDIR}/macros.*:${SYSCONFIGDIR}/macros:${SYSCONFIGDIR}/%{_target}/macros:~/etc/.rpmmacros:~/.rpmmacros"
125  AC_DEFINE_UNQUOTED(MACROFILES, "$MACROFILES",
126         [Colon separated paths of macro files to read.])
127  AC_SUBST(MACROFILES)
This page took 0.034643 seconds and 2 git commands to generate.