Name: bart Version: 1.0.00 Release: 1%{?dist} Summary: The Berkeley Advanced Reconstruction Toolbox (BART) License: BSD-3-Clause URL: https://github.com/mrirecon/bart Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: fftw-devel BuildRequires: openblas-devel BuildRequires: lapack-devel BuildRequires: libpng-devel BuildRequires: execstack # The Makefile says it requires make 4.0 or newer. Fedora has it. %description The Berkeley Advanced Reconstruction Toolbox (BART) is a free and open-source image-reconstruction framework for Computational Magnetic Resonance Imaging. It consists of a library and a toolbox with many command-line algorithms for MRI reconstruction, such as SENSE, POCS-enhanced SPIRiT, and compressed sensing. %prep %autosetup -n %{name}-%{version} # Remove hardcoded rpath and -L/usr/lib which causes issues on Fedora sed -i 's|BLAS_L := -Wl,-rpath $(BLAS_BASE)/lib -L$(BLAS_BASE)/lib|BLAS_L :=|' Makefile sed -i 's|FFTW_L := -Wl,-rpath $(FFTW_BASE)/lib -L$(FFTW_BASE)/lib -lfftw3f|FFTW_L := -lfftw3f|' Makefile # Include assert.h in nested.h for NOEXEC_STACK support sed -i '1i #include ' src/misc/nested.h %build # BART's Makefile uses PREFIX for install, but not necessarily for build. # We can use Makefile.local to configure. cat > Makefile.local < - 1.0.00-1 - Initial BART package