Fix ELN build issue

The 'fedora' macro had been removed from RHEL9 ELN build.
We will have to use the 'rhel' macro for RHEL9 ELN build.

Signed-off-by: Honggang Li <honli@redhat.com>
This commit is contained in:
Honggang Li 2021-01-25 03:29:29 -05:00
parent 4e8f1a588f
commit 6495ad1e5e

View File

@ -1,6 +1,6 @@
Name: rdma-core Name: rdma-core
Version: 33.0 Version: 33.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: RDMA core userspace libraries and daemons Summary: RDMA core userspace libraries and daemons
# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license # Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
@ -67,7 +67,7 @@ Conflicts: infiniband-diags <= 1.6.7
# Ninja was introduced in FC23 # Ninja was introduced in FC23
BuildRequires: ninja-build BuildRequires: ninja-build
%define CMAKE_FLAGS -GNinja %define CMAKE_FLAGS -GNinja
%if 0%{?fedora} >= 33 %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
%define make_jobs ninja-build -C %{_vpath_builddir} -v %{?_smp_mflags} %define make_jobs ninja-build -C %{_vpath_builddir} -v %{?_smp_mflags}
%define cmake_install DESTDIR=%{buildroot} ninja-build -C %{_vpath_builddir} install %define cmake_install DESTDIR=%{buildroot} ninja-build -C %{_vpath_builddir} install
%else %else
@ -646,6 +646,9 @@ fi
%endif %endif
%changelog %changelog
* Mon Jan 25 2021 Honggang Li <honli@redhat.com> - 33.0-3
- Fix ELN build issue
* Thu Jan 21 2021 Honggang Li <honli@redhat.com> - 33.0-2 * Thu Jan 21 2021 Honggang Li <honli@redhat.com> - 33.0-2
- libibverbs obsoletes libibverbs-core for fedora-34 - libibverbs obsoletes libibverbs-core for fedora-34