|
|
|
@ -65,12 +65,15 @@ do
|
|
|
|
|
[ "$(file $file | awk '{print $2}')" = ELF ] && rm $file || :
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Change optimization level
|
|
|
|
|
sed -i.bak '/NOOPTS/d' make.inc.in
|
|
|
|
|
sed -e 's|-O0|-O2|g' -i SRC/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir -p build; cd build
|
|
|
|
|
|
|
|
|
|
# Do not use bundled CBLAS code
|
|
|
|
|
%cmake3 -Denable_blaslib:BOOL=OFF ..
|
|
|
|
|
|
|
|
|
|
%cmake3 -Denable_blaslib:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release ..
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|