-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsuanPan.spec.rpkg
More file actions
56 lines (49 loc) · 1.5 KB
/
suanPan.spec.rpkg
File metadata and controls
56 lines (49 loc) · 1.5 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
Name: {{{ git_dir_name }}}
Version: 4.1.0
Release: %autorelease
Summary: An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
License: GPL-3.0+
URL: https://github.com/TLCFEM/suanPan
Source: {{{ git_dir_pack }}}
VCS: {{{ git_dir_vcs }}}
BuildRequires: cmake
BuildRequires: gcc-c++
%if 0%{?fedora}
BuildRequires: gcc-gfortran
BuildRequires: hdf5-static
BuildRequires: openblas-devel
BuildRequires: tbb-devel
%elif 0%{?rhel} || 0%{?centos}
BuildRequires: gcc-gfortran
BuildRequires: hdf5-devel
BuildRequires: openblas-devel
BuildRequires: tbb-devel
%elif 0%{?suse_version}
BuildRequires: gcc-fortran
BuildRequires: hdf5-devel
BuildRequires: openblas_openmp-devel-static
BuildRequires: tbb-devel
%endif
%description
suanPan is a finite element method (FEM) simulation platform for applications in fields such as solid mechanics and civil/structural/seismic engineering.
suanPan is written in modern high-quality C++ code and is targeted to provide an efficient, concise, flexible and reliable FEM simulation platform.
%define _lto_cflags %{nil}
%prep
{{{ git_dir_setup_macro }}}
ls -halt && rm -rf Libs
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSP_ENABLE_SYSLIB=ON \
-DSP_BUILD_PARALLEL=ON \
-DSP_ENABLE_AVX2=OFF
%cmake_build
%install
rm -rf %{buildroot}
%cmake_install --component Main
%files
%{_bindir}/suanPan
%changelog
{{{ git_dir_changelog }}}