%define _pkgname mpiblacs %define _srcdir BLACS %define _approot /opt/blacs %define _modroot /usr/share/Modules/modulefiles/blacs Name: blacs-mvapich1-gnu Version: 20000224 Release: 6 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: mvapich >= 1.1.0 coreutils glibc libgfortran BuildRequires: mvapich >= 1.1.0 coreutils gcc-gfortran ExclusiveArch: x86_64 Source0: mpiblacs.tgz Source1: blacstester.tgz Source2: Bmake-mvapich1-gnu.inc Source3: blacs-mvapich1-gnu-module Source4: mpiblacs-patch03.tgz %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 -c -n %{name} %setup -q -D -T -a 1 -n %{name} %setup -q -D -T -a 4 -n %{name} cd BLACS/ cp %{SOURCE2} ./Bmake.inc %build cd %{_srcdir} make mpi make tester cd .. cp %{SOURCE3} ./blacs-mvapich1-gnu-module %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 * Tue Dec 30 2008 Mehdi Bozzo-Rey 20000224-6 - update for RH HPCS 5.3 * Thu Oct 2 2008 Mehdi Bozzo-Rey 20000224-5 - update req., buildreq. * Thu Sep 8 2008 Mehdi Bozzo-Rey 20000224-4 - initial packaging, using the blacs-openmpi spec file as model