commit a6dd93808c483832571ef816638afad22b31a053
Author: Elan Ruusamäe <[email protected]>
Date:   Mon Feb 18 18:16:51 2013 +0200

    subst docdir, convert requires(hint)

 adapter.awk | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index cba44c8..901099c 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -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}");
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/a6dd93808c483832571ef816638afad22b31a053

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to