[packages/adapter: 580/631] adapter: recognize ruby_specdir macro

glen glen at pld-linux.org
Mon Sep 12 20:23:03 CEST 2016


commit 6458b80bcaa7fafd07f7dc3e996f92b4c32829ef
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Oct 26 19:30:29 2013 +0300

    adapter: recognize ruby_specdir macro

 adapter.awk | 4 +++-
 adapter.sh  | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 57f1e63..cd6e688 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1114,6 +1114,7 @@ function use_macros()
 	gsub(ruby_rubylibdir, "%{ruby_rubylibdir}") # deprecated
 	gsub(ruby_rdocdir, "%{ruby_rdocdir}")
 	gsub(ruby_ridir, "%{ruby_ridir}")
+	gsub(ruby_specdir, "%{ruby_specdir}")
 
 	gsub("%{_unitdir}", "%{systemdunitdir}")
 	gsub(systemdunitdir, "%{systemdunitdir}")
@@ -1840,7 +1841,7 @@ function import_rpm_macros(  v) {
 	}
 
 	# update this version dep each time some new macro export is added
-	v = 1.49
+	v = 1.51
 	if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < v) {
 		printf("adapter shell script is outdated: Need %s, got %s. Please update it.\n", v, ENVIRON["ADAPTER_REVISION"]) > "/dev/stderr"
 		do_not_touch_anything = 1
@@ -1895,6 +1896,7 @@ function import_rpm_macros(  v) {
 	ruby_rubylibdir = ENVIRON["ruby_rubylibdir"] # deprecated
 	ruby_rdocdir = ENVIRON["ruby_rdocdir"]
 	ruby_ridir = ENVIRON["ruby_ridir"]
+	ruby_specdir = ENVIRON["ruby_specdir"]
 
 	php_pear_dir = ENVIRON["php_pear_dir"]
 	php_data_dir = ENVIRON["php_data_dir"]
diff --git a/adapter.sh b/adapter.sh
index d5c7866..761eeb9 100755
--- a/adapter.sh
+++ b/adapter.sh
@@ -12,7 +12,7 @@
 #
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 
-REVISION=1.50
+REVISION=1.51
 VERSION="v0.35/$REVISION"
 VERSIONSTRING="\
 Adapter adapts .spec files for PLD Linux.
@@ -224,6 +224,7 @@ import_rpm_macros() {
 	ruby_rubylibdir
 	ruby_rdocdir
 	ruby_ridir
+	ruby_specdir
 
 	php_pear_dir
 	php_data_dir
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list