File mpitests-mvapich2.spec of Package mpitests

#
# spec file for package mpitests-mvapich2
#
# 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/
#


Name:           mpitests-mvapich2
Summary:        MPI Benchmarks and tests for mvapich2
License:        BSD-3-Clause and IPL-1.0
Group:          Development/Languages/Other
Version:        3.2
Release:        0
Source:         mpitests-%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:  mvapich2-devel
Requires:       mpitests = %{version}
Conflicts:      mpitests-openmpi

%description
MPI Benchmarks and tests for mvapich2.

%

%prep
%setup -q -n mpitests-%version
%patch0 -p1
%patch1
%patch2
%patch3
dos2unix $(find . -name ReadMe_IMB.txt)

%build
for i in mvapich2; do
make MPIHOME=/usr/%_lib/mpi/gcc/$i STACK_PREFIX=%_prefix
done

%install
for i in mvapich2; do
make MPIHOME=$RPM_BUILD_ROOT/usr/%_lib/mpi/gcc/$i install
install -m 755 presta-1.4.0/manage_targets.py $RPM_BUILD_ROOT/usr/%_lib/mpi/gcc/$i/tests/presta-1.4.0
done

%files 
%defattr(-, root, root)
%doc IMB-3.1/license/license.txt
%doc IMB-3.1/license/use-of-trademark-license.txt
%_libdir/mpi/gcc/mvapich2/tests

%changelog
openSUSE Build Service is sponsored by