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