Skip to content

Commit c7c1325

Browse files
authored
Merge pull request #3250 from jsquyres/pr/modulefile-in-srpm
openmpi.spec: also put the modulefile in /opt if install_in_opt==1
2 parents d782542 + 9e23c5e commit c7c1325

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/dist/linux/openmpi.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@
163163
# bets are off. So feel free to install it anywhere in your tree. He
164164
# suggests $prefix/doc.
165165
%define _defaultdocdir /opt/%{name}/%{version}/doc
166+
# Also put the modulefile in /opt.
167+
%define modulefile_path /opt/%{name}/%{version}/share/openmpi/modulefiles
166168
%endif
167169

168170
%if !%{build_debuginfo_rpm}
@@ -767,6 +769,10 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
767769
#
768770
#############################################################################
769771
%changelog
772+
* Tue Mar 28 2017 Jeff Squyres <[email protected]>
773+
- Reverting a decision from a prior changelog entry: if
774+
install_in_opt==1, then even put the modulefile under /opt.
775+
770776
* Thu Nov 12 2015 Gilles Gouaillardet <[email protected]>
771777
- Revamp packaging when prefix is /usr
772778

0 commit comments

Comments
 (0)