Fix build failure on systems that do not define %{__isa_bits}.
Also fix mixed use of spaces and tabs. Thank you, rpmlint.
This commit is contained in:
parent
31e34f55e7
commit
cf5e266a7a
4
stp.spec
4
stp.spec
|
@ -75,11 +75,11 @@ make %{?_smp_mflags}
|
|||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# Fix up the libdir install on 64-bit targets
|
||||
%if %{__isa_bits} == 64
|
||||
if [ "%{_libdir}" != "%{_prefix}/lib" ]; then
|
||||
mkdir %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/libstp.so %{buildroot}%{_libdir}
|
||||
%endif
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
|
|
Loading…
Reference in New Issue