* Bump back down to release 1
* Separate out test clauses; don't have the same guarantees of left-to-right evaluation in shell script that you do in other languages (i.e., protect against the case of running "basename ''") This commit was SVN r13463.
Этот коммит содержится в:
родитель
0ff2115964
Коммит
055dbe9fb9
20
contrib/dist/linux/openmpi.spec
поставляемый
20
contrib/dist/linux/openmpi.spec
поставляемый
@ -9,7 +9,7 @@
|
|||||||
# University of Stuttgart. All rights reserved.
|
# University of Stuttgart. All rights reserved.
|
||||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
# Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved.
|
||||||
# $COPYRIGHT$
|
# $COPYRIGHT$
|
||||||
#
|
#
|
||||||
# Additional copyrights may follow
|
# Additional copyrights may follow
|
||||||
@ -155,7 +155,7 @@
|
|||||||
Summary: A powerful implementaion of MPI
|
Summary: A powerful implementaion of MPI
|
||||||
Name: %{?_name:%{_name}}%{!?_name:openmpi}
|
Name: %{?_name:%{_name}}%{!?_name:openmpi}
|
||||||
Version: $VERSION
|
Version: $VERSION
|
||||||
Release: 2
|
Release: 1
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: openmpi-%{version}.tar.$EXTENSION
|
Source: openmpi-%{version}.tar.$EXTENSION
|
||||||
@ -276,9 +276,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
# compiler, so search for it in a few places.
|
# compiler, so search for it in a few places.
|
||||||
|
|
||||||
fortify_source=1
|
fortify_source=1
|
||||||
if test "$CC" != "" -a "`basename $CC`" != "gcc"; then
|
if test "$CC" != ""; then
|
||||||
fortify_source=0
|
if test "`basename $CC`" != "gcc"; then
|
||||||
else
|
fortify_source=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$fortify_source" = "1"; then
|
||||||
compiler="`echo %{configure_options} | sed -e 's@.* CC=\([^ ]*\).*@\1@'`"
|
compiler="`echo %{configure_options} | sed -e 's@.* CC=\([^ ]*\).*@\1@'`"
|
||||||
# If that didn't find it, try for CC at the beginning of the line
|
# If that didn't find it, try for CC at the beginning of the line
|
||||||
if test "$compiler" = "%{configure_options}"; then
|
if test "$compiler" = "%{configure_options}"; then
|
||||||
@ -287,8 +291,10 @@ else
|
|||||||
|
|
||||||
# Now that we *might* have the compiler name, do a best-faith
|
# Now that we *might* have the compiler name, do a best-faith
|
||||||
# effort to see if it's gcc. Blah!
|
# effort to see if it's gcc. Blah!
|
||||||
if test "$compiler" != "" -a "`basename $compiler`" != "gcc"; then
|
if test "$compiler" != ""; then
|
||||||
fortify_source=0
|
if test "`basename $compiler`" != "gcc"; then
|
||||||
|
fortify_source=0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user