From a6dd93808c483832571ef816638afad22b31a053 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 18 Feb 2013 18:16:51 +0200 Subject: [PATCH 1/1] 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}"); -- 2.44.0