File suse-use-libdir.patch of Package javapackages-tools

---
 configure           |    2 ++
 etc/macros.jpackage |   12 ++++++------
 2 files changed, 8 insertions(+), 6 deletions(-)

Index: javapackages-2.0.1/etc/macros.jpackage
===================================================================
--- javapackages-2.0.1.orig/etc/macros.jpackage
+++ javapackages-2.0.1/etc/macros.jpackage
@@ -13,22 +13,22 @@
 #
 # Root directory where all Java VMs/SDK/JREs are installed.
 #
-%_jvmdir        %{_prefix}/lib/jvm
+%_jvmdir        %{_libdir}/jvm
 
 #
 # Root directory where all Java VMs/SDK/JREs expose their jars
 #
-%_jvmjardir     %{_prefix}/lib/jvm-exports
+%_jvmjardir     %{_libdir}/jvm-exports
 
 #
 # Root directory for all Java VM/SDK/JRE's private things.
 #
-%_jvmprivdir    %{_prefix}/lib/jvm-private
+%_jvmprivdir    %{_libdir}/jvm-private
 
 #
 # Root directory for all architecture dependent parts of Java VM/SDK/JRE's
 #
-%_jvmlibdir     %{_prefix}/lib/jvm
+%_jvmlibdir     %{_libdir}/jvm
 
 #
 # Root directory for all architecture independent parts of Java VM/SDK/JRE's
@@ -43,7 +43,7 @@
 #
 # Root directory for all common architecture dependent parts of Java VM/SDK/JRE's
 #
-%_jvmcommonlibdir %{_prefix}/lib/jvm-commmon
+%_jvmcommonlibdir %{_libdir}/jvm-commmon
 
 #
 # Root directory for all common architecture independent parts of Java VM/SDK/JRE's
@@ -81,7 +81,7 @@
 #   - jars for Java standard x.y.z (usually symlinks to  %{_jnidir}-ext)
 # To simplify things only %{_jnidir} is defined.
 #
-%_jnidir        %{_prefix}/lib/java
+%_jnidir        %{_libdir}/java
 
 #
 # Root directory where all javadoc is installed. Also already in RH macros.
Index: javapackages-2.0.1/configure
===================================================================
--- javapackages-2.0.1.orig/configure
+++ javapackages-2.0.1/configure
@@ -39,6 +39,7 @@ mandir
 prefix
 sysconfdir
 rpmconfigdir
+libdir
 
 javadir
 javadocdir
@@ -68,6 +69,7 @@ test -z "${datadir}" && datadir="${prefi
 test -z "${mandir}" && mandir="${datadir}/man"
 test -z "${sysconfdir}" && sysconfdir="${prefix}/etc"
 test -z "${rpmconfigdir}" && rpmconfigdir="${prefix}/lib/rpm"
+test -z "${libdir}" && libdir="${prefix}/lib"
 
 eval $(sed -n 's/^%_\('"$vars_re"'\)\ *\(.*\)$/\1="\2"/;T;s/%{_\(.*}\)/${\1/;p' etc/macros.jpackage)