File mvapich2.spec of Package mvapich2
#
# spec file for package mvapich2 (Version 0.9.8)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: mvapich2
Summary: OSU MVAPICH2 MPI package
Version: 0.9.8
Release: 126
License: BSD 3-Clause
Group: Development/Libraries/Parallel
Source0: %{name}-%{version}.tar.bz2
Source1: mpivars.sh
Source2: mpivars.csh
Patch0: mvapich2-0.9.8-destdir_fixes.patch
#Patch1: blah
Url: http://mvapich.cse.ohio-state.edu/overview/mvapich2/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ gcc-fortran libibcommon-devel libibumad-devel libibverbs-devel librdmacm-devel mpi-selector python-devel sysfsutils xorg-x11-devel
Requires: mpi-selector
ExcludeArch: s390 s390x
# bug437293
%ifarch ppc64
Obsoletes: mvapich2-64bit
%endif
%ifarch ppc
Obsoletes: mvapich2-32bit
%endif
#
%define _prefix /usr/%_lib/mpi/gcc/%name
%description
This is an MPI-2 implementation which includes all MPI-1 features. It
is based on MPICH2 and MVICH.
%package devel
License: BSD 3-Clause
Group: Development/Libraries/Parallel
Summary: OSU MVAPICH2 MPI package
Requires: %{name} = %{version} libibverbs-devel libibumad-devel libibcommon-devel librdmacm-devel
# bug437293
%ifarch ppc64
Obsoletes: mvapich2-devel-64bit
%endif
%ifarch ppc
Obsoletes: mvapich2-devel-32bit
%endif
#
%description devel
This is an MPI-2 implementation which includes all MPI-1 features. It
is based on MPICH2 and MVICH.
%prep
%setup -q
%patch0
#%patch1
%build
export LIBS="-lrdmacm -libverbs -libumad"
export CFLAGS="$RPM_OPT_FLAGS -DUSE_HEADER_CACHING -DONE_SIDED -DMPID_USE_SEQUENCE_NUMBERS -D_SHMEM_COLL_ -DRDMA_CM -DDISABLE_PTMALLOC"
./configure --prefix=%_prefix --libdir=%_libdir --mandir=%_mandir --sysconfdir=%_sysconfdir \
--with-device=osu_ch3:mrail --with-rdma=gen2 --with-pm=mpd \
--enable-sharedlibs=gcc --without-mpe
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
# make and install mpivars files
sed 's,prefix,%_prefix,g' %{S:1} > $RPM_BUILD_ROOT%_bindir/mpivars.sh
sed 's,prefix,%_prefix,g' %{S:2} > $RPM_BUILD_ROOT%_bindir/mpivars.csh
rm ${RPM_BUILD_ROOT}%_prefix/examples/cpi
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
/sbin/ldconfig
/usr/bin/mpi-selector \
--register %{name}-%{version} \
--source-dir %{_bindir} \
--yes
%postun
/sbin/ldconfig
/usr/bin/mpi-selector --unregister %{name}-%{version} --yes
%files
%defattr(-, root, root)
%dir %_prefix
%dir %_prefix/bin
%dir %_prefix/share
%dir %_prefix/include
%dir %_prefix/share/man
%dir %_prefix/share/man/man1
%dir %_prefix/share/man/man3
%dir %_prefix/%_lib
%_sysconfdir/*
%_bindir/*
%_mandir/man1/*
%_libdir/*.so
%files devel
%defattr(-,root,root)
%_mandir/man3/*
%_libdir/*.a
%_includedir/*
%changelog
* Tue Dec 09 2008 ro@suse.de
- remove ix86 from ifarch statement obsoleting 32bit package
* Mon Dec 01 2008 ro@suse.de
- add ExcludeArch for s390 s390x
* Thu Oct 30 2008 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Tue Aug 21 2007 kejohnson@suse.de
- Updated source tarball to OFED-1.2.5 release.
* Tue Aug 07 2007 hvogel@suse.de
- Update to version from OFED 1.2c
* Tue Jul 10 2007 hvogel@suse.de
- Initial Package, Version 0.9.8