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
20
stp.spec
20
stp.spec
|
@ -1,9 +1,9 @@
|
|||
# Upstream occasionally releases a subversion snapshot, but no "regular"
|
||||
# releases since the 0.1 release.
|
||||
%global gitdate 20140619
|
||||
%global gittag 44de620db195122e812e81940c8edef947c18765
|
||||
%global shorttag %(cut -b -7 <<< %{gittag})
|
||||
%global user stp
|
||||
%global gitdate 20140619
|
||||
%global gittag 44de620db195122e812e81940c8edef947c18765
|
||||
%global shorttag %(cut -b -7 <<< %{gittag})
|
||||
%global user stp
|
||||
|
||||
Name: stp
|
||||
Version: 0.1
|
||||
|
@ -26,7 +26,7 @@ BuildRequires: boost-devel
|
|||
BuildRequires: cmake
|
||||
BuildRequires: cryptominisat-devel
|
||||
BuildRequires: flex
|
||||
BuildRequires: python2
|
||||
BuildRequires: python2
|
||||
|
||||
%description
|
||||
STP (Simple Theorem Prover) is a constraint solver (also referred to as
|
||||
|
@ -75,11 +75,11 @@ make %{?_smp_mflags}
|
|||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# Fix up the libdir install on 64-bit targets
|
||||
%if %{__isa_bits} == 64
|
||||
mkdir %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/libstp.so %{buildroot}%{_libdir}
|
||||
%endif
|
||||
if [ "%{_libdir}" != "%{_prefix}/lib" ]; then
|
||||
mkdir %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}%{_libdir}
|
||||
mv %{buildroot}%{_prefix}/lib/libstp.so %{buildroot}%{_libdir}
|
||||
fi
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
|
|
Loading…
Reference in New Issue