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