Ticket #22220: patch-macros.in

File patch-macros.in, 4.4 KB (added by carlo.cabanilla@…, 15 years ago)

fixed macros.in patch

Line 
1--- macros.in.orig      2009-06-17 21:29:57.000000000 -0400
2+++ macros.in   2009-10-24 00:11:20.000000000 -0400
3@@ -187,7 +187,7 @@
4 %_dbpath_rebuild       %{_dbpath}
5 
6 #
7-#      Path to script that creates debug symbols in a /usr/lib/debug
8+#      Path to script that creates debug symbols in a @prefix@/lib/debug
9 #      shadow tree.
10 #
11 #     A spec file can %%define _find_debuginfo_opts to pass options to
12@@ -313,7 +313,7 @@
13 #
14 %_install_helpers %{rpmhome}/helpers
15 %_helperpath   %{?_install_helpers:%{_install_helpers}:}
16-%_install_script_path  %{_helperpath}/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
17+%_install_script_path  %{_helperpath}/sbin:@prefix@/bin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
18 
19 #      A colon separated list of desired locales to be installed;
20 #      "all" means install all locale specific files.
21@@ -800,7 +800,7 @@
22 # Export package NEVRA (stamped with install tid) info for HRMIB on this path.
23 #
24 # XXX  Note: escaped %% for use in headerSprintf()
25-#%_hrmib_path  /var/cache/hrmib/%{___NVRA}
26+#%_hrmib_path  @prefix@/var/cache/hrmib/%{___NVRA}
27 
28 #==============================================================================
29 # ---- GPG/PGP/PGP5 signature macros.
30@@ -889,13 +889,13 @@
31 #      The path to the dependency universe database. The default value
32 #      is the rpmdb-vendor location. The macro is usually defined in
33 #      %{_etcrpm}/macros.solve, installed with the rpmdb-vendor package.
34-#%_solve_dbpath        /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/rpm
35+#%_solve_dbpath        @prefix@/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/rpm
36 
37 #      The path to the dependency universe packages. This should
38 #      be a path to the packages contained in the solve database.
39 #
40 # XXX  Note: needs a pesky trailing /
41-#%_solve_pkgsdir       /mnt/rpm/test/latest-i386/RedHat/RPMS/
42+#%_solve_pkgsdir       @prefix@/src/%{_vendor}/RPMS/%{_arch}/
43 
44 #      The output binary package file name template used when suggesting
45 #      binary packages that solve a dependency. The macro is usually defined
46@@ -1146,7 +1146,7 @@
47 %_rpmds_perldeps_cmd   %{__find} %{_libdir}/perl5 | %{_rpmhome}/perl.prov
48 
49 #
50-%_varrun               /var/run
51+%_varrun               @prefix@/var/run
52 
53 #==============================================================================
54 # ---- Cache configuration macros.
55@@ -1171,7 +1171,7 @@
56 %_bhA           %{nil}
57 
58 #      The cache database directory.
59-%_cache_dbpath         /var/cache/yum/rpmdb
60+%_cache_dbpath         @prefix@/var/cache/yum/rpmdb
61 
62 #==============================================================================
63 # ---- per-platform macros.
64@@ -1411,7 +1411,7 @@
65 %_lib                  lib
66 %_libdir               %{_exec_prefix}/%{_lib}
67 %_includedir           %{_prefix}/include
68-%_oldincludedir                /usr/include
69+%_oldincludedir                @prefix@/include
70 %_infodir              %{_datarootdir}/info
71 %_mandir               %{_datarootdir}/man
72 %_localedir            %{_datarootdir}/locale
73@@ -1707,7 +1707,7 @@
74 # Note: Used iff _use_internal_dependency_generator is non-zero. The
75 # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
76 %__java_provides       %{_rpmhome}/javadeps.sh --provides
77-%__java_requires       %{_rpmhome}/javadeps.sh --requires
78+#%__java_requires      %{_rpmhome}/javadeps.sh --requires
79 
80 #------------------------------------------------------------------------
81 # libtool(...) configuration.
82@@ -1717,7 +1717,7 @@
83 # Note: Used iff _use_internal_dependency_generator is non-zero. The
84 # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
85 %__libtool_provides    %{_rpmhome}/libtooldeps.sh --provides %{buildroot} %{name}
86-%__libtool_requires    %{_rpmhome}/libtooldeps.sh --requires %{buildroot} %{name}
87+#%__libtool_requires   %{_rpmhome}/libtooldeps.sh --requires %{buildroot} %{name}
88 
89 #------------------------------------------------------------------------
90 # pkgconfig(...) configuration.
91@@ -1727,7 +1727,7 @@
92 # Note: Used iff _use_internal_dependency_generator is non-zero. The
93 # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
94 %__pkgconfig_provides  %{_rpmhome}/pkgconfigdeps.sh --provides
95-%__pkgconfig_requires  %{_rpmhome}/pkgconfigdeps.sh --requires
96+#%__pkgconfig_requires %{_rpmhome}/pkgconfigdeps.sh --requires
97 
98 #------------------------------------------------------------------------
99 # mono(...) configuration.
100@@ -1748,7 +1748,7 @@
101 # helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
102 #%__executable_provides        %{_rpmhome}/executabledeps.sh --provides
103 #%__executable_requires        %{_rpmhome}/executabledeps.sh --requires
104-%__scriptlet_requires  %{__bash} --rpm-requires
105+#%__scriptlet_requires %{__bash} --rpm-requires
106 
107 # \endverbatim
108 #*/