From 3aa06e31171b8ebba678ef930f40bf70016e6176 Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Jun 12 2017 14:58:09 +0000 Subject: Weaken the python3 bindings base package dependency for modular builds Different parts of libreports are built and shipped with different modules in F26 Boltron, namely modules/shared-userspace and modules/dnf. This allows libreport-python3 from modules/dnf work with libreport from modules/shared-userspace even though they have different dist tags. This only affects modularity builds and shouldn't be needed beyond F26 Boltron. Signed-off-by: Petr Šabata --- diff --git a/libreport.spec b/libreport.spec index bced734..e68b9a8 100644 --- a/libreport.spec +++ b/libreport.spec @@ -49,6 +49,12 @@ BuildRequires: augeas-devel BuildRequires: augeas BuildRequires: xz BuildRequires: lz4 + +# Required for the temporary modularity hack, see below +%if 0%{?_module_build} +BuildRequires: sed +%endif + Requires: libreport-filesystem = %{version}-%{release} Requires: satyr >= %{satyr_ver} Requires: xz @@ -103,7 +109,17 @@ Python bindings for report-libs. %package python3 Summary: Python 3 bindings for report-libs +%if 0%{?_module_build} +# This is required for F26 Boltron (the modular release) +# Different parts of libreport are shipped with different +# modules with different dist tags; we need to weaken the +# strict NVR dependency to make it work. Temporary and +# limited to F26 Boltron. +%global distfreerelease %(echo %{release}|sed 's/%{?dist}$//'||echo 0) +Requires: libreport >= %{version}-%{distfreerelease} +%else Requires: libreport = %{version}-%{release} +%endif Requires: dnf %description python3