redirecting installation to /usr/lib64

getting forward with the fingerprint-gui port…it compiles but does not install correctly: It want to install into /usr/lib, but OBS looks for it in /usr/lib64

%qmake5 QMAKE_CXXFLAGS="-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" PREFIX=/usr LIB=%{_libdir} 

%{_libdir} is architecture-dependent, in this case it points to /usr/lib64
The idea was to add LIBEXEC=%{_libdir}, but this then installs into /usr/usr/lib64, which is not a good idea either.
Is there a (standard) trick how to point the installation path to the right direction?
Package in problem is

/lib is for 32 bit
/lib64 is for 64 bit

You can link to the libs…

That could be an option, but is there no way to directly install to lib64?

You have another source… 1.09 vs 1.07

Setting up your build directory:
As User:

$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

All files have to move to the SOURCES directory, only the spec file have to move to the SPECS directory.

In the SPECS directory you have to:

rpmbuild -ba --noclean xxxxx.spec

and you can see in the BUILDROOT which files were build on which location…

BUILD= for the extracted and patched sources
BUILDROOT= the directory where the the libs/programms are stored after installing in your tree

I have build it from Fedora:

But you have to modify the spec-file:

--- /fingerprint-gui-1.09-3.1.src/fingerprint-gui.spec	2018-11-22 02:58:57.000000000 +0100
+++ /SPECS/fingerprint-gui.spec	2020-05-08 11:30:31.958213846 +0200
@@ -9,7 +9,7 @@
 Source1:        fingerprint-gui.svg
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
-BuildRequires:  qt4-devel
+BuildRequires:  qt-devel
 BuildRequires:  pam-devel
 BuildRequires:  pkgconfig(libfakekey)
 BuildRequires:  pkgconfig(libfprint)
@@ -35,7 +35,7 @@
 export QTDIR=%{_libexecdir}/
-qmake-qt4 QMAKE_CFLAGS="%{optflags}" QMAKE_CXXFLAGS="%{optflags}" PREFIX=%{_prefix} LIB=%{_lib} LIBEXEC=%{_lib}
+qmake QMAKE_CFLAGS="%{optflags}" QMAKE_CXXFLAGS="%{optflags}" PREFIX=%{_prefix} LIB=%{_lib} LIBEXEC=%{_lib}
 make %{?_smp_mflags}

Thank you, that was not the solution, but pointed into the right direction!
instead of
did the trick!