Update to fix licencing and packaging issues. Add prepend-path PYTHONPATH
to the module.in file.
This commit is contained in:
parent
80a8867c54
commit
d1d00b1ea4
@ -1 +1 @@
|
|||||||
openmpi-1.4.1.tar.bz2
|
openmpi-1.4.1-RH.tar.bz2
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#
|
#
|
||||||
prepend-path PATH @LIBDIR@/bin
|
prepend-path PATH @LIBDIR@/bin
|
||||||
prepend-path LD_LIBRARY_PATH @LIBDIR@/lib
|
prepend-path LD_LIBRARY_PATH @LIBDIR@/lib
|
||||||
|
prepend-path PYTHONPATH @PYSITEARCH@
|
||||||
setenv MPI_BIN @LIBDIR@/bin
|
setenv MPI_BIN @LIBDIR@/bin
|
||||||
setenv MPI_SYSCONFIG @ETCDIR@
|
setenv MPI_SYSCONFIG @ETCDIR@
|
||||||
setenv MPI_FORTRAN_MOD_DIR @FMODDIR@
|
setenv MPI_FORTRAN_MOD_DIR @FMODDIR@
|
||||||
|
27
openmpi.spec
27
openmpi.spec
@ -19,20 +19,28 @@
|
|||||||
|
|
||||||
Name: openmpi%{?_cc_name_suffix}
|
Name: openmpi%{?_cc_name_suffix}
|
||||||
Version: 1.4.1
|
Version: 1.4.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Open Message Passing Interface
|
Summary: Open Message Passing Interface
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: BSD
|
License: BSD, MIT and Romio
|
||||||
URL: http://www.open-mpi.org/
|
URL: http://www.open-mpi.org/
|
||||||
# We can't use %{name} here because of _cc_name_suffix
|
# We can't use %{name} here because of _cc_name_suffix
|
||||||
Source0: http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-%{version}.tar.bz2
|
#Source0: http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-%{version}.tar.bz2
|
||||||
|
# openmpi-1.4.1-RH.tar.bz2 was generated by taking the upstream 1.4.1 tarball
|
||||||
|
# and removing license-incompatible (ras_loadleveler_module.c contained
|
||||||
|
# usage requirements that we cannot make our users comply with, and
|
||||||
|
# MoreDebugging/* is AML but unused in our configuration),
|
||||||
|
# and packaging-guidelines-incompatable (MUST use system versions of libltdl
|
||||||
|
# and libplpa, not the (formerly included ones), and also remove the generated
|
||||||
|
# Makefile.in and configure related files.
|
||||||
|
Source0: openmpi-%{version}-RH.tar.bz2
|
||||||
Source1: openmpi.module.in
|
Source1: openmpi.module.in
|
||||||
Source2: macros.openmpi
|
Source2: macros.openmpi
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gcc-gfortran, libtool, numactl-devel, valgrind-devel
|
BuildRequires: gcc-gfortran, libtool, numactl-devel, valgrind-devel
|
||||||
BuildRequires: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0
|
BuildRequires: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0
|
||||||
BuildRequires: librdmacm librdmacm-devel libibcm libibcm-devel
|
BuildRequires: librdmacm librdmacm-devel libibcm libibcm-devel
|
||||||
BuildRequires: python
|
BuildRequires: python libtool-ltdl-devel plpa-devel
|
||||||
#%ifnarch ppc
|
#%ifnarch ppc
|
||||||
#BuildRequires: compat-dapl-devel
|
#BuildRequires: compat-dapl-devel
|
||||||
#%endif
|
#%endif
|
||||||
@ -105,10 +113,11 @@ Contains development headers and libraries for openmpi
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n openmpi-%{version}
|
%setup -q -n openmpi-%{version}
|
||||||
|
./autogen.sh
|
||||||
|
%build
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
XFLAGS="-fPIC"
|
XFLAGS="-fPIC"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
./configure --prefix=%{_libdir}/%{name} --with-libnuma=/usr \
|
./configure --prefix=%{_libdir}/%{name} --with-libnuma=/usr \
|
||||||
--with-openib=/usr \
|
--with-openib=/usr \
|
||||||
--mandir=%{_mandir}/%{namearch} \
|
--mandir=%{_mandir}/%{namearch} \
|
||||||
@ -128,8 +137,6 @@ XFLAGS="-fPIC"
|
|||||||
CXXFLAGS="%{?opt_cxxflags} $RPM_OPT_FLAGS $XFLAGS" \
|
CXXFLAGS="%{?opt_cxxflags} $RPM_OPT_FLAGS $XFLAGS" \
|
||||||
FC=%{opt_fc} FCFLAGS="%{?opt_fcflags} $RPM_OPT_FLAGS $XFLAGS" \
|
FC=%{opt_fc} FCFLAGS="%{?opt_fcflags} $RPM_OPT_FLAGS $XFLAGS" \
|
||||||
F77=%{opt_f77} FFLAGS="%{?opt_fflags} $RPM_OPT_FLAGS $XFLAGS"
|
F77=%{opt_f77} FFLAGS="%{?opt_fflags} $RPM_OPT_FLAGS $XFLAGS"
|
||||||
|
|
||||||
%build
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -211,6 +218,12 @@ rm -rf %{buildroot}
|
|||||||
%{_sysconfdir}/rpm/macros.%{namearch}
|
%{_sysconfdir}/rpm/macros.%{namearch}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 29 2010 Jay Fenlason <fenlason@redhat.com> - 1.4.1-4
|
||||||
|
- Update to fix licencing and packaging issues:
|
||||||
|
Use the system plpa and ltdl librarires rather than the ones in the tarball
|
||||||
|
Remove licence incompatible files from the tarball.
|
||||||
|
- update module.in to prepend-path PYTHONPATH
|
||||||
|
|
||||||
* Tue Mar 9 2010 Jay Fenlason <fenlason@redhat.com> - 1.4.1-3
|
* Tue Mar 9 2010 Jay Fenlason <fenlason@redhat.com> - 1.4.1-3
|
||||||
- remove the pkgconfig file completely like we did in RHEL.
|
- remove the pkgconfig file completely like we did in RHEL.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user