%define _pkgname hpl %define approot /opt/linpack/mpich1/gnu %define _modroot /usr/share/Modules/modulefiles/linpack %define debug_package %{nil} Name: linpack-mpich1-gnu Version: 1.0a Release: 2 Summary: High Performance Computing Linpack Benchmark (HPL) License: Distributable Group: Applications/System URL: http://www.netlib.org/benchmark/hpl/software.html Source: %{name}-%{version}.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc mpich1-ethernet-gnu atlas atlas-devel Requires: mpich1-ethernet-gnu atlas atlas-devel %description HPL is a software package that solves a (random) dense linear system in double precision (64 bits) arithmetic on distributed-memory computers. It can thus be regarded as a portable as well as freely available implementation of the High Performance Computing Linpack Benchmark. %prep %setup -q -n %{name} %build tar xzf %{_pkgname}.tgz cp Make.Kusu* %{_pkgname} cd %{_pkgname} export TOPdir=%{_builddir}/%{name}/%{_pkgname} %ifarch i386 make arch=Kusu.32 %else make arch=Kusu.64 %endif %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{approot} mkdir -p $RPM_BUILD_ROOT%{approot}/bin install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} cd %{_pkgname} %ifarch i386 install -m755 bin/Kusu.32/xhpl $RPM_BUILD_ROOT%{approot}/bin install -m644 bin/Kusu.32/HPL.dat $RPM_BUILD_ROOT%{approot}/bin %else install -m755 bin/Kusu.64/xhpl $RPM_BUILD_ROOT%{approot}/bin install -m644 bin/Kusu.64/HPL.dat $RPM_BUILD_ROOT%{approot}/bin %endif %post %postun %files %defattr(-, root, root) %{approot} %{_modroot}/%{name} %changelog * Mon Jun 2 2008 Mike Frisch 1.0a-2 - Add missing copyright * Tue Sep 12 2007 Tsai Li Ming 1.0a-1 - Initial package.