File mpitests.spec of Package mpitests
#
# spec file for package mpitests
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Url: http://www.openfabrics.org/downloads.htm
Name: mpitests
Summary: MPI Benchmarks and tests
License: BSD-3-Clause and IPL-1.0
Group: Development/Languages/Other
Version: 3.2
Release: 0
Source: %name-%version.tar.bz2
Source1: mpitests-rpmlintrc
Patch0: mpitests-order_of_evaluation.patch
Patch1: mpitests-rpm_opt_flags.patch
Patch2: mpitests-link_to_libm.patch
Patch3: mpitests-codecleanup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: dos2unix
BuildRequires: openmpi-devel
%description
Set of popular MPI benchmarks: IMB-2.3 Presta-1.4.0 OSU benchmarks ver
2.2
%package openmpi
Summary: MPI Benchmarks and tests for openmpi
Group: Development/Languages/Other
Requires: %{name} = %{version}
%description openmpi
MPI Benchmarks and tests for openmpi.
%prep
%setup -q
%patch0 -p1
%patch1
%patch2
%patch3
find . -type f -print0 | xargs -0 dos2unix
%build
for i in openmpi; do
make MPIHOME=/usr/%_lib/mpi/gcc/$i STACK_PREFIX=%_prefix
done
%install
for i in openmpi; do
make MPIHOME=%{buildroot}/usr/%_lib/mpi/gcc/$i install
install -m 755 presta-1.4.0/manage_targets.py %{buildroot}/usr/%_lib/mpi/gcc/$i/tests/presta-1.4.0
done
%files
%defattr(-, root, root)
%doc IMB-%{version}/doc/* presta-1.4.0/README
%files openmpi
%defattr(-, root, root)
%doc IMB-3.1/license/license.txt
%doc IMB-3.1/license/use-of-trademark-license.txt
%_libdir/mpi/gcc/openmpi/tests
%changelog