Name: getdp Version: 2.11.1 Release: 2%{?dist} Summary: General Environment for the Treatment of Discrete Problems License: GPLv2+ URL: http://www.geuz.org/getdp/ Source0: http://www.geuz.org/getdp/src/%{name}-%{version}-source.tgz BuildRequires: cmake BuildRequires: gcc-c++ gcc-gfortran BuildRequires: arpack-devel BuildRequires: gmsh-devel BuildRequires: gsl-devel BuildRequires: lapack-devel blas-devel BuildRequires: python2-devel # GPLv3+, some fortran files in contrib/pewe, some git version Provides: bundled(pewe) %description GetDP is an open source finite element solver using mixed elements to discretize de Rham-type complexes in one, two and three dimensions. The main feature of GetDP is the closeness between the input data defining discrete problems (written by the user in ASCII data files) and the symbolic mathematical expressions of these problems. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{version}-source # remove bundled libs find contrib/ -mindepth 1 -maxdepth 1 -type d -not \( -name pewe \) -prune -exec rm -vrf {} ';' sed -i -e "/set(GETDP_LIB lib)/s/lib/%{_lib}/" CMakeLists.txt # Force python 2.7 # https://geuz.org/trac/getdp/ticket/32 sed -i -e "/PythonLibs/s/)/ 2.7 REQUIRED)/" CMakeLists.txt rm -rf build/ mkdir build/ %build pushd build/ %cmake ../ \ -DENABLE_ARPACK=ON \ -DENABLE_BLAS_LAPACK=ON \ -DENABLE_FORTRAN=ON \ -DENABLE_GMSH=ON \ -DENABLE_GSL=ON \ -DENABLE_LEGACY=ON \ -DENABLE_MULTIHARMONIC=ON \ -DENABLE_NR=OFF \ -DENABLE_NX=OFF \ -DENABLE_OCTAVE=OFF \ -DENABLE_OPENMP=ON \ -DENABLE_PETSC=OFF \ -DENABLE_PYTHON=ON \ -DENABLE_SLEPC=OFF \ -DENABLE_SPARSKIT=OFF \ -DENABLE_ZITSOL=OFF \ -DENABLE_BUILD_SHARED=ON \ -DENABLE_BUILD_DYNAMIC=ON %make_build popd %install pushd build/ %make_install popd # remove auto-installed docs rm -rf %{buildroot}%{_datadir}/doc/%{name} %check pushd build/ ctest -VV \ %ifarch %{arm} || : %else ; %endif popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE.txt CREDITS.txt %{_bindir}/%{name} %{_libdir}/libGetDP.so.* %{_mandir}/man1/%{name}.1* %files devel %doc demos %{_includedir}/%{name}/ %{_libdir}/libGetDP.so %changelog * Thu Jun 15 2017 Sandro Mani - 2.11.1-2 - Rebuild (gmsh) * Mon May 29 2017 Sandro Mani - 2.11.1-1 - Update to 2.11.1 (RHBZ #1450617) * Mon May 15 2017 Fedora Release Engineering - 2.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Thu May 11 2017 Sandro Mani - 2.11.0-3 - Rebuild (gmsh) * Sun Feb 05 2017 Kalev Lember - 2.11.0-2 - Rebuilt for libgfortran soname bump * Wed Jan 04 2017 Igor Gnatenko - 2.11.0-1 - Update to 2.11.0 (RHBZ #1409937) * Sun Dec 11 2016 Igor Gnatenko - 2.10.0-3 - Rebuild for gmsh 2.15 * Sun Nov 13 2016 Peter Robinson 2.10.0-2 - Rebuild (gmsh) * Mon Oct 10 2016 Igor Gnatenko - 2.10.0-1 - Update to 2.10.0 (RHBZ #1383102) * Sun Aug 28 2016 Igor Gnatenko - 2.9.2-1 - Update to 2.9.2 * Tue Jul 12 2016 Igor Gnatenko - 2.9.0-1 - Update to 2.9.0 (RHBZ #1354698) * Sun Mar 20 2016 Igor Gnatenko - 2.8.0-1 - Update to 2.8.0 (RHBZ #1315030) * Tue Feb 23 2016 Orion Poplawski - 2.7.0-3 - Rebuild for gsl 2.1 * Wed Feb 03 2016 Fedora Release Engineering - 2.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Nov 28 2015 Igor Gnatenko - 2.7.0-1 - Initial package