Packaging:rpm: Add support to create rpm on RHEL8.2
@@ -68,7 +68,11 @@ OPAE headers, tools, sample source, and documentation
%build
%cmake -DOPAE_MINIMAL_BUILD=ON
+%if 0%{?rhel}
+ %make_build
+%else
%cmake_build
+%endif
%install
mkdir -p %{buildroot}%{_datadir}/opae
@@ -126,7 +130,11 @@ cp binaries/opae.io/opae/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/opae
cp binaries/opae.io/opae/io/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/opae/io
cp binaries/opae.io/scripts/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/scripts
+%if 0%{?rhel}
+ %make_install
+%else
%cmake_install
+%endif
prev=$PWD
pushd %{_topdir}/BUILD/%{name}-%{version}-%{opae_release}/python/opae.admin/
