[packages/plplot] - export JAVA_HOME to find cmake to find JNI components

qboosh qboosh at pld-linux.org
Sun Jul 29 12:36:04 CEST 2012


commit 17b23e6c0880f1790643f92851056f8282eac947
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 29 12:36:11 2012 +0200

    - export JAVA_HOME to find cmake to find JNI components

 plplot.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plplot.spec b/plplot.spec
index a8ebeda..2a7d0f3 100644
--- a/plplot.spec
+++ b/plplot.spec
@@ -625,6 +625,8 @@ Biblioteka PLplot - przykłady do wiązania dla Pythona.
 %build
 mkdir build
 cd build
+# required for cmake to find JNI headers/libs when lib64 is in use
+%{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
 %cmake .. \
 %if %{with ada}


More information about the pld-cvs-commit mailing list