]> git.pld-linux.org Git - packages/adapter.git/commitdiff
macroize commands printed by autoreconf -vif
authorElan Ruusamäe <glen@delfi.ee>
Tue, 13 Sep 2016 20:47:41 +0000 (23:47 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 13 Sep 2016 20:47:41 +0000 (23:47 +0300)
adapter.awk

index 7e26f90774e1198dfec2cf459c1edece9c6443c1..1b682f8b510f1ab5771024c506f0fb1e19f7a4de 100644 (file)
@@ -440,11 +440,11 @@ function b_makekey(a, b,  s) {
        $0 = fixedsub("libtoolize --force --copy", "%{__libtoolize}", $0)
        $0 = fixedsub("libtoolize -c -f --automake", "%{__libtoolize}", $0)
 
-       sub(/^aclocal$/, "%{__aclocal}")
-       sub(/^autoheader$/, "%{__autoheader}")
-       sub(/^autoconf$/, "%{__autoconf}")
+       sub(/^aclocal( --force)?$/, "%{__aclocal}")
+       sub(/^(%{_bindir}\/)?autoheader( --force)?$/, "%{__autoheader}")
+       sub(/^(%{_bindir}\/)?autoconf( --force)?$/, "%{__autoconf}")
        sub(/^automake$/, "%{__automake}")
-       sub(/^libtoolize$/, "%{__libtoolize}")
+       sub(/^libtoolize( --copy --force)?$/, "%{__libtoolize}")
 
        # atrpms
        $0 = fixedsub("%perl_configure", "%{__perl} Makefile.PL \\\n\tINSTALLDIRS=vendor", $0)
@@ -1339,6 +1339,7 @@ function use_macros()
        gsub(php_data_dir, "%{php_data_dir}")
        gsub("%{_datadir}/php", "%{php_data_dir}")
        gsub("%{php_home}", "%{php_data_dir}")
+       gsub("%{phpdir}", "%{php_data_dir}")
        gsub("%{php_extdir}", "%{php_extensiondir}")
 
        # change to %{_datadir}, with some exceptions
This page took 0.092478 seconds and 4 git commands to generate.