1
1

Add a command-line option to disable the rpmbuild auto-dependency

generation. 

This commit was SVN r16838.
Этот коммит содержится в:
Jeff Squyres 2007-12-04 17:40:01 +00:00
родитель 6b9048fc6d
Коммит 6e530893cd

18
contrib/dist/linux/openmpi.spec поставляемый
Просмотреть файл

@ -132,6 +132,15 @@
# type: bool (0/1) # type: bool (0/1)
%{!?use_default_rpm_opt_flags: %define use_default_rpm_opt_flags 1} %{!?use_default_rpm_opt_flags: %define use_default_rpm_opt_flags 1}
# Some compilers can be installed via tarball or RPM (e.g., Intel,
# PGI). If they're installed via RPM, then rpmbuild's auto-dependency
# generation stuff will work fine. But if they're installed via
# tarball, then rpmbuild's auto-dependency generation stuff will
# break; complaining that it can't find a bunch of compiler .so files.
# So provide an option to turn this stuff off.
# type: bool (0/1)
%{!?disable_auto_provides: %define disable_auto_provides 0}
############################################################################# #############################################################################
# #
# OSCAR-specific defaults # OSCAR-specific defaults
@ -228,6 +237,9 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: %{_prefix} Prefix: %{_prefix}
Provides: mpi Provides: mpi
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%if %{disable_auto_provides}
AutoReqProv: no
%endif
%if %{install_modulefile} %if %{install_modulefile}
Requires: %{modules_rpm_name} Requires: %{modules_rpm_name}
%endif %endif
@ -687,6 +699,12 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
# #
############################################################################# #############################################################################
%changelog %changelog
* Tue Dec 4 2008 Jeff Squyres <jsquyres@cisco.com>
- Added define option for disabling the use of rpmbuild's
auto-dependency generation stuff. This is necessary for some
compilers that allow themselves to be installed via tarball (not
RPM), such as the Portland Group compiler.
* Thu Jul 12 2007 Jeff Squyres <jsquyres@cisco.com> * Thu Jul 12 2007 Jeff Squyres <jsquyres@cisco.com>
- Change default doc location when using install_in_opt. Thanks to - Change default doc location when using install_in_opt. Thanks to
Alex Tumanov for pointing this out and to Doug Ledford for Alex Tumanov for pointing this out and to Doug Ledford for