From 46a9acb7e5333745394cd5b2bd9b02292e079ebc Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Jul 03 2015 15:07:54 +0000 Subject: Use python_provide conditionally to build an srpm on koji --- diff --git a/mpi4py.spec b/mpi4py.spec index 7c9ff0b..1593eea 100644 --- a/mpi4py.spec +++ b/mpi4py.spec @@ -76,7 +76,7 @@ This package contains the documentation and examples for %{name}. Requires: %{name}-common = %{version}-%{release} Summary: Python bindings of the Message Passing Interface (MPI) Group: Development/Languages -%python_provide python3-mpi4py +%{?python_provide:%python_provide python3-mpi4py} %description -n python3-mpi4py This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++ @@ -92,7 +92,7 @@ Requires: openmpi Requires: %{name}-common = %{version}-%{release} Summary: Python bindings of MPI, Open MPI version Provides: python3-mpi4py-runtime = %{version}-%{release} -%python_provide python3-mpi4py-openmpi +%{?python_provide:%python_provide python3-mpi4py-openmpi} %description -n python3-mpi4py-openmpi This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++ @@ -113,8 +113,8 @@ Requires: %{name}-common = %{version}-%{release} Summary: Python bindings of MPI, MPICH version Provides: python3-mpi4py-runtime = %{version}-%{release} Provides: python3-%{name}-mpich2 = %{version}-%{release} -Obsoletes: python3-%{name}-mpich2 < 1.3-8 -%python_provide python3-mpi4py-mpich +Obsoletes: python3-%{name}-mpich2 < 1.3-8 +%{?python_provide:%python_provide python3-mpi4py-mpich} %description -n python3-mpi4py-mpich This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++ @@ -143,7 +143,7 @@ Requires: %{name}-common = %{version}-%{release} Provides: python2-mpi4py-openmpi = %{version}-%{release} Summary: Python bindings of MPI, Open MPI version Provides: mpi4py-runtime = %{version}-%{release} -%python_provide python2-mpi4py-openmpi +%{?python_provide:%python_provide python2-mpi4py-openmpi} %description openmpi This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++ @@ -164,9 +164,9 @@ Requires: %{name}-common = %{version}-%{release} Provides: python2-mpi4py-mpich = %{version}-%{release} Summary: Python bindings of MPI, MPICH version Provides: mpi4py-runtime = %{version}-%{release} -Provides: %{name}-mpich2 = %{version}-%{release} -Obsoletes: %{name}-mpich2 < 1.3-8 -%python_provide python2-mpi4py-mpich +Provides: %{name}-mpich2 = %{version}-%{release} +Obsoletes: %{name}-mpich2 < 1.3-8 +%{?python_provide:%python_provide python2-mpi4py-mpich} %description mpich This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++