%define _pkgname mvapich2 %define _pkgsrcdir $RPM_BUILD_DIR/%{_pkgname}-%{version} %define _approot /opt/mvapich2/gnu %define _modroot /usr/share/Modules/modulefiles/mpi %define debug_package %{nil} Summary: OSU MVAPICH2 MPI package License: BSD Group: Development/Lbraries Name: mvapich2-infiniband-gnu Version: 1.0.1 Release: 3 Source0: mvapich2-1.0.1.tar.gz Source1: %{name}-module URL: http://nowlab.cse.ohio-state.edu/project/mpi-iba/index.html Buildroot: %{_builddir}/%{name}-buildroot BuildRequires: gcc gcc-gfortran libsysfs-devel libibverbs-devel libibumad-devel libibcommon-devel Requires: libibumad libibumad-devel libibverbs libibverbs-devel libibcommon-devel %description This is an MPI-2 implementation which includes all MPI-1 features. It is based on MPICH2 and MVICH. %prep %setup -n %{_pkgsrcdir} %build %ifarch i386 i486 i586 i686 ARCH="_IA32_" BIT="" %endif %ifarch ia64 ARCH="_IA64_" BIT="64" %endif %ifarch x86_64 ARCH="_X86_64_" BIT="64" %endif export F77=gfortran export F90=gfortran export LIBS="-libverbs -libumad -lpthread" export CFLAGS=${CFLAGS:--D${ARCH} -D_SMP_ -DUSE_HEADER_CACHING \ -DONE_SIDED -D_SHMEM_COLL_ \ $OPT_FLAG \ -DMPID_USE_SEQUENCE_NUMBERS} ./configure --prefix=%{_approot} --with-device=osu_ch3:mrail --enable-threads=multiple \ --with-rdma=gen2 --with-pm=mpd --enable-romio \ --enable-sharedlibs=gcc --without-mpe make %clean rm -rf %{buildroot} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot} make prefix=%{buildroot}%{_approot} install install -D -m 0644 %{SOURCE1} %{buildroot}%{_modroot}/%{name} # Copy example code to %{_approot}/examples install -d -m 0755 %{buildroot}%{_approot}/examples install -D -m 0644 examples/{*.c,*.vcproj,*.sln} %{buildroot}%{_approot}/examples install -d -m 0755 %{buildroot}%{_approot}/examples/cxx install -m 0644 examples/cxx/*.cxx %{buildroot}%{_approot}/examples/cxx install -d -m 0755 %{buildroot}%{_approot}/examples/developers install -m 0644 examples/developers/{*.c,README} %{buildroot}%{_approot}/examples/developers install -d -m 0755 %{buildroot}%{_approot}/examples/f77 install -m 0644 examples/f77/{*.f,*.vfproj} %{buildroot}%{_approot}/examples/f77 install -d -m 0755 %{buildroot}%{_approot}/examples/f90 install -m 0644 examples/f90/*.f90 %{buildroot}%{_approot}/examples/f90 install -d -m 0755 %{buildroot}%{_approot}/examples/windows install -d -m 0755 %{buildroot}%{_approot}/examples/windows/installed_examples install -d -m 0755 %{buildroot}%{_approot}/examples/windows/pmandel_vis install -d -m 0755 %{buildroot}%{_approot}/examples/windows/pmandel_vis/res install -d -m 0755 %{buildroot}%{_approot}/examples/windows/pmandel_vis_net install -d -m 0755 %{buildroot}%{_approot}/examples/windows/pmitest install -d -m 0755 %{buildroot}%{_approot}/examples/windows/skeleton install examples/windows/installed_examples/* %{buildroot}%{_approot}/examples/windows/installed_examples install examples/windows/pmandel_vis/{*.cpp,*.h,*.rc,*.vcproj} %{buildroot}%{_approot}/examples/windows/pmandel_vis install examples/windows/pmandel_vis/res/* %{buildroot}%{_approot}/examples/windows/pmandel_vis/res install examples/windows/pmandel_vis_net/* %{buildroot}%{_approot}/examples/windows/pmandel_vis_net install examples/windows/pmitest/* %{buildroot}%{_approot}/examples/windows/pmitest install examples/windows/skeleton/* %{buildroot}%{_approot}/examples/windows/skeleton #%post #%preun %files %defattr(755,root,root) %{_approot} %{_modroot}/%{name} %changelog * Wed Jun 25 2008 Mike Frisch 1.0.1-3 - Add Fortran 90 support * Thu Apr 10 2008 Mike Frisch 1.0.1-2 - Initial release * Wed Feb 13 2008 Mike Mazur - Bump to version 1.0.1. * Fri Nov 2 2007 George Goh - Initial spec file.