]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- moved pkgconfig subst to use_files_macros()
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 10 Oct 2005 09:18:48 +0000 (09:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.196

adapter.awk

index 96a2919ebac27167270162e28c35e849436caa5c..10961c4bde8fc978499979987cb8597656bbe91f 100644 (file)
@@ -846,10 +846,6 @@ function use_macros()
 
        gsub(examplesdir, "%{_examplesdir}")
 
-       gsub(libdir "/pkgconfig", "%{_pkgconfigdir}");
-       gsub("%{_libdir}/pkgconfig", "%{_pkgconfigdir}");
-       gsub("%{_prefix}/lib/pkgconfig", "%{_pkgconfigdir}");
-
        if (prefix != "/") {
                # leave --with-foo=/usr alone
                if ($0 !~ "--with.*=.*" prefix) {
@@ -862,6 +858,8 @@ function use_macros()
                                        continue;
                                if ($c ~ prefix "/lib/sendmail")
                                        continue;
+                               if ($c ~ prefix "/lib/pkgconfig")
+                                       continue;
                                gsub(prefix, "%{_prefix}", $c)
                        }
                }
@@ -970,7 +968,6 @@ function use_files_macros(  i, n, t, a)
                }
        }
 
-
        # kill leading zeros
        if (/%attr\(0[1-9]/) {
                gsub("%attr\\(0", "%attr(")
@@ -1000,6 +997,10 @@ function use_files_macros(        i, n, t, a)
        $0 = fixedsub("%{perl_man1dir}", "%{_mandir}/man1", $0);
        $0 = fixedsub("%{perl_man3dir}", "%{_mandir}/man3", $0);
        $0 = fixedsub("%{perl_bin}", "%{_bindir}", $0);
+
+       gsub(libdir "/pkgconfig", "%{_pkgconfigdir}");
+       gsub("%{_libdir}/pkgconfig", "%{_pkgconfigdir}");
+       gsub("%{_prefix}/lib/pkgconfig", "%{_pkgconfigdir}");
 }
 
 function fill(ch, n, i) {
This page took 0.100713 seconds and 4 git commands to generate.