[packages/adapter: 275/631] - updated

glen glen at pld-linux.org
Mon Sep 12 19:57:30 CEST 2016


commit 4e26c5f2326f9862b72b3c5df28248ef68e2ce68
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Jan 2 16:47:33 2006 +0000

    - updated
    
    Changed files:
        adapter.awk -> 1.265

 adapter.awk | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index ca302e9..1407bdb 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -364,6 +364,8 @@ function b_makekey(a, b,	s) {
 	$0 = fixedsub("glib-gettextize --copy --force","%{__glib_gettextize}", $0);
 	$0 = fixedsub("intltoolize --copy --force", "%{__intltoolize}", $0);
 	$0 = fixedsub("automake --add-missing --copy", "%{__automake}", $0);
+	$0 = fixedsub("libtoolize -c -f --automake", "%{__libtoolize}", $0);
+	$0 = fixedsub("automake -a -c --foreign", "%{__automake}", $0);
 
 	sub(/^aclocal$/, "%{__aclocal}");
 	sub(/^autoheader$/, "%{__autoheader}");
@@ -1261,12 +1263,29 @@ function cflags(var)
 	return 1
 }
 
+function demacroize(str)
+{
+	sub("%{mod_name}", mod_name, str);
+	sub("%{name}", name, str);
+	if (version) {
+		sub("%{version}", version, str);
+	}
+	if (_beta) {
+		sub("%{_beta}", _beta, str);
+	}
+	if (_rc) {
+		sub("%{_rc}", _rc, str);
+	}
+	if (_snap) {
+		sub("%{_snap}", _snap, str);
+	}
+	return str;
+}
+
 function kill_preamble_macros()
 {
 	if ($1 ~ /^URL:/ || $1 ~ /^Obsoletes:/) {
-		sub("%{mod_name}", mod_name, $2);
-		sub("%{name}", name, $2);
-
+		$2 = demacroize($2);
 		# unify sourceforge url
 		sub("\.sf\.net/$", ".sourceforge.net/", $2);
 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list