2022-08-23 16:10:24 +00:00
|
|
|
# Broken package_note links in rules and variables files
|
|
|
|
# Disabling this functionality
|
|
|
|
%undefine _package_note_file
|
|
|
|
|
2023-02-22 21:14:19 +00:00
|
|
|
# Disable LTO
|
|
|
|
# undefined-non-weak-symbol libpetsc.so.3.17.4_glibcxx_assert_fail
|
|
|
|
%undefine _ld_as_needed
|
2023-02-23 18:47:21 +00:00
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
# Testing libpetsc ?
|
2023-07-06 20:06:40 +00:00
|
|
|
%bcond_with check
|
2020-12-13 10:33:12 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# Python binding and its testing
|
2021-09-20 09:47:42 +00:00
|
|
|
%bcond_without python
|
2023-07-06 20:06:40 +00:00
|
|
|
%bcond_with pycheck
|
2020-12-13 10:33:12 +00:00
|
|
|
%global pymodule_name petsc4py
|
2021-06-20 12:40:54 +00:00
|
|
|
%global pymodule_version %{version}
|
2020-12-13 10:33:12 +00:00
|
|
|
#
|
2016-10-24 17:59:33 +00:00
|
|
|
|
2016-10-25 13:05:57 +00:00
|
|
|
## Debug builds ?
|
2020-12-13 19:58:02 +00:00
|
|
|
%bcond_with debug
|
2016-10-24 17:59:33 +00:00
|
|
|
#
|
|
|
|
|
2023-01-03 16:57:10 +00:00
|
|
|
## Fix Epoch in EPEL9
|
|
|
|
%if 0%{?el9}
|
|
|
|
%global epoch 1
|
|
|
|
%else
|
|
|
|
%global epoch 0
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
|
2021-09-20 09:47:42 +00:00
|
|
|
%bcond_without mpich
|
2019-07-23 08:30:26 +00:00
|
|
|
%bcond_without openmpi
|
2019-07-22 21:25:05 +00:00
|
|
|
|
|
|
|
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
|
2021-09-20 09:47:42 +00:00
|
|
|
%bcond_without arch64
|
2019-07-22 21:25:05 +00:00
|
|
|
%else
|
|
|
|
%bcond_with arch64
|
2018-08-03 11:03:11 +00:00
|
|
|
%endif
|
2018-03-31 18:18:33 +00:00
|
|
|
|
2019-07-22 21:25:05 +00:00
|
|
|
%bcond_without blas
|
|
|
|
%if %{with arch64}
|
|
|
|
%bcond_without blas64
|
|
|
|
%endif
|
2017-10-01 12:29:45 +00:00
|
|
|
|
2022-01-13 14:00:04 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-08-13 18:37:54 +00:00
|
|
|
%global blaslib flexiblas
|
|
|
|
%global blasvar %{nil}
|
2021-11-06 14:51:37 +00:00
|
|
|
%else
|
|
|
|
%global blaslib openblas
|
|
|
|
%global blasvar %{nil}
|
|
|
|
%endif
|
2020-08-13 18:37:54 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
#
|
|
|
|
## PETSC looks incompatible with serial MUMPS
|
2020-04-10 15:49:10 +00:00
|
|
|
%bcond_without mumps_serial
|
2016-10-24 17:59:33 +00:00
|
|
|
#
|
2020-12-13 10:33:12 +00:00
|
|
|
## Sundials needs mpi ?
|
2018-02-04 14:31:55 +00:00
|
|
|
%bcond_with sundials_serial
|
|
|
|
#
|
2016-10-24 17:59:33 +00:00
|
|
|
%bcond_without superlu
|
|
|
|
#
|
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
## Suitesparse
|
2021-04-18 17:20:01 +00:00
|
|
|
## This version of PETSc needs the 5.6.0 at least
|
2020-04-10 15:49:10 +00:00
|
|
|
%bcond_with suitesparse
|
|
|
|
%bcond_with suitesparse64
|
|
|
|
#
|
|
|
|
|
2023-02-24 19:08:07 +00:00
|
|
|
## SuperLUDIST needs parmetis
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
%bcond_without superludist >= 6.3.0
|
2023-04-13 21:32:21 +00:00
|
|
|
%bcond_with cgns
|
2020-12-05 10:12:49 +00:00
|
|
|
%bcond_without hdf5
|
2023-02-24 19:08:07 +00:00
|
|
|
%else
|
|
|
|
# Needed superludist >= 6.3.0
|
|
|
|
%bcond_with superludist
|
|
|
|
## hdf5 is required by cgns
|
|
|
|
## See rhbz#1904164
|
|
|
|
%bcond_with cgns
|
|
|
|
%bcond_with hdf5
|
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%bcond_with superlumt
|
|
|
|
#
|
|
|
|
|
2021-06-10 20:30:56 +00:00
|
|
|
## Tetgen
|
|
|
|
%bcond_with tetgen
|
|
|
|
#
|
|
|
|
|
2023-02-24 19:08:07 +00:00
|
|
|
## Metis
|
|
|
|
%bcond_without metis
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} < 8
|
|
|
|
%bcond_without metis64
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
# 'scalapack' is required by 'MUMPS'
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with openmpi}
|
|
|
|
%bcond_without mpi
|
2019-06-27 16:59:46 +00:00
|
|
|
# PETSC-3.* is incompatible with Sundials 3+
|
2017-11-09 16:40:45 +00:00
|
|
|
%bcond_with sundials
|
2016-10-24 17:59:33 +00:00
|
|
|
%bcond_without scalapack
|
|
|
|
%bcond_without mumps
|
2016-10-25 13:05:57 +00:00
|
|
|
%bcond_without ptscotch
|
2016-10-24 17:59:33 +00:00
|
|
|
%bcond_without hypre
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with mpich}
|
|
|
|
%bcond_without mpi
|
2020-04-10 15:49:10 +00:00
|
|
|
# PETSC-3.* is incompatible with Sundials 3+
|
2017-11-09 16:40:45 +00:00
|
|
|
%bcond_with sundials
|
2016-10-24 17:59:33 +00:00
|
|
|
%bcond_without scalapack
|
|
|
|
%bcond_without mumps
|
2016-10-25 13:05:57 +00:00
|
|
|
%bcond_without ptscotch
|
2016-10-24 17:59:33 +00:00
|
|
|
%bcond_without hypre
|
|
|
|
%endif
|
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
%global petsc_build_options \\\
|
|
|
|
%if %{with debug} \
|
|
|
|
CFLAGS="-O0 -g -Wl,-z,now -fPIC" CXXFLAGS="-O0 -g -Wl,-z,now -fPIC" FFLAGS="-O0 -g -Wl,-z,now -fPIC -I%{_libdir}/gfortran/modules" COPTFLAGS="-O0 -g -Wl,-z,now" \\\
|
|
|
|
CXXOPTFLAGS="-O0 -g -Wl,-z,now" FOPTFLAGS="-O0 -g -Wl,-z,now -I%{_libdir}/gfortran/modules" LDFLAGS="$LDFLAGS -fPIC" \\\
|
2020-06-04 10:05:41 +00:00
|
|
|
FCFLAGS="-O0 -g -Wl,-z,now -fPIC -I%{_libdir}/gfortran/modules" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%else \
|
|
|
|
CFLAGS="$CFLAGS -O3 -fPIC" CXXFLAGS="$CXXFLAGS -O3 -fPIC" FFLAGS="$FFLAGS -O3 -fPIC" LDFLAGS="$LDFLAGS -fPIC" \\\
|
2021-10-16 15:15:19 +00:00
|
|
|
COPTFLAGS="$CFLAGS -O3" CXXOPTFLAGS="$CXXFLAGS -O3" FOPTFLAGS="$FFLAGS -O3" \\\
|
2020-06-04 10:05:41 +00:00
|
|
|
FCFLAGS="$FFLAGS -O3 -fPIC" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif \
|
|
|
|
--CC_LINKER_FLAGS="$LDFLAGS" \\\
|
|
|
|
--FC_LINKER_FLAGS="$LDFLAGS -lgfortran" \\\
|
|
|
|
--with-default-arch=0 --with-make=1 \\\
|
|
|
|
--with-cmake-exec=%{_bindir}/cmake3 --with-ctest-exec=%{_bindir}/ctest3 \\\
|
|
|
|
--with-single-library=1 \\\
|
|
|
|
--with-precision=double \\\
|
|
|
|
--with-petsc-arch=%{_arch} \\\
|
|
|
|
--with-clanguage=C \\\
|
|
|
|
--with-shared-libraries=1 \\\
|
|
|
|
--with-fortran-interfaces=1 \\\
|
|
|
|
--with-windows-graphics=0 \\\
|
|
|
|
--CC=gcc \\\
|
|
|
|
--FC=gfortran \\\
|
|
|
|
--CXX=g++ \\\
|
|
|
|
--with-shared-ld=ld \\\
|
|
|
|
--with-pic=1 \\\
|
|
|
|
--with-clib-autodetect=0 \\\
|
|
|
|
--with-fortranlib-autodetect=0 \\\
|
|
|
|
--with-threadsafety=0 --with-log=1 \\\
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-mkl_sparse=0 \\\
|
|
|
|
--with-mkl_sparse_optimize=0 \\\
|
|
|
|
--with-mkl_cpardiso=0 \\\
|
|
|
|
--with-mkl_pardiso=0 \\\
|
2021-10-16 15:15:19 +00:00
|
|
|
--with-python=0 \\\
|
|
|
|
--with-cxxlib-autodetect=1 \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with debug} \
|
|
|
|
--with-debugging=1 \\\
|
|
|
|
%else \
|
|
|
|
--with-debugging=0 \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with mumps_serial} \
|
|
|
|
--with-mumps-serial=1 \\\
|
|
|
|
%endif \
|
|
|
|
--with-mpi=0 \\\
|
|
|
|
%if %{with hdf5} \
|
|
|
|
--with-hdf5=1 \\\
|
|
|
|
--with-hdf5-include= \\\
|
|
|
|
--with-hdf5-lib="-lhdf5 -lhdf5_hl" \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with cgns} \
|
2023-04-13 21:32:21 +00:00
|
|
|
--with-cgns=0 \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif \
|
|
|
|
--with-x=1 \\\
|
|
|
|
--with-openmp=0 \\\
|
|
|
|
--with-hwloc=0 \\\
|
|
|
|
--with-ssl=0 \\\
|
|
|
|
%if %{with sundials_serial} \
|
|
|
|
--with-sundials=1 \\\
|
|
|
|
--with-sundials-include=%{_includedir} \\\
|
|
|
|
--with-sundials-lib="-lsundials_nvecserial -lsundials_cvode" \\\
|
|
|
|
%endif \
|
|
|
|
--with-pthread=1 \\\
|
|
|
|
--with-valgrind=1
|
|
|
|
|
|
|
|
%global petsc_mpibuild_options \\\
|
|
|
|
%if %{with debug} \
|
|
|
|
CFLAGS="-O0 -g -Wl,-z,now -fPIC" CXXFLAGS="-O0 -g -Wl,-z,now -fPIC" FFLAGS="-O0 -g -Wl,-z,now -fPIC -I${MPI_FORTRAN_MOD_DIR}" COPTFLAGS="-O0 -g -Wl,-z,now" \\\
|
|
|
|
CXXOPTFLAGS="-O0 -g -Wl,-z,now" FOPTFLAGS="-O0 -g -Wl,-z,now -I${MPI_FORTRAN_MOD_DIR}" LDFLAGS="$LDFLAGS -fPIC" \\\
|
2020-06-04 10:05:41 +00:00
|
|
|
FCFLAGS="-O0 -g -Wl,-z,now -fPIC -I${MPI_FORTRAN_MOD_DIR}" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%else \
|
|
|
|
CFLAGS="$CFLAGS -O3 -fPIC" CXXFLAGS="$CXXFLAGS -O3 -fPIC" FFLAGS="$FFLAGS -O3 -fPIC" LDFLAGS="$LDFLAGS -fPIC" \\\
|
2021-10-16 15:15:19 +00:00
|
|
|
COPTFLAGS="$CFLAGS -O3" CXXOPTFLAGS="$CXXFLAGS -O3" FOPTFLAGS="$FFLAGS -O3" \\\
|
2020-06-04 10:05:41 +00:00
|
|
|
FCFLAGS="$FFLAGS -O3 -fPIC" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif \
|
|
|
|
--CC_LINKER_FLAGS="$LDFLAGS" \\\
|
|
|
|
--with-default-arch=0 --with-make=1 \\\
|
|
|
|
--with-cmake-exec=%{_bindir}/cmake3 --with-ctest-exec=%{_bindir}/ctest3 \\\
|
|
|
|
--with-single-library=1 \\\
|
|
|
|
--with-precision=double \\\
|
|
|
|
--with-petsc-arch=%{_arch} \\\
|
|
|
|
--with-clanguage=C \\\
|
|
|
|
--with-shared-libraries=1 \\\
|
|
|
|
--with-fortran-interfaces=1 \\\
|
|
|
|
--with-windows-graphics=0 \\\
|
2020-12-05 10:12:49 +00:00
|
|
|
--with-cc=${MPI_BIN}/mpicc \\\
|
|
|
|
--with-cxx=${MPI_BIN}/mpicxx \\\
|
|
|
|
--with-fc=${MPI_BIN}/mpif90 \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
--with-shared-ld=ld \\\
|
|
|
|
--with-pic=1 \\\
|
|
|
|
--with-clib-autodetect=0 \\\
|
|
|
|
--with-fortranlib-autodetect=0 \\\
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-mkl_sparse=0 \\\
|
|
|
|
--with-mkl_sparse_optimize=0 \\\
|
|
|
|
--with-mkl_cpardiso=0 \\\
|
|
|
|
--with-mkl_pardiso=0 \\\
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with python} \
|
|
|
|
--with-python=1 \\\
|
|
|
|
--with-python-exec=%{__python3} \\\
|
2021-04-18 17:20:01 +00:00
|
|
|
--with-petsc4py=1 \\\
|
|
|
|
--with-petsc4py-test-np="`/usr/bin/getconf _NPROCESSORS_ONLN`" \\\
|
2020-12-13 10:33:12 +00:00
|
|
|
%endif \
|
2021-10-16 15:15:19 +00:00
|
|
|
--with-cxxlib-autodetect=1 \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
--with-threadsafety=0 --with-log=1 \\\
|
|
|
|
%if %{with debug} \
|
|
|
|
--with-debugging=1 \\\
|
2021-06-20 12:40:54 +00:00
|
|
|
--with-mpiexec="${MPI_BIN}/mpiexec -n `/usr/bin/getconf _NPROCESSORS_ONLN` --mca btl_base_warn_component_unused 0 --mca orte_base_help_aggregate 0" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%else \
|
|
|
|
--with-debugging=0 \\\
|
2021-06-20 12:40:54 +00:00
|
|
|
--with-mpiexec="${MPI_BIN}/mpiexec -n `/usr/bin/getconf _NPROCESSORS_ONLN` --mca btl_base_warn_component_unused 0" \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif \
|
|
|
|
%if %{with scalapack} \
|
|
|
|
--with-scalapack=1 \\\
|
|
|
|
--with-scalapack-lib="-L$MPI_LIB -lscalapack" \\\
|
|
|
|
--with-scalapck-include="" \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with mpi} \
|
|
|
|
--with-mpi=1 \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with cgns} \
|
|
|
|
--with-cgns=1 \\\
|
2023-04-13 21:32:21 +00:00
|
|
|
--with-cgns-include=%{_includedir} \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
--with-cgns-lib=-lcgns \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with hdf5} \
|
|
|
|
--with-hdf5=1 \\\
|
|
|
|
--with-hdf5-include= \\\
|
|
|
|
--with-hdf5-lib="-L$MPI_LIB -lhdf5 -lhdf5_hl" \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with ptscotch} \
|
|
|
|
--with-ptscotch=1 \\\
|
2023-04-13 21:32:21 +00:00
|
|
|
--with-ptscotch-include=$MPI_INCLUDE/scotch \\\
|
2020-04-10 15:49:10 +00:00
|
|
|
--with-ptscotch-lib="-L$MPI_LIB -lptscotch -lscotch -lptscotcherr -lscotcherr" \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with mumps} \
|
|
|
|
--with-mumps=1 \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with sundials} \
|
|
|
|
--with-sundials=1 \\\
|
|
|
|
--with-sundials-include=$MPI_INCLUDE \\\
|
|
|
|
--with-sundials-lib=-lsundials_nvecparallel \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with superludist} \
|
|
|
|
--with-superlu_dist=1 \\\
|
|
|
|
--with-superlu_dist-include=$MPI_INCLUDE/superlu_dist \\\
|
|
|
|
--with-superlu_dist-lib=-lsuperlu_dist \\\
|
|
|
|
%endif \
|
|
|
|
--with-x=1 \\\
|
|
|
|
--with-openmp=0 \\\
|
|
|
|
--with-hwloc=0 \\\
|
|
|
|
--with-ssl=0 \\\
|
|
|
|
%if %{with hypre} \
|
|
|
|
--with-hypre=1 \\\
|
|
|
|
--with-hypre-include=$MPI_INCLUDE/hypre \\\
|
|
|
|
--with-hypre-lib="-L$MPI_LIB -lHYPRE" \\\
|
|
|
|
%endif \
|
|
|
|
%if %{with fftw} \
|
|
|
|
--with-fftw=1 \\\
|
|
|
|
--with-fftw-include= \\\
|
|
|
|
--with-fftw-lib="-L$MPI_LIB -lfftw3_mpi -lfftw3" \\\
|
|
|
|
%endif \
|
|
|
|
--with-pthread=1 \\\
|
|
|
|
--with-valgrind=1
|
2021-02-03 11:27:18 +00:00
|
|
|
|
|
|
|
%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}')
|
|
|
|
%global openmpiversion %(rpm -qi openmpi | awk -F': ' '/Version/ {print $2}')
|
2021-09-12 13:11:54 +00:00
|
|
|
%global majorver 3
|
2023-04-13 21:32:21 +00:00
|
|
|
%global releasever 3.18
|
2017-11-09 18:31:48 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
Name: petsc
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation
|
2023-04-13 21:32:21 +00:00
|
|
|
Version: %{releasever}.5
|
2023-05-22 18:25:20 +00:00
|
|
|
Release: %autorelease
|
2016-10-24 17:59:33 +00:00
|
|
|
License: BSD
|
2021-06-20 12:40:54 +00:00
|
|
|
URL: https://petsc.org/
|
2021-04-18 17:20:01 +00:00
|
|
|
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc4py-%{version}.tar.gz
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
## Remove rpath flags
|
2019-10-18 19:38:36 +00:00
|
|
|
Patch0: %{name}-3.11-no-rpath.patch
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
## Rename library name for 64-bit integer package
|
|
|
|
Patch1: %{name}-lib64.patch
|
2023-04-17 19:46:04 +00:00
|
|
|
Patch2: %{name}-3.18.5-fix_make_compatibility.patch
|
2023-04-13 21:32:21 +00:00
|
|
|
Patch3: %{name}-3.18.0-fix_mumps_includes.patch
|
|
|
|
Patch4: %{name}-3.18.0-fix_metis64.patch
|
2021-04-18 17:20:01 +00:00
|
|
|
Patch5: %{name}-3.15.0-fix_sundials_version.patch
|
2020-11-20 11:35:13 +00:00
|
|
|
Patch6: %{name}-3.14.1-fix_pkgconfig_file.patch
|
2022-04-23 14:51:40 +00:00
|
|
|
Patch7: %{name}-3.17.0-avoid_fake_MKL_detection.patch
|
2023-06-21 19:25:32 +00:00
|
|
|
Patch8: %{name}-3.18.5-fix_python312_compatibility.patch
|
2020-06-05 20:26:14 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with superlu}
|
2017-10-29 14:16:40 +00:00
|
|
|
BuildRequires: SuperLU-devel >= 5.2.0
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%if %{with superlumt}
|
|
|
|
BuildRequires: SuperLUMT-devel
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with mumps_serial}
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: MUMPS-devel >= 5.2.1
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with metis}
|
|
|
|
BuildRequires: metis-devel >= 5.1.0
|
2017-11-22 11:52:18 +00:00
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with suitesparse}
|
|
|
|
BuildRequires: suitesparse-devel >= 5.6.0
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%if %{with blas}
|
2020-08-13 18:37:54 +00:00
|
|
|
BuildRequires: %{blaslib}-devel
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2021-06-10 20:30:56 +00:00
|
|
|
BuildRequires: chrpath
|
2020-12-05 10:12:49 +00:00
|
|
|
BuildRequires: gcc, gcc-c++, cmake3
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
BuildRequires: make
|
2016-10-24 17:59:33 +00:00
|
|
|
BuildRequires: libX11-devel
|
2019-09-12 02:44:42 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-06-24 08:59:06 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2022-09-20 19:31:34 +00:00
|
|
|
BuildRequires: pcre2-devel
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with hdf5}
|
|
|
|
BuildRequires: hdf5-devel
|
|
|
|
%endif
|
|
|
|
%if %{with cgns}
|
|
|
|
BuildRequires: cgnslib-devel
|
|
|
|
BuildRequires: hdf5-devel
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
BuildRequires: tcsh
|
2021-06-10 20:30:56 +00:00
|
|
|
%if %{with tetgen}
|
|
|
|
BuildRequires: tetgen-devel
|
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
2021-06-10 20:30:56 +00:00
|
|
|
BuildRequires: valgrind-devel
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
|
|
|
and routines for the scalable (parallel) solution of scientific applications
|
|
|
|
modeled by partial differential equations.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (developer files)
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2021-05-21 08:59:37 +00:00
|
|
|
Requires: gcc-gfortran%{?_isa}
|
2016-10-24 17:59:33 +00:00
|
|
|
%description devel
|
|
|
|
Portable Extensible Toolkit for Scientific Computation (developer files).
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (documentation files)
|
2019-09-12 02:44:42 +00:00
|
|
|
BuildRequires: python3-sphinx
|
2016-10-24 17:59:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
Portable Extensible Toolkit for Scientific Computation.
|
|
|
|
PDF and HTML documentation files.
|
|
|
|
|
|
|
|
%if %{with arch64}
|
|
|
|
%package -n petsc64
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (64bit INTEGER)
|
2020-11-20 11:35:13 +00:00
|
|
|
%if %{with metis64}
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: metis64-devel >= 5.1.0
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%description -n petsc64
|
|
|
|
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
|
|
|
and routines for the scalable (parallel) solution of scientific applications
|
|
|
|
modeled by partial differential equations (64bit INTEGER).
|
|
|
|
|
|
|
|
%package -n petsc64-devel
|
|
|
|
Requires: %{name}64%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: gcc-gfortran%{?_isa}
|
2023-01-03 16:57:10 +00:00
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (64bit INTEGER)
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%description -n petsc64-devel
|
|
|
|
Portable Extensible Toolkit for Scientific Computation (developer files)
|
|
|
|
(64bit INTEGER).
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
#########
|
|
|
|
%if %{with openmpi}
|
|
|
|
%package openmpi
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (OpenMPI)
|
|
|
|
BuildRequires: openmpi-devel
|
|
|
|
%if %{with hdf5}
|
|
|
|
BuildRequires: hdf5-openmpi-devel
|
|
|
|
%endif
|
|
|
|
%if %{with cgns}
|
|
|
|
BuildRequires: cgnslib-devel
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: hdf5-openmpi-devel
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%if %{with ptscotch}
|
|
|
|
BuildRequires: ptscotch-openmpi-devel
|
|
|
|
%endif
|
|
|
|
%if %{with scalapack}
|
|
|
|
BuildRequires: scalapack-openmpi-devel
|
2023-06-21 19:25:32 +00:00
|
|
|
%if 0%{?rhel}
|
2016-10-24 17:59:33 +00:00
|
|
|
BuildRequires: blacs-openmpi-devel
|
|
|
|
%endif
|
2020-01-05 20:56:57 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with mumps}
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: MUMPS-openmpi-devel >= 5.2.1
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%if %{with sundials}
|
|
|
|
BuildRequires: sundials-openmpi-devel
|
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%if %{with superludist}
|
2022-04-23 14:51:40 +00:00
|
|
|
BuildRequires: superlu_dist-openmpi-devel >= 6.3.0
|
2017-08-13 13:02:16 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with fftw}
|
|
|
|
BuildRequires: fftw-devel
|
|
|
|
BuildRequires: fftw-openmpi-devel
|
|
|
|
%endif
|
|
|
|
%if %{with hypre}
|
|
|
|
BuildRequires: hypre-openmpi-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description openmpi
|
|
|
|
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
|
|
|
and routines for the scalable (parallel) solution of scientific applications
|
|
|
|
modeled by partial differential equations.
|
|
|
|
|
|
|
|
%package openmpi-devel
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (OpenMPI)
|
|
|
|
Requires: %{name}-openmpi%{?_isa} = %{version}-%{release}
|
2023-01-03 16:57:10 +00:00
|
|
|
Requires: openmpi-devel%{?_isa} = %{epoch}:%{openmpiversion}
|
2023-01-14 20:01:53 +00:00
|
|
|
Requires: hdf5-openmpi-devel%{?_isa}
|
2016-10-24 17:59:33 +00:00
|
|
|
%description openmpi-devel
|
|
|
|
Portable Extensible Toolkit for Scientific Computation (developer files).
|
|
|
|
%endif
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
%package -n python%{python3_pkgversion}-%{name}-openmpi
|
|
|
|
Summary: Python3 bindings for OpenMPI PETSc
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-openmpi}
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: hdf5-openmpi-devel
|
|
|
|
BuildRequires: scalapack-openmpi-devel
|
|
|
|
BuildRequires: ptscotch-openmpi-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-numpy, python%{python3_pkgversion}-Cython
|
|
|
|
Requires: petsc-openmpi%{?_isa}
|
|
|
|
Requires: hdf5-openmpi%{?_isa}
|
|
|
|
Requires: scalapack-openmpi%{?_isa}
|
|
|
|
Requires: ptscotch-openmpi%{?_isa}
|
2023-01-03 16:57:10 +00:00
|
|
|
Requires: openmpi%{?_isa} = %{epoch}:%{openmpiversion}
|
2020-12-13 10:33:12 +00:00
|
|
|
Requires: MUMPS-openmpi%{?_isa}
|
|
|
|
|
|
|
|
Obsoletes: %{pymodule_name}-openmpi < 0:3.14.0-3
|
|
|
|
Obsoletes: python%{python3_pkgversion}-%{pymodule_name}-openmpi < 0:3.14.0-3
|
|
|
|
Provides: python%{python3_pkgversion}-%{pymodule_name}-openmpi = 0:%{pymodule_version}-%{release}
|
|
|
|
Provides: python-%{pymodule_name}-openmpi = 0:%{pymodule_version}-%{release}
|
|
|
|
Provides: %{pymodule_name}-openmpi = 0:%{pymodule_version}-%{release}
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{name}-openmpi
|
|
|
|
This package provides Python3 bindings for OpenMPI PETSc,
|
|
|
|
the Portable, Extensible Toolkit for Scientific Computation.
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{name}-mpich
|
|
|
|
Summary: Python3 bindings for MPICH PETSc
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-mpich}
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: hdf5-mpich-devel
|
|
|
|
BuildRequires: scalapack-mpich-devel
|
|
|
|
BuildRequires: ptscotch-mpich-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-numpy, python%{python3_pkgversion}-Cython
|
|
|
|
Requires: petsc-mpich%{?_isa}
|
|
|
|
Requires: hdf5-mpich%{?_isa}
|
|
|
|
Requires: scalapack-openmpi%{?_isa}
|
|
|
|
Requires: ptscotch-mpich%{?_isa}
|
2021-02-03 11:27:18 +00:00
|
|
|
Requires: mpich%{?_isa} = 0:%{mpichversion}
|
2020-12-13 10:33:12 +00:00
|
|
|
Requires: MUMPS-mpich%{?_isa}
|
|
|
|
|
|
|
|
Obsoletes: %{pymodule_name}-mpich < 0:3.14.0-3
|
|
|
|
Obsoletes: python%{python3_pkgversion}-%{pymodule_name}-mpich < 0:3.14.0-3
|
|
|
|
Provides: python%{python3_pkgversion}-%{pymodule_name}-mpich = 0:%{pymodule_version}-%{release}
|
|
|
|
Provides: python-%{pymodule_name}-mpich = 0:%{pymodule_version}-%{release}
|
|
|
|
Provides: %{pymodule_name}-mpich = 0:%{pymodule_version}-%{release}
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{name}-mpich
|
|
|
|
This package provides Python3 bindings for MPICH PETSc,
|
|
|
|
the Portable, Extensible Toolkit for Scientific Computation.
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
######
|
|
|
|
###############################################################################
|
|
|
|
######
|
|
|
|
%if %{with mpich}
|
|
|
|
%package mpich
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (MPICH)
|
|
|
|
BuildRequires: mpich-devel
|
|
|
|
%if %{with hdf5}
|
|
|
|
BuildRequires: hdf5-mpich-devel
|
|
|
|
%endif
|
|
|
|
%if %{with cgns}
|
|
|
|
BuildRequires: cgnslib-devel
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: hdf5-mpich-devel
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%if %{with ptscotch}
|
|
|
|
BuildRequires: ptscotch-mpich-devel
|
|
|
|
%endif
|
|
|
|
%if %{with scalapack}
|
|
|
|
BuildRequires: scalapack-mpich-devel
|
2023-04-17 19:46:04 +00:00
|
|
|
%if 0%{?rhel}
|
2016-10-24 17:59:33 +00:00
|
|
|
BuildRequires: blacs-mpich-devel
|
|
|
|
%endif
|
2020-01-05 20:56:57 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with mumps}
|
2020-04-10 15:49:10 +00:00
|
|
|
BuildRequires: MUMPS-mpich-devel >= 5.2.1
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%if %{with sundials}
|
|
|
|
BuildRequires: sundials-mpich-devel
|
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%if %{with superludist}
|
2022-04-23 14:51:40 +00:00
|
|
|
BuildRequires: superlu_dist-mpich-devel >= 6.3.0
|
2017-08-13 13:02:16 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with hypre}
|
|
|
|
BuildRequires: hypre-mpich-devel
|
|
|
|
%endif
|
|
|
|
%if %{with fftw}
|
|
|
|
BuildRequires: fftw-devel
|
|
|
|
BuildRequires: fftw-mpich-devel
|
|
|
|
%endif
|
2021-02-03 11:27:18 +00:00
|
|
|
Requires: mpich%{?_isa} = 0:%{mpichversion}
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%description mpich
|
|
|
|
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
|
|
|
and routines for the scalable (parallel) solution of scientific applications
|
|
|
|
modeled by partial differential equations.
|
|
|
|
|
|
|
|
%package mpich-devel
|
|
|
|
Summary: Portable Extensible Toolkit for Scientific Computation (MPICH)
|
|
|
|
Requires: %{name}-mpich%{?_isa} = %{version}-%{release}
|
2023-01-14 20:01:53 +00:00
|
|
|
Requires: mpich-devel%{?_isa} = 0:%{mpichversion}
|
|
|
|
Requires: hdf5-mpich-devel%{?_isa}
|
2016-10-24 17:59:33 +00:00
|
|
|
%description mpich-devel
|
|
|
|
Portable Extensible Toolkit for Scientific Computation (developer files).
|
|
|
|
%endif
|
|
|
|
######
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
%prep
|
2020-06-03 12:06:40 +00:00
|
|
|
%setup -qc
|
2022-06-20 19:46:20 +00:00
|
|
|
|
2021-04-18 17:20:01 +00:00
|
|
|
%if %{with python}
|
|
|
|
%setup -q -T -D -a 1
|
|
|
|
cp -a petsc4py-%{version}/* %{name}-%{version}/
|
|
|
|
rm -rf %{name}-%{version}/*.egg-info
|
|
|
|
rm -rf petsc4py-%{version}
|
2023-06-21 19:25:32 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
for i in `find . -name 'setup.py' -o -name 'configure' -o -name '*.py'`; do
|
|
|
|
%py3_shebang_fix $i
|
|
|
|
done
|
|
|
|
%endif
|
2021-04-18 17:20:01 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
2023-06-21 19:25:32 +00:00
|
|
|
%patch -P 2 -p1 -b .backup
|
|
|
|
%patch -P 7 -p1 -b .backup
|
2020-06-05 20:26:14 +00:00
|
|
|
|
2023-06-21 19:25:32 +00:00
|
|
|
%if 0%{?python3_version_nodots} >= 312
|
|
|
|
%patch -P 8 -p1 -b .backup
|
2018-08-03 10:56:01 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
|
2022-06-20 19:46:20 +00:00
|
|
|
# Remove pregenerated Cython C sources
|
|
|
|
pushd %{name}-%{version}
|
2022-06-20 20:00:54 +00:00
|
|
|
rm $(grep -rl '/\* Generated by Cython')
|
2022-06-20 19:46:20 +00:00
|
|
|
popd
|
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with arch64}
|
|
|
|
cp -a %{name}-%{version} build64
|
|
|
|
pushd build64
|
2023-06-21 19:25:32 +00:00
|
|
|
%patch -P 1 -p0
|
2023-02-24 19:08:07 +00:00
|
|
|
%if %{with metis64}
|
2023-06-21 19:25:32 +00:00
|
|
|
%patch -P 4 -p1 -b .metis64
|
2023-02-24 19:08:07 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2018-07-15 18:23:38 +00:00
|
|
|
pushd %{name}-%{version}
|
2023-06-21 19:25:32 +00:00
|
|
|
%patch -P 0 -p0 -b .backup
|
|
|
|
%patch -P 5 -p1 -b .backup
|
|
|
|
%patch -P 6 -p1 -b .backup
|
2018-07-15 18:23:38 +00:00
|
|
|
popd
|
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with openmpi}
|
|
|
|
cp -a %{name}-%{version} buildopenmpi_dir
|
|
|
|
%endif
|
|
|
|
%if %{with mpich}
|
|
|
|
cp -a %{name}-%{version} buildmpich_dir
|
|
|
|
%endif
|
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
# Do NOT move up this patch
|
|
|
|
pushd %{name}-%{version}
|
2023-06-21 19:25:32 +00:00
|
|
|
%patch -P 3 -p1 -b .backup
|
2020-04-10 15:49:10 +00:00
|
|
|
popd
|
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%build
|
|
|
|
pushd %{name}-%{version}
|
2019-07-22 21:25:05 +00:00
|
|
|
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
|
2020-04-10 15:49:10 +00:00
|
|
|
%{petsc_build_options} \
|
2023-02-24 19:08:07 +00:00
|
|
|
--with-64-bit-indices=0 \
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with blas}
|
2022-01-13 14:00:04 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
|
|
|
|
%else
|
|
|
|
--with-openblas=1 --with-openblas-lib=-l%{blaslib}%{blasvar} --with-openblas-include=%{_includedir}/%{blaslib} \
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2023-02-24 19:08:07 +00:00
|
|
|
%if %{with metis}
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-metis=1 \
|
2023-02-24 19:08:07 +00:00
|
|
|
%endif
|
2021-06-10 20:30:56 +00:00
|
|
|
%if %{with tetgen}
|
|
|
|
--with-tetgen=1 \
|
|
|
|
--with-tetgen-lib=-ltetgen \
|
|
|
|
%endif
|
2020-11-20 11:35:13 +00:00
|
|
|
%if %{with superlu}
|
|
|
|
--with-superlu=1 \
|
|
|
|
--with-superlu-include=%{_includedir}/SuperLU \
|
|
|
|
--with-superlu-lib=-lsuperlu \
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with suitesparse}
|
2016-10-24 17:59:33 +00:00
|
|
|
--with-suitesparse=1 \
|
|
|
|
--with-suitesparse-include=%{_includedir}/suitesparse \
|
2020-04-10 15:49:10 +00:00
|
|
|
--with-suitesparse-lib="-lumfpack -lklu -lcholmod -lamd"
|
2017-11-22 11:52:18 +00:00
|
|
|
%endif
|
2020-06-04 10:05:41 +00:00
|
|
|
#cat config.log && exit 1
|
2019-07-22 21:25:05 +00:00
|
|
|
##
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
|
|
|
make \
|
|
|
|
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/%{name}-%{version} PETSC_ARCH=%{_arch} all
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if %{with arch64}
|
|
|
|
pushd build64
|
2019-07-22 21:25:05 +00:00
|
|
|
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
|
2020-04-10 15:49:10 +00:00
|
|
|
%{petsc_build_options} \
|
2016-10-24 17:59:33 +00:00
|
|
|
--with-64-bit-indices=1 \
|
2023-02-24 19:08:07 +00:00
|
|
|
%if %{with metis64}
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-metis=1 \
|
2023-02-24 19:08:07 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with blas64}
|
2022-01-13 14:00:04 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar}64 --with-blaslapack-include=%{_includedir}/%{blaslib} \
|
|
|
|
%else
|
|
|
|
--with-openblas=1 --with-openblas-lib=-l%{blaslib}%{blasvar}64 --with-openblas-include=%{_includedir}/%{blaslib} \
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with suitesparse64}
|
|
|
|
--with-suitesparse=1 \
|
|
|
|
--with-suitesparse-include=%{_includedir}/suitesparse \
|
|
|
|
--with-suitesparse-lib="-lumfpack64 -lklu64 -lcholmod64 -lamd64"
|
|
|
|
%endif
|
|
|
|
##
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
|
|
|
make \
|
|
|
|
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/build64 PETSC_ARCH=%{_arch} all
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with openmpi}
|
|
|
|
pushd buildopenmpi_dir
|
2019-07-22 21:25:05 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_openmpi_load}
|
2022-04-23 14:51:40 +00:00
|
|
|
export CC=mpicc
|
|
|
|
export CXX=mpic++
|
|
|
|
export FC=mpifort
|
|
|
|
%configure --with-cc=mpicc --with-cxx=mpic++ --with-fc=mpifort \
|
2020-04-10 15:49:10 +00:00
|
|
|
--FC_LINKER_FLAGS="$LDFLAGS -lgfortran -lmpi_mpifh" \
|
2020-12-05 10:12:49 +00:00
|
|
|
--LIBS=" -lmpi -lmpi_mpifh" \
|
2020-04-10 15:49:10 +00:00
|
|
|
%{petsc_mpibuild_options} \
|
2023-02-24 19:08:07 +00:00
|
|
|
%if %{with metis}
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-metis=1 \
|
2023-02-23 20:23:09 +00:00
|
|
|
%endif
|
2023-04-18 16:30:00 +00:00
|
|
|
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
|
2023-02-24 19:08:07 +00:00
|
|
|
--with-64-bit-indices=0 \
|
2023-04-18 16:30:00 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with blas}
|
2022-01-13 14:00:04 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
|
|
|
|
%else
|
|
|
|
--with-openblas=1 --with-openblas-lib=-l%{blaslib}%{blasvar} --with-openblas-include=%{_includedir}/%{blaslib} \
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2018-01-28 21:38:08 +00:00
|
|
|
#cat config.log
|
|
|
|
#exit 1
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
|
|
|
make \
|
|
|
|
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/buildopenmpi_dir PETSC_ARCH=%{_arch} all
|
2021-04-18 17:20:01 +00:00
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with python}
|
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%py3_build
|
|
|
|
unset PETSC_ARCH
|
|
|
|
unset PETSC_DIR
|
|
|
|
%endif
|
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_openmpi_unload}
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with mpich}
|
|
|
|
pushd buildmpich_dir
|
2020-01-05 20:56:57 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_mpich_load}
|
2022-04-23 14:51:40 +00:00
|
|
|
export CC=mpicc
|
|
|
|
export CXX=mpic++
|
|
|
|
export FC=mpifort
|
|
|
|
%configure --with-cc=mpicc --with-cxx=mpic++ --with-fc=mpifort \
|
2020-12-05 10:12:49 +00:00
|
|
|
--FC_LINKER_FLAGS="$LDFLAGS -lgfortran -lfmpich -lmpichf90" \
|
|
|
|
--LIBS=" -lmpich -lfmpich -lmpichf90" \
|
2020-04-10 15:49:10 +00:00
|
|
|
%{petsc_mpibuild_options} \
|
2023-02-24 19:08:07 +00:00
|
|
|
%if %{with metis}
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-metis=1 \
|
2023-02-23 20:23:09 +00:00
|
|
|
%endif
|
2023-04-18 16:30:00 +00:00
|
|
|
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
|
2023-02-24 19:08:07 +00:00
|
|
|
--with-64-bit-indices=0 \
|
2023-04-18 16:30:00 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with blas}
|
2022-01-13 14:00:04 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
2020-11-20 11:35:13 +00:00
|
|
|
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
|
|
|
|
%else
|
|
|
|
--with-openblas=1 --with-openblas-lib=-l%{blaslib}%{blasvar} --with-openblas-include=%{_includedir}/%{blaslib} \
|
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
2018-01-28 21:38:08 +00:00
|
|
|
#cat config.log
|
|
|
|
#exit 1
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
|
|
|
make \
|
|
|
|
V=1 MAKE_NP=$RPM_BUILD_NCPUS PETSC_DIR=%{_builddir}/%{name}-%{version}/buildmpich_dir PETSC_ARCH=%{_arch} all
|
2021-04-18 17:20:01 +00:00
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with python}
|
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%py3_build
|
|
|
|
unset PETSC_ARCH
|
|
|
|
unset PETSC_DIR
|
|
|
|
%endif
|
2021-04-18 17:20:01 +00:00
|
|
|
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_mpich_unload}
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd %{name}-%{version}
|
2020-12-13 10:33:12 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_fmoddir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}/conf
|
|
|
|
|
|
|
|
install -pm 755 %{_arch}/lib/libpetsc.* %{buildroot}%{_libdir}
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}%{_libdir}/libpetsc.so
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}%{_libdir}/libpetsc.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}%{_libdir}/libpetsc.so.%{majorver}
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/include/*.h %{buildroot}%{_includedir}/%{name}/
|
|
|
|
install -pm 644 %{_arch}/include/*.mod %{buildroot}%{_fmoddir}/%{name}/
|
|
|
|
cp -a include/* %{buildroot}%{_includedir}/%{name}/
|
|
|
|
|
|
|
|
cp -a %{_arch}/lib/pkgconfig %{buildroot}%{_libdir}/
|
2023-01-14 20:01:53 +00:00
|
|
|
sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc.pc
|
2023-01-15 17:40:24 +00:00
|
|
|
ln -fs %{_libdir}/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/petsc.pc
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscrules %{buildroot}%{_libdir}/%{name}/conf/
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscvariables %{buildroot}%{_libdir}/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/rules %{buildroot}%{_libdir}/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/variables %{buildroot}%{_libdir}/%{name}/conf/
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/%{name}-%{version}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/%{name}-%{version}/%{_arch}/|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-L%{_prefix}/%{_arch}/lib|-L%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-I%{_prefix}/%{_arch}/include|-I%{_includedir}/%{name} -I%{_fmoddir}/%{name}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
2023-02-21 21:26:53 +00:00
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}/conf/variables
|
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}/conf/rules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscrules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%if %{with arch64}
|
|
|
|
pushd build64
|
2020-12-13 10:33:12 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}/%{name}64
|
|
|
|
mkdir -p %{buildroot}%{_fmoddir}/%{name}64
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}64/conf
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
|
|
|
|
install -pm 755 %{_arch}/lib/libpetsc64.* %{buildroot}%{_libdir}
|
|
|
|
ln -sf libpetsc64.so.%{version} %{buildroot}%{_libdir}/libpetsc64.so
|
|
|
|
ln -sf libpetsc64.so.%{version} %{buildroot}%{_libdir}/libpetsc64.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
ln -sf libpetsc64.so.%{version} %{buildroot}%{_libdir}/libpetsc64.so.%{majorver}
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/include/*.h %{buildroot}%{_includedir}/%{name}64/
|
|
|
|
install -pm 644 %{_arch}/include/*.mod %{buildroot}%{_fmoddir}/%{name}64/
|
|
|
|
cp -a include/* %{buildroot}%{_includedir}/%{name}64/
|
|
|
|
|
|
|
|
cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
|
|
|
|
cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
|
2023-01-14 20:01:53 +00:00
|
|
|
sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
|
|
|
|
sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscrules %{buildroot}%{_libdir}/%{name}64/conf/
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscvariables %{buildroot}%{_libdir}/%{name}64/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/rules %{buildroot}%{_libdir}/%{name}64/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/variables %{buildroot}%{_libdir}/%{name}64/conf/
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/build64|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/build64/%{_arch}/|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
|
|
|
|
sed -e 's|-L%{_prefix}/%{_arch}/lib|-L%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
|
|
|
|
sed -e 's|-I%{_prefix}/%{_arch}/include/|-I%{_includedir}/%{name}64 -I%{_fmoddir}/%{name}64|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
|
2023-02-21 21:26:53 +00:00
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/variables
|
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/rules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscrules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with openmpi}
|
|
|
|
pushd buildopenmpi_dir
|
2017-08-13 13:02:16 +00:00
|
|
|
%{_openmpi_load}
|
2020-12-13 10:33:12 +00:00
|
|
|
mkdir -p %{buildroot}$MPI_LIB %{buildroot}$MPI_INCLUDE/%{name}
|
|
|
|
mkdir -p %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}
|
|
|
|
mkdir -p %{buildroot}$MPI_LIB/%{name}/conf
|
|
|
|
|
|
|
|
install -pm 755 %{_arch}/lib/libpetsc.* %{buildroot}$MPI_LIB
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{majorver}
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
|
|
|
|
install -pm 644 %{_arch}/include/*.mod %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}/
|
|
|
|
cp -a include/* %{buildroot}$MPI_INCLUDE/%{name}/
|
|
|
|
|
|
|
|
cp -a %{_arch}/lib/pkgconfig %{buildroot}$MPI_LIB/
|
|
|
|
sed -e 's|-I${includedir}/petsc|-I%{_includedir}/openmpi-%{_arch}/petsc|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
|
|
|
sed -e 's|-L${libdir}|-L%{_libdir}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
|
|
|
sed -e 's|ldflag_rpath=-L|ldflag_rpath=-L%{_libdir}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2021-06-10 20:30:56 +00:00
|
|
|
sed -e 's|-lpetsc|-lpetsc -lhdf5|' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2023-01-14 20:01:53 +00:00
|
|
|
sed -e 's|${prefix}/lib|${prefix}/%{_lib}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2023-01-15 17:40:24 +00:00
|
|
|
ln -fs $MPI_LIB/pkgconfig/PETSc.pc %{buildroot}$MPI_LIB/pkgconfig/petsc.pc
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscrules %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscvariables %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/rules %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/variables %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/buildopenmpi_dir|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/buildopenmpi_dir/%{_arch}/|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-L%{_prefix}/%{_arch}/lib|-L%{_libdir}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-I%{_prefix}/%{_arch}/include|-I%{_includedir}/openmpi-%{_arch}/%{name} -I%{_fmoddir}/openmpi/%{name}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
2023-02-22 18:03:57 +00:00
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/variables
|
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}/openmpi/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/rules
|
2023-02-21 21:26:53 +00:00
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscrules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%py3_install
|
|
|
|
|
|
|
|
# Install petsc4py files into MPI directories
|
|
|
|
%if 0%{?rhel}
|
|
|
|
MPI_PYTHON3_SITEARCH=%{python3_sitearch}/openmpi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}$MPI_PYTHON3_SITEARCH
|
|
|
|
cp -a %{buildroot}%{python3_sitearch}/%{pymodule_name} %{buildroot}$MPI_PYTHON3_SITEARCH/
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/%{pymodule_name}
|
|
|
|
cp -a %{buildroot}%{python3_sitearch}/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info %{buildroot}$MPI_PYTHON3_SITEARCH/
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info
|
2021-06-10 20:30:56 +00:00
|
|
|
|
|
|
|
chrpath -r %{_libdir}/openmpi/lib %{buildroot}$MPI_PYTHON3_SITEARCH/%{pymodule_name}/lib/%{_arch}/*.so
|
2020-12-13 10:33:12 +00:00
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%{_openmpi_unload}
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with mpich}
|
|
|
|
pushd buildmpich_dir
|
2017-08-13 13:02:16 +00:00
|
|
|
%{_mpich_load}
|
2020-12-13 10:33:12 +00:00
|
|
|
mkdir -p %{buildroot}$MPI_LIB %{buildroot}$MPI_INCLUDE/%{name}
|
|
|
|
mkdir -p %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}
|
|
|
|
mkdir -p %{buildroot}$MPI_LIB/%{name}/conf
|
|
|
|
|
|
|
|
install -pm 755 %{_arch}/lib/libpetsc.* %{buildroot}$MPI_LIB
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so
|
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{majorver}
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
install -pm 644 %{_arch}/include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
|
|
|
|
install -pm 644 %{_arch}/include/*.mod %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}/
|
|
|
|
cp -a include/* %{buildroot}$MPI_INCLUDE/%{name}/
|
|
|
|
|
|
|
|
cp -a %{_arch}/lib/pkgconfig %{buildroot}$MPI_LIB/
|
|
|
|
sed -e 's|-I${includedir}/petsc|-I%{_includedir}/mpich-%{_arch}/petsc|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
|
|
|
sed -e 's|-L${libdir}|-L%{_libdir}/mpich/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
|
|
|
sed -e 's|ldflag_rpath=-L|ldflag_rpath=-L%{_libdir}/mpich/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2021-06-10 20:30:56 +00:00
|
|
|
sed -e 's|-lpetsc|-lpetsc -lhdf5|' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2023-01-14 20:01:53 +00:00
|
|
|
sed -e 's|${prefix}/lib|${prefix}/%{_lib}/mpich/lib|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
|
2023-01-15 17:40:24 +00:00
|
|
|
ln -fs $MPI_LIB/pkgconfig/PETSc.pc %{buildroot}$MPI_LIB/pkgconfig/petsc.pc
|
2020-04-10 15:49:10 +00:00
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscrules %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 %{_arch}/lib/petsc/conf/petscvariables %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/rules %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
install -pm 644 lib/petsc/conf/variables %{buildroot}$MPI_LIB/%{name}/conf/
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/buildmpich_dir|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|%{_builddir}/%{name}-%{version}/buildmpich_dir/%{_arch}/|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-L%{_prefix}/%{_arch}/lib|-L%{_libdir}/mpich/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
|
|
|
sed -e 's|-I%{_prefix}/%{_arch}/include|-I%{_includedir}/mpich-%{_arch}/%{name} -I%{_fmoddir}/mpich/%{name}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
2023-02-22 18:03:57 +00:00
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}/mpich/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/variables
|
|
|
|
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}/mpich/lib|g' -i %{buildroot}$MPI_LIB/%{name}/conf/rules
|
2023-02-21 21:26:53 +00:00
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscrules
|
|
|
|
sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}$MPI_LIB/%{name}/conf/petscvariables
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%py3_install
|
2021-04-18 17:20:01 +00:00
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
# Install petsc4py files into MPI directories
|
|
|
|
%if 0%{?rhel}
|
|
|
|
MPI_PYTHON3_SITEARCH=%{python3_sitearch}/mpich
|
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}$MPI_PYTHON3_SITEARCH
|
|
|
|
cp -a %{buildroot}%{python3_sitearch}/%{pymodule_name} %{buildroot}$MPI_PYTHON3_SITEARCH/
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/%{pymodule_name}
|
|
|
|
cp -a %{buildroot}%{python3_sitearch}/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info %{buildroot}$MPI_PYTHON3_SITEARCH/
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info
|
2021-06-10 20:30:56 +00:00
|
|
|
|
|
|
|
chrpath -r %{_libdir}/mpich/lib %{buildroot}$MPI_PYTHON3_SITEARCH/%{pymodule_name}/lib/%{_arch}/*.so
|
2020-12-13 10:33:12 +00:00
|
|
|
%endif
|
2017-08-13 13:02:16 +00:00
|
|
|
%{_mpich_unload}
|
2016-10-24 17:59:33 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Move html documentation in _pkgdocdir
|
2020-12-13 10:33:12 +00:00
|
|
|
pushd %{buildroot}%{_includedir}
|
|
|
|
mkdir -p %{buildroot}%{_pkgdocdir}/headers
|
2016-10-24 17:59:33 +00:00
|
|
|
for i in `find . -name "*.h.html" -type f -print`; do
|
2020-12-13 10:33:12 +00:00
|
|
|
mv $i %{buildroot}%{_pkgdocdir}/headers
|
2016-10-24 17:59:33 +00:00
|
|
|
done
|
|
|
|
for i in `find . -name "*.html" -type f -print`; do
|
2020-12-13 10:33:12 +00:00
|
|
|
mv $i %{buildroot}%{_pkgdocdir}/headers
|
2016-10-24 17:59:33 +00:00
|
|
|
done
|
|
|
|
find . -name "Makefile" -type f -print | xargs /bin/rm -f
|
|
|
|
popd
|
2020-12-13 10:33:12 +00:00
|
|
|
cp -a %{name}-%{version}/docs/* %{buildroot}%{_pkgdocdir}
|
2016-10-24 17:59:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
%check
|
2020-12-05 10:12:49 +00:00
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with openmpi}
|
|
|
|
%{_openmpi_load}
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with check}
|
2021-06-10 20:30:56 +00:00
|
|
|
export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
|
2020-04-10 15:49:10 +00:00
|
|
|
export PETSC_DIR=%{_builddir}/%{name}-%{version}/buildopenmpi_dir
|
2016-10-24 17:59:33 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2020-04-10 15:49:10 +00:00
|
|
|
export MPI_INTERFACE_HOSTNAME=localhost
|
2020-12-05 10:12:49 +00:00
|
|
|
export OMPI_MCA_btl_base_warn_component_unused=0
|
2021-06-20 12:40:54 +00:00
|
|
|
export wPETSC_DIR=./
|
2021-09-12 17:12:57 +00:00
|
|
|
export DATAFILESPATH=%{_builddir}/%{name}-%{version}/buildopenmpi_dir/share/petsc/datafiles
|
2021-09-12 20:42:24 +00:00
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with debug}
|
|
|
|
export PETSCVALGRIND_OPTIONS=" --tool=memcheck --leak-check=yes --track-origins=yes"
|
2017-10-02 11:54:52 +00:00
|
|
|
export CFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export CXXFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
2020-12-05 10:12:49 +00:00
|
|
|
export FFLAGS="-O0 -g -Wl,-z,now -fPIC -I${MPI_FORTRAN_MOD_DIR}"
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C buildopenmpi_dir V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/buildopenmpi_dir/lib/petsc/bin/petscmpiexec -valgrind'
|
2018-10-15 08:42:48 +00:00
|
|
|
%else
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C buildopenmpi_dir V=1
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif
|
2020-12-13 10:33:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
%if %{with pycheck}
|
2021-04-18 17:20:01 +00:00
|
|
|
pushd buildopenmpi_dir
|
2020-12-13 10:33:12 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
MPI_PYTHON3_SITEARCH=%{python3_sitearch}/openmpi
|
|
|
|
%endif
|
2021-06-10 20:30:56 +00:00
|
|
|
export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
|
2020-12-13 10:33:12 +00:00
|
|
|
%{__python3} setup.py test
|
|
|
|
unset PETSC_ARCH
|
|
|
|
unset PETSC_DIR
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%{_openmpi_unload}
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with mpich}
|
|
|
|
%{_mpich_load}
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with check}
|
2020-04-10 15:49:10 +00:00
|
|
|
export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/buildmpich_dir/%{_arch}/lib
|
|
|
|
export PETSC_DIR=%{_builddir}/%{name}-%{version}/buildmpich_dir
|
2016-10-24 17:59:33 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2020-04-10 15:49:10 +00:00
|
|
|
export MPI_INTERFACE_HOSTNAME=localhost
|
2020-12-05 10:12:49 +00:00
|
|
|
export OMPI_MCA_btl_base_warn_component_unused=0
|
2021-06-20 12:40:54 +00:00
|
|
|
export wPETSC_DIR=./
|
2021-09-12 17:12:57 +00:00
|
|
|
export DATAFILESPATH=%{_builddir}/%{name}-%{version}/buildmpich_dir/share/petsc/datafiles
|
2021-09-12 20:42:24 +00:00
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
2016-10-24 17:59:33 +00:00
|
|
|
%if %{with debug}
|
|
|
|
export PETSCVALGRIND_OPTIONS=" --tool=memcheck --leak-check=yes --track-origins=yes"
|
2017-10-02 11:54:52 +00:00
|
|
|
export CFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export CXXFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
2020-12-05 10:12:49 +00:00
|
|
|
export FFLAGS="-O0 -g -Wl,-z,now -fPIC -I${MPI_FORTRAN_MOD_DIR}"
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C buildmpich_dir V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/buildmpich_dir/lib/petsc/bin/petscmpiexec -valgrind'
|
2018-10-15 08:42:48 +00:00
|
|
|
%else
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C buildmpich_dir V=1
|
2020-04-10 15:49:10 +00:00
|
|
|
%endif
|
2020-12-13 10:33:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
%if %{with pycheck}
|
2021-04-18 17:20:01 +00:00
|
|
|
pushd buildmpich_dir
|
2020-12-13 10:33:12 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-04-18 17:20:01 +00:00
|
|
|
export PETSC_DIR=./
|
2020-12-13 10:33:12 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
MPI_PYTHON3_SITEARCH=%{python3_sitearch}/mpich
|
|
|
|
%endif
|
2021-06-10 20:30:56 +00:00
|
|
|
export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
|
2020-12-13 10:33:12 +00:00
|
|
|
%{__python3} setup.py test
|
|
|
|
unset PETSC_ARCH
|
|
|
|
unset PETSC_DIR
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
2020-04-10 15:49:10 +00:00
|
|
|
%{_mpich_unload}
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
|
2020-12-13 10:33:12 +00:00
|
|
|
%if %{with check}
|
2020-04-10 15:49:10 +00:00
|
|
|
export LD_LIBRARY_PATH=%{_libdir}:%{_builddir}/%{name}-%{version}/%{name}-%{version}/%{_arch}/lib
|
|
|
|
export PETSC_DIR=%{_builddir}/%{name}-%{version}/%{name}-%{version}
|
2016-10-24 17:59:33 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-06-20 12:40:54 +00:00
|
|
|
export wPETSC_DIR=./
|
2021-09-12 17:12:57 +00:00
|
|
|
export DATAFILESPATH=%{_builddir}/%{name}-%{version}/%{name}-%{version}/share/petsc/datafiles
|
2021-09-12 20:42:24 +00:00
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
2018-10-15 08:42:48 +00:00
|
|
|
%if %{with debug}
|
|
|
|
export PETSCVALGRIND_OPTIONS=" --tool=memcheck --leak-check=yes --track-origins=yes"
|
2017-10-02 11:54:52 +00:00
|
|
|
export CFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export CXXFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export FFLAGS="-O0 -g -Wl,-z,now -fPIC -I%{_libdir}/gfortran/modules"
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C %{name}-%{version} V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/%{name}-%{version}/lib/petsc/bin/petscmpiexec -n $RPM_BUILD_NCPUS -valgrind'
|
2018-10-15 08:42:48 +00:00
|
|
|
%else
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C %{name}-%{version} V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/%{name}-%{version}/lib/petsc/bin/petscmpiexec -n $RPM_BUILD_NCPUS'
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
|
2020-04-10 15:49:10 +00:00
|
|
|
%if %{with arch64}
|
|
|
|
export LD_LIBRARY_PATH=%{_libdir}:%{_builddir}/%{name}-%{version}/build64/%{_arch}/lib
|
|
|
|
export PETSC_DIR=%{_builddir}/%{name}-%{version}/build64
|
2016-10-24 17:59:33 +00:00
|
|
|
export PETSC_ARCH=%{_arch}
|
2021-06-20 12:40:54 +00:00
|
|
|
export wPETSC_DIR=./
|
2021-09-12 17:12:57 +00:00
|
|
|
export DATAFILESPATH=%{_builddir}/%{name}-%{version}/build64/share/petsc/datafiles
|
2021-09-12 20:42:24 +00:00
|
|
|
RPM_BUILD_NCPUS="`%{_bindir}/getconf _NPROCESSORS_ONLN`"
|
2020-04-10 15:49:10 +00:00
|
|
|
## 'make test' needs to link against -lpetsc
|
|
|
|
## Crude fix:
|
|
|
|
ln -s %{_builddir}/%{name}-%{version}/build64/%{_arch}/lib/libpetsc64.so %{_builddir}/%{name}-%{version}/build64/%{_arch}/lib/libpetsc.so
|
|
|
|
|
2018-10-15 08:42:48 +00:00
|
|
|
%if %{with debug}
|
|
|
|
export PETSCVALGRIND_OPTIONS=" --tool=memcheck --leak-check=yes --track-origins=yes"
|
2017-10-02 11:54:52 +00:00
|
|
|
export CFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export CXXFLAGS="-O0 -g -Wl,-z,now -fPIC"
|
|
|
|
export FFLAGS="-O0 -g -Wl,-z,now -fPIC -I%{_libdir}/gfortran/modules"
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/build64/lib/petsc/bin/petscmpiexec -n $RPM_BUILD_NCPUS -valgrind'
|
2018-10-15 08:42:48 +00:00
|
|
|
%else
|
2021-09-12 20:42:24 +00:00
|
|
|
xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_builddir}/%{name}-%{version}/build64/lib/petsc/bin/petscmpiexec -n $RPM_BUILD_NCPUS'
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license %{name}-%{version}/LICENSE
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/libpetsc.so.3
|
|
|
|
%{_libdir}/libpetsc.so.%{releasever}
|
|
|
|
%{_libdir}/libpetsc.so.%{version}
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%files devel
|
2020-11-20 18:48:45 +00:00
|
|
|
%{_libdir}/pkgconfig/PETSc.pc
|
2020-11-21 10:06:37 +00:00
|
|
|
%{_libdir}/pkgconfig/petsc.pc
|
2018-05-11 10:36:41 +00:00
|
|
|
%{_libdir}/%{name}/
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_libdir}/libpetsc.so
|
|
|
|
%{_includedir}/%{name}/
|
2017-11-13 19:20:47 +00:00
|
|
|
%{_fmoddir}/%{name}/
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license %{name}-%{version}/LICENSE
|
|
|
|
%{_pkgdocdir}/
|
|
|
|
|
|
|
|
%if %{with arch64}
|
|
|
|
%files -n petsc64
|
|
|
|
%license build64/LICENSE
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/libpetsc64.so.3
|
|
|
|
%{_libdir}/libpetsc64.so.%{releasever}
|
|
|
|
%{_libdir}/libpetsc64.so.%{version}
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%files -n petsc64-devel
|
2020-11-20 18:48:45 +00:00
|
|
|
%{_libdir}/pkgconfig/PETSc64.pc
|
2020-11-21 10:06:37 +00:00
|
|
|
%{_libdir}/pkgconfig/petsc64.pc
|
2018-05-11 10:36:41 +00:00
|
|
|
%{_libdir}/%{name}64/
|
2016-10-24 17:59:33 +00:00
|
|
|
%{_libdir}/libpetsc64.so
|
|
|
|
%{_includedir}/%{name}64/
|
2017-11-13 19:20:47 +00:00
|
|
|
%{_fmoddir}/%{name}64/
|
2016-10-24 17:59:33 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with openmpi}
|
|
|
|
%files openmpi
|
|
|
|
%license buildopenmpi_dir/LICENSE
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/openmpi/lib/libpetsc.so.3
|
2021-09-12 13:13:47 +00:00
|
|
|
%{_libdir}/openmpi/lib/libpetsc.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/openmpi/lib/libpetsc.so.%{version}
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%files openmpi-devel
|
2017-08-13 17:28:37 +00:00
|
|
|
%{_libdir}/openmpi/lib/libpetsc.so
|
2018-05-11 10:36:41 +00:00
|
|
|
%{_libdir}/openmpi/lib/%{name}/
|
2020-11-20 18:48:45 +00:00
|
|
|
%{_libdir}/openmpi/lib/pkgconfig/PETSc.pc
|
2020-11-21 10:06:37 +00:00
|
|
|
%{_libdir}/openmpi/lib/pkgconfig/petsc.pc
|
2017-08-13 17:28:37 +00:00
|
|
|
%{_includedir}/openmpi-%{_arch}/%{name}/
|
2017-11-13 19:20:47 +00:00
|
|
|
%{_fmoddir}/openmpi/%{name}/
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
%files -n python%{python3_pkgversion}-%{name}-openmpi
|
|
|
|
%{python3_sitearch}/openmpi/%{pymodule_name}/
|
|
|
|
%{python3_sitearch}/openmpi/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info
|
|
|
|
%endif
|
2017-12-03 15:55:36 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%if %{with mpich}
|
|
|
|
%files mpich
|
|
|
|
%license buildmpich_dir/LICENSE
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/mpich/lib/libpetsc.so.3
|
2021-09-12 13:16:54 +00:00
|
|
|
%{_libdir}/mpich/lib/libpetsc.so.%{releasever}
|
2021-09-12 13:11:54 +00:00
|
|
|
%{_libdir}/mpich/lib/libpetsc.so.%{version}
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%files mpich-devel
|
2017-08-13 17:28:37 +00:00
|
|
|
%{_libdir}/mpich/lib/libpetsc.so
|
2018-05-11 10:36:41 +00:00
|
|
|
%{_libdir}/mpich/lib/%{name}/
|
2020-11-20 18:48:45 +00:00
|
|
|
%{_libdir}/mpich/lib/pkgconfig/PETSc.pc
|
2020-11-21 10:06:37 +00:00
|
|
|
%{_libdir}/mpich/lib/pkgconfig/petsc.pc
|
2017-08-13 17:28:37 +00:00
|
|
|
%{_includedir}/mpich-%{_arch}/%{name}/
|
2017-11-13 19:20:47 +00:00
|
|
|
%{_fmoddir}/mpich/%{name}/
|
2020-12-13 10:33:12 +00:00
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
%files -n python%{python3_pkgversion}-%{name}-mpich
|
|
|
|
%{python3_sitearch}/mpich/%{pymodule_name}/
|
|
|
|
%{python3_sitearch}/mpich/%{pymodule_name}-%{pymodule_version}-py%{python3_version}.egg-info
|
|
|
|
%endif
|
2017-12-03 15:55:36 +00:00
|
|
|
%endif
|
2016-10-24 17:59:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-05-22 18:25:20 +00:00
|
|
|
%autochangelog
|