]> git.pld-linux.org Git - packages/adapter.git/blobdiff - adapter.awk
- leave /sbin/ldconfig intact
[packages/adapter.git] / adapter.awk
index e071dd9049c1634fe7ff66208f0907a9fe23edac..993c1e9a7c562a430d5ae7af9cb846c51fea5bf6 100644 (file)
@@ -436,10 +436,7 @@ function b_makekey(a, b,   s) {
 /^%clean/, (!/^%clean/ && $0 ~ SECTIONS) {
        did_clean = 1
 
-       # prevent next section header like "%post -p /sbin/ldconfig" being adapterized
-       if (!/^%post/) {
-               use_macros()
-       }
+    use_macros()
 }
 
 ############
@@ -1066,6 +1063,8 @@ function use_macros()
     sub("%{_bindir}/perl", "%{__perl}");
     sub("%{_bindir}/python", "%{__python}");
 
+       gsub(infodir, "%{_infodir}")
+
        gsub(perl_sitearch, "%{perl_sitearch}")
        gsub(perl_archlib, "%{perl_archlib}")
        gsub(perl_privlib, "%{perl_privlib}")
@@ -1098,6 +1097,8 @@ function use_macros()
                        continue;
                if ($c ~ sbindir "/webapp")
                        continue;
+               if ($c ~ sbindir "/ldconfig")
+                       continue;
                if ($c ~ sbindir "/chsh")
                        continue;
                if ($c ~ sbindir "/usermod")
This page took 0.07009 seconds and 4 git commands to generate.