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 <contyk@redhat.com>
This commit is contained in:
parent
8065018638
commit
3aa06e3117
@ -49,6 +49,12 @@ BuildRequires: augeas-devel
|
|||||||
BuildRequires: augeas
|
BuildRequires: augeas
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: lz4
|
BuildRequires: lz4
|
||||||
|
|
||||||
|
# Required for the temporary modularity hack, see below
|
||||||
|
%if 0%{?_module_build}
|
||||||
|
BuildRequires: sed
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: libreport-filesystem = %{version}-%{release}
|
Requires: libreport-filesystem = %{version}-%{release}
|
||||||
Requires: satyr >= %{satyr_ver}
|
Requires: satyr >= %{satyr_ver}
|
||||||
Requires: xz
|
Requires: xz
|
||||||
@ -103,7 +109,17 @@ Python bindings for report-libs.
|
|||||||
|
|
||||||
%package python3
|
%package python3
|
||||||
Summary: Python 3 bindings for report-libs
|
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}
|
Requires: libreport = %{version}-%{release}
|
||||||
|
%endif
|
||||||
Requires: dnf
|
Requires: dnf
|
||||||
|
|
||||||
%description python3
|
%description python3
|
||||||
|
Loading…
Reference in New Issue
Block a user