%define _pkgname mpich %define _approot /opt/mpich1/gnu %define _modroot /usr/share/Modules/modulefiles/mpi %define debug_package %{nil} Summary: MPICH1 Name: mpich1-ethernet-gnu Version: 1.2.7p1 Release: 6 License: BSD-like Group: System Environment/Libraries Source0: mpich1-%{version}.tar.gz Source1: mpich1-ethernet-gnu-module Buildroot: %{_builddir}/%{name}-buildroot BuildRequires: gcc gcc-c++ gcc-gfortran Requires: gcc gcc-c++ gcc-gfortran %description MPICH is an open-source and portable implementation of the Message-Passing Interface (MPI, www.mpi-forum.org). MPI is a library for parallel programming, and is available on a wide range of parallel machines, from single laptops to massively parallel vector parallel processors. MPICH includes all of the routines in MPI 1.2, along with the I/O routines from MPI-2 and some additional routines from MPI-2, including those supporting MPI Info and some of the additional datatype constructors. MPICH was developed by Argonne National Laboratory. See www.mcs.anl.gov/mpi/mpich for more information. %prep %setup -q -n %{_pkgname}-%{version} %build export RSHCOMMAND="ssh -x" export F77_GETARGDECL=' ' export FC=gfortran export F90=gfortran export CC=gcc export CXX=g++ ./configure --prefix=%{_approot} --enable-sharedlib --enable-f90modules --with-device=ch_p4 -make="make -s" 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 * Fri Nov 7 2008 Mehdi Bozzo-Rey 1.2.7p1-6 - fix for build process * Mon Jun 2 2008 Mike Frisch 1.2.7p1-5 - Add missing copyright * Wed May 14 2008 Mike Frisch 1.2.7p1-2 - Build using different options to enable Fortran 90 support (#108331) * Tue Sep 18 2007 George Goh - Initial spec file.