[mpich2] Fix BZ #647147.
Jussi Lehtola
jussilehtola at fedoraproject.org
Tue Nov 15 22:42:15 UTC 2011
commit 93fa3e3f144a597ee0d1a299457d9d62005f2ff9
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Wed Nov 16 00:42:00 2011 +0200
Fix BZ #647147.
mpich2.spec | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/mpich2.spec b/mpich2.spec
index 1ff3752..6245a36 100644
--- a/mpich2.spec
+++ b/mpich2.spec
@@ -3,7 +3,7 @@
Summary: A high-performance implementation of MPI
Name: mpich2
Version: 1.4.1p1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: MIT
Group: Development/Libraries
URL: http://www.mcs.anl.gov/research/projects/mpich2
@@ -40,6 +40,18 @@ shared-memory and TCP/IP sockets based communication.
This build also include support for using the 'module environment' to select
which MPI implementation to use when multiple implementations are installed.
+If you want MPICH2 support to be automatically loaded, you need to install the
+mpich2-autoload package.
+
+%package autoload
+Summary: Load mpich2 automatically into profile
+Group: System Environment/Base
+Requires: mpich2 = %{version}-%{release}
+# Branched at 1.4.1p1-3, this makes the transition smooth.
+Obsoletes: mpich2 < 1.4.1p1-3
+
+%description autoload
+This package contains profile files that make mpich2 automatically loaded.
%package devel
Summary: Development files for mpich2
@@ -56,8 +68,8 @@ Contains development headers and libraries for mpich2
%package doc
Summary: Documentations and examples for mpich2
-Group: Documentation
-BuildArch: noarch
+Group: Documentation
+BuildArch: noarch
Requires: %{name}-devel = %{version}-%{release}
%description doc
@@ -236,10 +248,13 @@ fi
%dir %{_mandir}/%{name}
%doc %{_mandir}/%{name}/man1/
%{_sysconfdir}/modulefiles/%{name}-%{_arch}
-%{_sysconfdir}/profile.d/mpich2-%{_arch}.*
%exclude %{_libdir}/%{name}/bin/*log*
%exclude %{_libdir}/%{name}/bin/jumpshot
+%files autoload
+%defattr(-,root,root,-)
+%{_sysconfdir}/profile.d/mpich2-%{_arch}.*
+
%files devel
%defattr(-,root,root,-)
%{_libdir}/%{name}/bin/*log*
@@ -265,6 +280,10 @@ fi
%exclude %{_datadir}/%{name}/examples*/Makefile-%{_arch}
%changelog
+* Wed Nov 16 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.4.1p1-3
+- Comply to MPI guidelines by separating autoloading into separate package
+ (BZ #647147).
+
* Tue Oct 18 2011 Deji Akingunola <dakingun at gmail.com> - 1.4.1p1-2
- Rebuild for hwloc soname bump.
More information about the scm-commits
mailing list