# $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: 3 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 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-mpich1-gnu.inc %{_srcdir}/Bmake.inc # patch -p0 < blacstester.patch cd %{_srcdir} export BTOPdir=%{_builddir}/%{name}/%{_srcdir} make mpi make tester %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 * Mon Jun 2 2008 Mike Frisch 20000224-3 - Add missing copyright * Tue Sep 25 2007 Najib Ninaba - Initial packaging