Add /usr/lib64/mpich/bin/mpif77 /usr/lib64/mpich/bin/mpif90 /usr/lib64/mpich/bin/mpifort

This commit is contained in:
wu-leilei 2023-02-06 15:48:09 +08:00
parent 1ca825dac2
commit 95702cdee7

View File

@ -1,7 +1,7 @@
Summary: A high-performance implementation of MPI
Name: mpich
Version: 4.0.3
Release: 1
Release: 2
License: MIT
URL: http://www.mpich.org/
Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz
@ -79,13 +79,13 @@ mpich support for Python 3.
%build
%configure \
--disable-fortran --prefix=$DIR/mpich \
--enable-sharedlibs=gcc \
--enable-shared \
--enable-static=no \
--enable-lib-depend \
--disable-rpath \
--disable-silent-rules \
--enable-fortran \
--enable-fc \
--with-device=%{selected_channels} \
--with-pm=hydra:gforker \
@ -101,7 +101,7 @@ mpich support for Python 3.
F77=%{opt_f77} \
CFLAGS="%{m_option} -O2 %{?XFLAGS}" \
CXXFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS}" \
FCFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
FFLAGS="%{m_option} -O2 %{?XFLAGS} -fallow-argument-mismatch" \
LDFLAGS='-Wl,-z,noexecstack' \
MPICHLIB_CFLAGS="%{?opt_cc_cflags}" \
@ -125,6 +125,10 @@ sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool
%install
%make_install
mkdir -p %{buildroot}%{_fmoddir}/mpich
mv %{buildroot}%{_includedir}/mpich-*/*.mod %{buildroot}%{_fmoddir}/mpich/
sed -r -i 's|^modincdir=.*|modincdir=%{_fmoddir}/mpich|' %{buildroot}%{_libdir}/mpich/bin/mpifort
mkdir -p %{buildroot}%{_sysconfdir}/modulefiles/mpi
sed -r 's|%{_bindir}|%{_libdir}/mpich/bin|;
@ -182,6 +186,10 @@ make check V=1
%{_libdir}/mpich/bin/mpicc
%{_libdir}/mpich/bin/mpic++
%{_libdir}/mpich/bin/mpicxx
%{_libdir}/mpich/bin/mpif77
%{_libdir}/mpich/bin/mpif90
%{_libdir}/mpich/bin/mpifort
%{_fmoddir}/mpich/
%{_rpmconfigdir}/macros.d/macros.mpich
%files help
@ -193,6 +201,9 @@ make check V=1
%{python3_sitearch}/mpich.pth
%changelog
* Mon Feb 06 2023 wulei <wulei80@h-partners.com> - 4.0.3-2
- Add /usr/lib64/mpich/bin/mpif77 /usr/lib64/mpich/bin/mpif90 /usr/lib64/mpich/bin/mpifort
* Sat Nov 12 2022 hua <dchang@zhixundn.com> 4.0.3-1
- update to 4.0.3