fc6 doesn't have user space infiniband support, skip it for now.
This commit is contained in:
parent
533316b833
commit
feede46b35
32
openmpi.spec
32
openmpi.spec
@ -11,9 +11,9 @@ Source1: openmpi.pc.in
|
|||||||
Source2: openmpi.module.in
|
Source2: openmpi.module.in
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gcc-gfortran, autoconf, automake, libtool
|
BuildRequires: gcc-gfortran, autoconf, automake, libtool
|
||||||
BuildRequires: libibverbs-devel, opensm-devel, libsysfs-devel
|
#BuildRequires: libibverbs-devel, opensm-devel, libsysfs-devel
|
||||||
Requires(post): /sbin/ldconfig, /usr/sbin/alternatives
|
Requires(post): /sbin/ldconfig, /usr/sbin/alternatives
|
||||||
ExclusiveArch: i386 x86_64 ia64 ppc ppc64
|
#ExclusiveArch: i386 x86_64 ia64 ppc ppc64
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for openmpi
|
Summary: Development files for openmpi
|
||||||
@ -34,24 +34,22 @@ Contains development headers and libraries for openmpi
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
XCFLAGS="$RPM_OPT_FLAGS -fPIC"
|
XCFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
XCXXFLAGS="$RPM_OPT_FLAGS -fPIC"
|
XCXXFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
XFFLAGS="$RPM_OPT_FLAGS -fPIC"
|
XFFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
%endif
|
%endif
|
||||||
%ifarch i386 x86_64 ia64 ppc ppc64 # arches with openib support
|
#%ifarch i386 x86_64 ia64 ppc ppc64 # arches with openib support
|
||||||
%configure \
|
#%configure \
|
||||||
--includedir=%{_includedir}/%{name} \
|
# --includedir=%{_includedir}/%{name} \
|
||||||
--libdir=%{_libdir}/%{name} \
|
# --libdir=%{_libdir}/%{name} \
|
||||||
--datadir=%{_datadir}/%{name}/help \
|
# --datadir=%{_datadir}/%{name}/help \
|
||||||
--with-openib=/usr \
|
# --with-openib=/usr \
|
||||||
LDFLAGS='-Wl,-z,noexecstack' \
|
# LDFLAGS='-Wl,-z,noexecstack' \
|
||||||
CFLAGS="$CFLAGS $XCFLAGS" \
|
# CFLAGS="$CFLAGS $XCFLAGS" \
|
||||||
CXXFLAGS="$CFLAGS $XCFLAGS" \
|
# CXXFLAGS="$CFLAGS $XCFLAGS" \
|
||||||
FFLAGS="$FFLAGS $XFLAGS";
|
# FFLAGS="$FFLAGS $XFLAGS";
|
||||||
%else # no openib support, but plain tcp/ip still works and is usefull
|
#%else # no openib support, but plain tcp/ip still works and is usefull
|
||||||
%configure \
|
%configure \
|
||||||
--includedir=%{_includedir}/%{name} \
|
--includedir=%{_includedir}/%{name} \
|
||||||
--libdir=%{_libdir}/%{name} \
|
--libdir=%{_libdir}/%{name} \
|
||||||
@ -60,8 +58,10 @@ XFFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|||||||
CFLAGS="$CFLAGS $XCFLAGS" \
|
CFLAGS="$CFLAGS $XCFLAGS" \
|
||||||
CXXFLAGS="$CFLAGS $XCFLAGS" \
|
CXXFLAGS="$CFLAGS $XCFLAGS" \
|
||||||
FFLAGS="$FFLAGS $XFLAGS";
|
FFLAGS="$FFLAGS $XFLAGS";
|
||||||
%endif
|
#%endif
|
||||||
# ${datadir}/openmpi will be used ONLY for the english help*.txt files
|
# ${datadir}/openmpi will be used ONLY for the english help*.txt files
|
||||||
|
|
||||||
|
%build
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user