%define _pkgname mpich2 %define _pkgsrcdir $RPM_BUILD_DIR/%_pkgname-%{version} %define _approot /opt/mpich2/gnu %define _modroot /usr/share/Modules/modulefiles/mpi %define debug_package %{nil} Summary: MPICH2 is a portable implementation of MPI. Name: mpich2-ethernet-gnu Version: 1.0.6 Release: 3 License: BSD-like Group: System Environment/Libraries Source0: ftp://ftp.mcs.anl.gov/pub/mpi/%{_pkgname}.tar.gz Source1: %{name}-module Buildroot: %{_builddir}/%{name}-buildroot BuildRequires: gcc gcc-c++ gcc-gfortran %description MPICH2 is an all-new implementation of MPI from the group at Argonne National Laboratory. It shares many goals with the original MPICH but no actual code. It is a portable, high-performance implementation of the entire MPI-2 standard. This release has all MPI-2 functions and features required by the standard with the exception of support for the "external32" portable I/O format. %prep %setup -q -n %{_pkgname}-%{version} %build export F77=gfortran export F90=gfortran ./configure --prefix=%{_approot} --enable-sharedlibs=gcc --enable-cxx --enable-f90 make %clean rm -rf %{buildroot} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot} make DESTDIR=%{buildroot} install install -D -m 0644 %{SOURCE1} %{buildroot}%{_modroot}/%{name} %files %defattr(755,root,root) %{_approot} %{_modroot}/%{name} %changelog * Wed Jun 25 2008 Mike Frisch 1.0.6-3 - Modified to use Fortran 90 compiler * Thu Apr 10 2008 Mike Frisch 1.0.6-2 - Initial release