diff --git a/mumps.changes b/mumps.changes index d0b9beb..80f3fef 100644 --- a/mumps.changes +++ b/mumps.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 22 20:20:13 UTC 2013 - scorot@free.fr + +- fix build for Factory and recent openmpi + ------------------------------------------------------------------- Wed Sep 19 21:08:02 UTC 2012 - scorot@free.fr diff --git a/mumps.spec b/mumps.spec index 4572d2f..0590bf4 100644 --- a/mumps.spec +++ b/mumps.spec @@ -284,7 +284,11 @@ cp -f %{S:1} Makefile.inc export LD_LIBRARY_PATH=%{_libdir}/mpi/gcc/openmpi/%_lib make MUMPS_MPI=openmpi \ FC=%{_libdir}/mpi/gcc/openmpi/bin/mpif77 \ +%if 0%{?suse_version} > 1230 + MUMPS_LIBF77="-L%{_libdir}/mpi/gcc/openmpi/%_lib -lmpi_mpifh -lmpi" \ +%else MUMPS_LIBF77="-L%{_libdir}/mpi/gcc/openmpi/%_lib -lmpi_f77 -lmpi" \ +%endif OPTC="$RPM_OPT_FLAGS" \ INCPAR=-I%{_libdir}/mpi/gcc/openmpi/include \ PLAT="_ptscotch" all @@ -317,7 +321,11 @@ cp %{S:4} Makefile.inc export LD_LIBRARY_PATH=%{_libdir}/mpi/gcc/openmpi/%_lib make MUMPS_MPI=openmpi \ FC=%{_libdir}/mpi/gcc/openmpi/bin/mpif77 \ +%if 0%{?suse_version} > 1230 + MUMPS_LIBF77="-L%{_libdir}/mpi/gcc/openmpi/%_lib -lmpi_mpifh -lmpi" \ +%else MUMPS_LIBF77="-L%{_libdir}/mpi/gcc/openmpi/%_lib -lmpi_f77 -lmpi" \ +%endif OPTC="$RPM_OPT_FLAGS" all # build test programs cd examples