diff --git a/java-atk-wrapper.spec b/java-atk-wrapper.spec index d03a7dd..4a811a4 100644 --- a/java-atk-wrapper.spec +++ b/java-atk-wrapper.spec @@ -70,7 +70,13 @@ cp %{SOURCE3} . %build chmod +x autogen.sh ./autogen.sh -%configure JAVACFLAGS="-source 1.7 -target 1.7" --libdir=%{_libdir}/%{name} +%configure \ + JAVACFLAGS="-source 1.7 -target 1.7" \ + JDK_SRC=/etc/alternatives/java_sdk \ + JAVA_HOME=/etc/alternatives/jre \ + --libdir=%{_libdir}/%{name} \ + --without-jdk-auto-detect \ + make %{?_smp_mflags} %install