Name: bart Version: 0.9.00 Release: 20260205git185c585%{?dist} Epoch: 2 Summary: tools for computational magnetic resonance imaging License: BSD URL: https://mrirecon.codeberg.page/ VCS: git+https://github.com/mrirecon/bart.git#185c5854383b0c7c2ff564a25dac886084fe238d: Source0: bart BuildRequires: gcc, make, fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel, chrpath Requires: fftw, lapack, openblas, atlas, libpng %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 programming library and a toolbox of command-line programs. The library provides common operations on multi-dimensional arrays, Fourier and wavelet transforms, as well as generic implementations of iterative optimization algorithms. The command-line tools provide direct access to basic operations on multi-dimensional arrays as well as efficient implementations of many calibration and reconstruction algorithms for parallel imaging and compressed sensing. # I suppose the binary shouldn't contain debug symbols by default %global debug_package %{nil} %prep %setup -T -b 0 -q -n bart # transfer .git-version information from rpkg-macro-expansion time to build time echo v0.9.00 > version.txt %build echo -e -n "OPENBLAS=1\nCPPFLAGS=-Wall -Wextra -I/usr/include/openblas\n" > Makefiles/Makefile.local export LDFLAGS="$LDFLAGS -Wl,--no-as-needed" make PARALLEL=1 make doc/commands.txt # strip rpath from bart exe, as Fedora dislikes it chrpath -d bart %install rm -rf $RPM_BUILD_ROOT export make PREFIX=usr DESTDIR=%{buildroot} install mkdir -p %{buildroot}/usr/share/bash-completion/completions/ install scripts/bart_completion.sh %{buildroot}/usr/share/bash-completion/completions/ install -D doc/bart.1 %{buildroot}/%{_mandir}/man1/bart.1 %files /usr/bin/bart %license LICENSE %{_mandir}/man1/bart.1* %doc /usr/share/doc/bart/README /usr/share/doc/bart/commands.txt /usr/share/doc/bart/phantom.txt /usr/share/doc/bart/resize.txt /usr/share/doc/bart/webasm.txt /usr/share/doc/bart/random-numbers.txt /usr/share/doc/bart/bitmasks.txt /usr/share/doc/bart/dimensions-and-strides.txt /usr/share/doc/bart/tensorflow.txt /usr/share/doc/bart/references.txt /usr/share/doc/bart/applications.txt /usr/share/doc/bart/sequence.txt /usr/share/doc/bart/debugging.txt /usr/share/doc/bart/fft.txt /usr/share/doc/bart/distributed-architectures.txt /usr/share/doc/bart/building.txt /usr/share/doc/bart/performance.txt /usr/share/doc/bart/pytorch.txt /usr/share/doc/bart/style.txt /usr/share/doc/bart/pics.txt /usr/share/bash-completion/completions/bart_completion.sh %changelog