Name: suanPan Version: latest Release: %autorelease Summary: An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework License: GPL-3.0+ URL: https://github.com/TLCFEM/suanPan Source: suanPan-ef4d8b9d.tar.gz VCS: git+https://github.com/TLCFEM/suanPan.git#ef4d8b9dde9ed1770cad223ba5e8a59961e1e2df: 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 %setup -T -b 0 -q -n suanPan 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