[packages/adapter: 569/631] subst docdir, convert requires(hint)

glen glen at pld-linux.org
Mon Sep 12 20:22:08 CEST 2016


commit e68c6055bc67db93ec2f67431e3b4bffd526e05b
Author: Elan Ruusamäe <glen at delfi.ee>
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/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list