# $Id: blacs-mpich1-gnu.spec 2291 2007-09-20 04:58:31Z najib $ %define _pkgname mpiblacs %define _srcdir BLACS %define _approot /opt/blacs %define _modroot /usr/share/Modules/modulefiles/blacs %define debug_package %{nil} Name: blacs-mpich1-gnu Version: 20000224 Release: 5 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: mpich1-ethernet-gnu coreutils glibc BuildRequires: mpich1-ethernet-gnu coreutils ExclusiveArch: x86_64 Source0: mpiblacs.tgz Source1: blacstester.tgz Source2: Bmake-mpich1-gnu.inc Source3: blacs-mpich1-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} export BTOPdir=%{_builddir}/%{name}/%{_srcdir} make mpi make tester cd .. cp %{SOURCE3} ./blacs-mpich1-gnu-module %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot}/mpich1/gnu/lib mkdir -p %{buildroot}%{_approot}/mpich1/gnu/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_srcdir} install -m 644 LIB/blacsCinit_MPI-LINUX-0.a %{buildroot}%{_approot}/mpich1/gnu/lib install -m 644 LIB/blacs_MPI-LINUX-0.a %{buildroot}%{_approot}/mpich1/gnu/lib install -m 644 LIB/blacsF77init_MPI-LINUX-0.a %{buildroot}%{_approot}/mpich1/gnu/lib install -m 755 TESTING/EXE/xCbtest_MPI-LINUX-0 %{buildroot}%{_approot}/mpich1/gnu/bin install -m 755 TESTING/EXE/xFbtest_MPI-LINUX-0 %{buildroot}%{_approot}/mpich1/gnu/bin install -m 644 TESTING/EXE/*.dat %{buildroot}%{_approot}/mpich1/gnu/bin %clean rm -rf %{buildroot} %post %pre %files %defattr(-,root,root,-) %{_approot} %{_modroot}/%{name} %changelog * Tue Dec 30 2008 Mehdi Bozzo-Rey 20000224-4 - backport from the platform_hpc kit and update for RH HPCS 5.3 * Mon Jun 2 2008 Mike Frisch 20000224-3 - Add missing copyright * Tue Sep 25 2007 Najib Ninaba - Initial packaging