%define _pkgname mpiblacs %define _srcdir BLACS %define _approot /opt/blacs %define _modroot /usr/share/Modules/modulefiles/blacs %define _ofedroot /opt/ofed %ifarch i386 i686 %define _ofedlib /opt/ofed/lib %else %define _ofedlib /opt/ofed/lib64 %endif Name: blacs-mvapich1-gnu Version: 20000224 Release: 4 Summary: The BLACS (Basic Linear Algebra Communication Subprograms) project Group: Development/Libraries License: opensource URL: http://www.netlib.org/blacs/ Source: %{name}-%{version}.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: mvapich1-infiniband-gnu coreutils glibc BuildRequires: mvapich1-infiniband-gnu atlas coreutils %description The BLACS (Basic Linear Algebra Communication Subprograms) project is an ongoing investigation whose purpose is to create a linear algebra oriented message passing interface that may be implemented efficiently and uniformly across a large range of distributed memory platforms. The length of time required to implement efficient distributed memory algorithms makes it impractical to rewrite programs for every new parallel machine. The BLACS exist in order to make linear algebra applications both easier to program and more portable. %prep %setup -q -n %{name} %build tar xzf %{_pkgname}.tgz tar xzf %{_pkgname}-patch03.tgz tar xzf blacstester.tgz cp Bmake-mvapich1-gnu.inc %{_srcdir}/Bmake.inc #patch -p0 < blacstester.patch cd %{_srcdir} export BTOPdir=%{_builddir}/%{name}/%{_srcdir} make mpi #make OFEDLIB=%{_ofedlib} tester make tester %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot}/mvapich1/gnu/lib mkdir -p %{buildroot}%{_approot}/mvapich1/gnu/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_srcdir} install -m 644 LIB/blacsCinit_MPI-LINUX-0.a %{buildroot}%{_approot}/mvapich1/gnu/lib install -m 644 LIB/blacs_MPI-LINUX-0.a %{buildroot}%{_approot}/mvapich1/gnu/lib install -m 644 LIB/blacsF77init_MPI-LINUX-0.a %{buildroot}%{_approot}/mvapich1/gnu/lib install -m 755 TESTING/EXE/xCbtest_MPI-LINUX-0 %{buildroot}%{_approot}/mvapich1/gnu/bin install -m 755 TESTING/EXE/xFbtest_MPI-LINUX-0 %{buildroot}%{_approot}/mvapich1/gnu/bin install -m 644 TESTING/EXE/*.dat %{buildroot}%{_approot}/mvapich1/gnu/bin %clean rm -rf %{buildroot} %post %pre %files %defattr(-,root,root,-) %{_approot} %{_modroot}/%{name} %changelog * Wed Nov 26 2008 Mehdi Bozzo-Rey 20000224-4 - cleanup, spec file Bmake.inc modification * Mon Jun 2 2008 Mike Frisch 20000224-3 - Add missing copyright * Thu May 15 2008 Mike Frisch 20000224-2 - Fixed compiler settings for Fortran 90 (#108809) * Tue Sep 25 2007 Najib Ninaba - Initial packaging