forked from mrirecon/bart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libbart-devel.spec
44 lines (34 loc) · 1.27 KB
/
libbart-devel.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: libbart-devel
Version: {{{ bart_git_version_dots }}}
%define build_timestamp %{lua: print(os.date("%Y%m%d"))}
Release: %{build_timestamp}%{?dist}
Summary: Development files for BART
License: BSD
URL: https://mrirecon.github.io/bart
VCS: {{{ git_dir_vcs }}}
Source0: {{{ git_dir_pack source_name=libbart-devel dir_name=libbart-devel }}}
BuildRequires: gcc, make, fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel
%description
The Berkeley Advanced Reconstruction Toolbox (BART) is a free and open-source image-reconstruction framework for Computational Magnetic Resonance Imaging.
This package provides headers and static libraries.
# I suppose the binary shouldn't contain debug symbols by default
%global debug_package %{nil}
%prep
{{{ git_dir_setup_macro dir_name=libbart-devel }}}
%build
make PARALLEL=1
%install
rm -rf $RPM_BUILD_ROOT
while read line; do
src=$(cut -d' ' -f1 <<<"$line")
dst=%{buildroot}/$(cut -d' ' -f2 <<<"$line")
install -d "$dst"
install "$src" "$dst"
done < libbart-dev.install
# ^ Contents of https://salsa.debian.org/med-team/bart/-/blob/master/debian/libbart-dev.install
%files
/usr/include/bart/
/usr/lib/bart/
%license LICENSE
%changelog
{{{ git_dir_changelog }}}