bart for centos 7
@@ -9,7 +9,12 @@ URL: https://mrirecon.github.io/bart
VCS: {{{ git_dir_vcs }}}
Source0: {{{ git_dir_pack source_name=bart dir_name=bart }}}
+%if 0%{?rhel} == 07
+BuildRequires: fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel, devtoolset-7-toolchain, devtoolset-7-libatomic-devel
+%else
BuildRequires: gcc, make, fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel
+%endif
+
Requires: fftw, lapack, openblas, atlas, libpng
%description
@@ -25,6 +30,12 @@ The Berkeley Advanced Reconstruction Toolbox (BART) is a free and open-source im
echo {{{ bart_git_version }}} > version.txt
%build
+%if 0%{?rhel} == 07
+
+. /opt/rh/devtoolset-7/enable
+
+%endif
+
make PARALLEL=1
%install
