]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
subst docdir, convert requires(hint)
authorElan Ruusamäe <glen@delfi.ee>
Mon, 18 Feb 2013 16:16:51 +0000 (18:16 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 18 Feb 2013 16:16:51 +0000 (18:16 +0200)
adapter.awk

index cba44c853062bc6d1cf828b21bff2e772214baff..901099c65ea22f58d301847b91285ef2e4457447 100644 (file)
@@ -637,6 +637,11 @@ preamble == 1 {
                $1 = "Requires:";
        }
 
+       # F<16 had requires(hint)
+       if (/^Requires\(hint\):/) {
+               $1 = "Suggests:";
+       }
+
        field = tolower($1)
        if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
                sub(/\.$/, "", $0);
@@ -1063,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.037607 seconds and 4 git commands to generate.