diff --git a/mumps.changes b/mumps.changes index 7929f73..0ef6e93 100644 --- a/mumps.changes +++ b/mumps.changes @@ -9,6 +9,8 @@ Sat Feb 9 13:40:09 UTC 2019 - eich@suse.com - Build example binaries against shared libs for all builds. - Add Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch: make sure builds are serialized for 'make -j ' +- Version mumps, requires and buildrequires. +- Only include requires for the respecive flavor (non-scotch, scotch). ------------------------------------------------------------------- Fri Feb 8 12:03:01 UTC 2019 - eich@suse.com diff --git a/mumps.spec b/mumps.spec index 834b4fa..78be376 100644 --- a/mumps.spec +++ b/mumps.spec @@ -212,16 +212,10 @@ Source1: Makefile.inc Patch1: Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch %if %{without hpc} BuildRequires: gcc-fortran -BuildRequires: scotch-devel +%{?with_scotch:BuildRequires: %{scotch}%{?with_mpi:-%{mpi_family}}-devel} %if %{with mpi} -BuildRequires: libmumps%{?so_ver} -BuildRequires: %{pname}-devel -BuildRequires: %{pname}-devel-static -# Needed for non-HPC MPI builds to link to it from the MPI libdir - see below. -BuildRequires: libmumps-scotch%{?so_ver} -BuildRequires: %{pname}-scotch-devel -BuildRequires: %{pname}-scotch-devel-static -BuildRequires: ptscotch-%{mpi_family}-devel +BuildRequires: %{pname}%{?scotch:-scotch}-devel = %version +BuildRequires: %{pname}%{?scotch:-scotch}-devel-static = %version BuildRequires: %{mpi_family}-devel BuildRequires: scalapack-%{mpi_family}-devel BuildRequires: libblacs2-%{mpi_family}-devel @@ -271,7 +265,11 @@ This package contains the parallel library%{?with_mpi: with %{mpi_family}}%{?sco %package %{so_ver}-compat Summary: A MUltifrontal Massively Parallel Sparse direct Solver Group: System/Libraries -Requires: lib%{pname}%{?scotch:-scotch}%{so_ver} +%if %{without hpc} && %{with mpi} +# Needed for non-HPC MPI builds to link to it from the MPI libdir - see below. +BuildRequires: lib%{pname}%{?scotch:-scotch}%{so_ver} = %{version} +%endif +Requires: lib%{pname}%{?scotch:-scotch}%{so_ver} = %{version} %description %{so_ver}-compat MUMPS implements a direct solver for large sparse linear systems, with a @@ -352,7 +350,7 @@ Static libraries for %{package_name}. %package %{so_ver}-static-compat Summary: Files needed for developing mumps based applications Group: Development/Libraries/Other -Requires: lib%{pname}%{?scotch:-scotch}%{so_ver}-static +Requires: lib%{pname}%{?scotch:-scotch}%{so_ver}-static = %version %description %{so_ver}-static-compat MUMPS implements a direct solver for large sparse linear systems, with a