From f9acfe6c4fcc4e48e5274560fa03efe85abe129c Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Tue, 6 Feb 2007 10:31:27 +0000 Subject: [PATCH] - add alternatives reqs --- openmpi.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openmpi.spec b/openmpi.spec index d8db9c2..fd1ef55 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -1,6 +1,6 @@ Name: openmpi Version: 1.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Open Message Passing Interface Group: Development/Libraries @@ -13,17 +13,23 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-gfortran, autoconf, automake, libtool #BuildRequires: libibverbs-devel, opensm-devel, libsysfs-devel Requires(post): /sbin/ldconfig, /usr/sbin/alternatives +Requires(preun): /usr/sbin/alternatives +Requires(postun): /sbin/ldconfig Requires: %{name}-libs = %{version}-%{release} ExclusiveArch: i386 x86_64 ia64 ppc ppc64 %package libs Summary: Libraries used by openmpi programs Group: Development/Libraries +Requires(post): /usr/sbin/alternatives +Requires(preun): /usr/sbin/alternatives %package devel Summary: Development files for openmpi Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires(post): /usr/sbin/alternatives +Requires(preun): /usr/sbin/alternatives %description Open MPI is an open source, freely available implementation of both the @@ -218,6 +224,9 @@ alternatives --remove mpicc %{_bindir}/opal_wrapper-%{mode} %changelog +* Tue Feb 06 2007 Florian La Roche - 1.1-8 +- also add requires for sub-packages for "alternatives" + * Fri Oct 13 2006 Doug Ledford - 1.1-7 - ia64 can't take -m64 on the gcc command line, so don't set it there