On Thursday 20 March 2014, Pengfei Hao wrote:
Maybe I didn't make it clear. What I want is to have mpicc and mpirun command to compile MPI written code, it is kind like a compiler(But only script point to gcc). Even added the BuildRequires of openmpi and openmpi-devel , the mpicc and mpirun command is not ready.
Thats why I've mentioned to look into the hdf5 package. Of course they do something with the %_mpi define from my first email: for mpi in %_mpi; do mkdir $mpi ln -s ../configure $mpi cd $mpi export CC="%{_libdir}/mpi/gcc/$mpi/bin/mpicc" export FC="%{_libdir}/mpi/gcc/$mpi/bin/mpif90" export F77="%{_libdir}/mpi/gcc/$mpi/bin/mpif77" export LD_LIBRARY_PATH="%{_libdir}/mpi/gcc/$mpi/%_lib" %configure \ --docdir=%{_docdir}/%{name} \ --prefix=%{_libdir}/mpi/gcc/$mpi \ --exec-prefix=%{_libdir}/mpi/gcc/$mpi \ --bindir=%{_libdir}/mpi/gcc/$mpi/bin \ --libdir=%{_libdir}/mpi/gcc/$mpi/%_lib \ --datadir=%{_libdir}/mpi/gcc/$mpi/share \ --includedir=%{_libdir}/mpi/gcc/$mpi/include \ --disable-dependency-tracking \ %if 0%{?suse_version} > 1140 --enable-fortran \ %endif --enable-hl \ --enable-shared \ --enable-parallel \ --with-pthread make %{?_smp_mflags} cd .. done But better look at the original hdf5.spec. cu, Rudi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org