[packages/icedtea8] - make sure _jdkversion is updated

arekm arekm at pld-linux.org
Mon Jan 30 10:17:55 CET 2017


commit fc25899a9b7dcc7d4024ad76d6a4ed45f89e7077
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jan 30 10:17:49 2017 +0100

    - make sure _jdkversion is updated

 icedtea8.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/icedtea8.spec b/icedtea8.spec
index a75868a..e99ede5 100644
--- a/icedtea8.spec
+++ b/icedtea8.spec
@@ -536,6 +536,13 @@ cd ../../..
 # smoke test
 openjdk.build/jdk/bin/java -version
 
+# _jdkversion check
+JDKVER=$(openjdk.build/jdk/bin/java -version 2>&1 | gawk -F'"' '/openjdk version/ { s=$2; gsub("_", ".", s); print s; } ')
+if [ "$JDKVER" != "%{_jdkversion}" ]; then
+	echo "Please update _jdkversion macro to $JDKVER" >&2
+	exit 1
+fi
+
 %{?with_cacerts:%{__sh} %{SOURCE10}}
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/icedtea8.git/commitdiff/fc25899a9b7dcc7d4024ad76d6a4ed45f89e7077



More information about the pld-cvs-commit mailing list