[packages/rpm-build-tools] adapter: kill %pyrequires_eq, python(abi) deps are autogenerated for last 8 years

glen glen at pld-linux.org
Mon Jan 28 20:44:05 CET 2013


commit f39257b08f2772be7047a2bbf11f77bcba6a5720
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jan 28 21:40:42 2013 +0200

    adapter: kill %pyrequires_eq, python(abi) deps are autogenerated for last 8 years
    
    http://git.pld-linux.org/?p=packages/rpm-build-macros.git;a=commitdiff;h=e63cd81d7184668104a7d19e403850613337372c
    python(abi) deps are autogenerated now (at last)
    pyrequires_eq remains just Requires for backward compat

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index bb70fbd..cba44c8 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -632,6 +632,11 @@ preamble == 1 {
 		release = "0." fixedsub(".%{disttag}.at", "", $4)
 	}
 
+	# deprecated. currently just resolves to name in $2
+	if (/^%pyrequires_eq.+/) {
+		$1 = "Requires:";
+	}
+
 	field = tolower($1)
 	if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
 		sub(/\.$/, "", $0);
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list