%define _pkgname mpich2 %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.8 Release: 4 License: BSD-like Group: System Environment/Libraries Source: %{name}-%{version}.1.tar.gz Buildroot: %{_builddir}/%{name}-buildroot BuildRequires: gcc gcc-c++ gcc-gfortran Requires: 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 %{name} %build tar xzf %{_pkgname}.tar.gz cd %{_pkgname}-%{version} 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} ( cd %{_pkgname}-%{version}; make DESTDIR=%{buildroot} install ) install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} %files %defattr(755,root,root) %{_approot} %{_modroot}/%{name} %changelog * Fri Nov 7 2008 Mehdi Bozzo-Rey 1.0.8-4 - upgrade to 1.0.8 * Mon Jun 2 2008 Mike Frisch 1.0.6-3 - Add missing copyright * Fri May 9 2008 Mehdi Bozzo-Rey 1.0.6-2 - Support for fortran90 added (#108328)