%define _pkgname mpiblacs %define _srcdir BLACS %define _approot /opt/blacs %define _modroot /usr/share/Modules/modulefiles/blacs Name: blacs-openmpi-gnu Version: 20000224 Release: 7 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: openmpi >= 1.2.7 coreutils glibc BuildRequires: openmpi-devel >= 1.2.7 openmpi-libs >= 1.2.7 coreutils gcc-gfortran ExclusiveArch: x86_64 Source0: mpiblacs.tgz Source1: blacstester.tgz Source2: Bmake-openmpi-gnu.inc Source3: blacs-openmpi-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-openmpi-gnu-module %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_approot}/openmpi/gnu/lib mkdir -p %{buildroot}%{_approot}/openmpi/gnu/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_srcdir} install -m 644 LIB/blacsCinit_MPI-LINUX-0.a %{buildroot}%{_approot}/openmpi/gnu/lib install -m 644 LIB/blacs_MPI-LINUX-0.a %{buildroot}%{_approot}/openmpi/gnu/lib install -m 644 LIB/blacsF77init_MPI-LINUX-0.a %{buildroot}%{_approot}/openmpi/gnu/lib install -m 755 TESTING/EXE/xCbtest_MPI-LINUX-0 %{buildroot}%{_approot}/openmpi/gnu/bin install -m 755 TESTING/EXE/xFbtest_MPI-LINUX-0 %{buildroot}%{_approot}/openmpi/gnu/bin install -m 644 TESTING/EXE/*.dat %{buildroot}%{_approot}/openmpi/gnu/bin %clean rm -rf %{buildroot} %post %pre %files %defattr(-,root,root,-) %{_approot} %{_modroot}/%{name} %changelog * Tue Dec 30 2008 Mehdi Bozzo-Rey 20000224-7 - update for RH HPCS 5.3 * Thu Sep 4 2008 Mehdi Bozzo-Rey 20000224-6 - Fix install problem (test cases) and update buildreq * Mon Jun 2 2008 Mike Frisch 20000224-4 - Add missing copyright * Thu May 15 2008 Mike Frisch 20000224-3 - Add support for Fortran 90 (#108481) * Tue Sep 25 2007 Najib Ninaba - Initial packaging