_libdir doesn't exapnd to lib64?

I’m getting the following error in the BuildService:

/usr/lib/rpm/brp-lib64-linux
sf@suse.de: if you find problems with this script, drop me a note
indidrivermain.o: file format elf64-x86-64
eventloop.o: file format elf64-x86-64
indicom.o: file format elf64-x86-64
base64.o: file format elf64-x86-64
lilxml.o: file format elf64-x86-64
/var/tmp/indi_0.6-build/usr/lib/libindi.a: should be in */lib64
error: Bad exit status from /var/tmp/rpm-tmp.58058 (%install)

However, in my SPEC file, I have the following:

%{_bindir}/indi*
%{_libdir}/lib*.a

But it seems _libdir doesn’t expand to /usr/lib64 on 64bit systems. Am I missing something?

yes, the software you are compiling does not obey %{_libdir}

try one of this alternatives

a) Fix the autofoo stuff to obey %{_libdir} this is the recommended way.

b) try this in the spec file


%build
%{suse_update_config -f}
autoreconf -fiv
%configure 
.....