]> git.pld-linux.org Git - packages/adapter.git/blobdiff - adapter.awk
subst docdir, convert requires(hint)
[packages/adapter.git] / adapter.awk
index bb70fbd82198dae103ac813f20679111bc547497..901099c65ea22f58d301847b91285ef2e4457447 100644 (file)
@@ -632,6 +632,16 @@ preamble == 1 {
                release = "0." fixedsub(".%{disttag}.at", "", $4)
        }
 
+       # deprecated. currently just resolves to name in $2
+       if (/^%pyrequires_eq.+/) {
+               $1 = "Requires:";
+       }
+
+       # F<16 had requires(hint)
+       if (/^Requires\(hint\):/) {
+               $1 = "Suggests:";
+       }
+
        field = tolower($1)
        if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
                sub(/\.$/, "", $0);
@@ -1058,6 +1068,7 @@ function use_macros()
        }
 
        sub("%{_defaultdocdir}", "%{_docdir}");
+       sub("%{_datadir}/doc", "%{_docdir}");
        sub("%{_bindir}/perl", "%{__perl}");
        sub("%{_bindir}/python", "%{__python}");
 
This page took 0.09169 seconds and 4 git commands to generate.