Add upstream fix for building libmodulemd on EL7

This commit is contained in:
Jan Kolarik 2023-04-04 14:36:34 +02:00
parent d2ae6b7155
commit 5084785aba

View File

@ -16,7 +16,7 @@
%bcond_without zchunk
%endif
%if 0%{?rhel} && 0%{?rhel} < 8
%if 0%{?rhel} && 0%{?rhel} < 7
%bcond_with libmodulemd
%else
%bcond_without libmodulemd
@ -56,9 +56,14 @@ BuildRequires: zchunk
%endif
%if %{with libmodulemd}
BuildRequires: pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: libmodulemd2
Requires: libmodulemd2%{?_isa} >= %{libmodulemd_version}
%else
BuildRequires: libmodulemd
Requires: libmodulemd%{?_isa} >= %{libmodulemd_version}
%endif
%endif
Requires: %{name}-libs = %{version}-%{release}
BuildRequires: bash-completion
Requires: rpm >= 4.9.0