]> git.pld-linux.org Git - packages/icedtea8.git/commitdiff
- make sure _jdkversion is updated auto/th/icedtea8-3.3.0-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 30 Jan 2017 09:17:49 +0000 (10:17 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 30 Jan 2017 09:17:49 +0000 (10:17 +0100)
icedtea8.spec

index a75868a3340fd5fa925e7756118612da2406f89c..e99ede5f661e7207ad2391ac0a7429c1491f41f9 100644 (file)
@@ -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
This page took 0.105506 seconds and 4 git commands to generate.