Properly check for valgrind support
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
d5b5ccd611
commit
570c35d332
16
petsc.spec
16
petsc.spec
@ -186,8 +186,10 @@
|
|||||||
--with-sundials-include=%{_includedir} \\\
|
--with-sundials-include=%{_includedir} \\\
|
||||||
--with-sundials-lib="-lsundials_nvecserial -lsundials_cvode" \\\
|
--with-sundials-lib="-lsundials_nvecserial -lsundials_cvode" \\\
|
||||||
%endif \
|
%endif \
|
||||||
--with-pthread=1 \\\
|
%ifarch %{valgrind_arches} \
|
||||||
--with-valgrind=1
|
--with-valgrind=1 \\\
|
||||||
|
%endif \
|
||||||
|
--with-pthread=1
|
||||||
|
|
||||||
%global petsc_mpibuild_options \\\
|
%global petsc_mpibuild_options \\\
|
||||||
%if %{with debug} \
|
%if %{with debug} \
|
||||||
@ -285,8 +287,10 @@
|
|||||||
--with-fftw-include= \\\
|
--with-fftw-include= \\\
|
||||||
--with-fftw-lib="-L$MPI_LIB -lfftw3_mpi -lfftw3" \\\
|
--with-fftw-lib="-L$MPI_LIB -lfftw3_mpi -lfftw3" \\\
|
||||||
%endif \
|
%endif \
|
||||||
--with-pthread=1 \\\
|
%ifarch %{valgrind_arches} \
|
||||||
--with-valgrind=1
|
--with-valgrind=1 \\\
|
||||||
|
%endif \
|
||||||
|
--with-pthread=1
|
||||||
|
|
||||||
%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}')
|
%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}')
|
||||||
%global openmpiversion %(rpm -qi openmpi | awk -F': ' '/Version/ {print $2}')
|
%global openmpiversion %(rpm -qi openmpi | awk -F': ' '/Version/ {print $2}')
|
||||||
@ -296,7 +300,7 @@
|
|||||||
Name: petsc
|
Name: petsc
|
||||||
Summary: Portable Extensible Toolkit for Scientific Computation
|
Summary: Portable Extensible Toolkit for Scientific Computation
|
||||||
Version: %{releasever}.1
|
Version: %{releasever}.1
|
||||||
Release: %autorelease
|
Release: %autorelease -e 0.riscv64
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://petsc.org/
|
URL: https://petsc.org/
|
||||||
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
|
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
|
||||||
@ -356,7 +360,9 @@ BuildRequires: tcsh
|
|||||||
BuildRequires: tetgen-devel
|
BuildRequires: tetgen-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: xorg-x11-server-Xvfb
|
BuildRequires: xorg-x11-server-Xvfb
|
||||||
|
%ifarch %{valgrind_arches}
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
||||||
|
Loading…
Reference in New Issue
Block a user