From 460d3e85c698bff34961d35e9e3def3df5106b72 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Tue, 17 Nov 2020 19:17:29 +0100 Subject: [PATCH] fix [packaging/rpm]: build for fedora >= 33 --- packaging/rpm/freerdp-nightly.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/rpm/freerdp-nightly.spec b/packaging/rpm/freerdp-nightly.spec index f17bfac4c..80dfae4d1 100644 --- a/packaging/rpm/freerdp-nightly.spec +++ b/packaging/rpm/freerdp-nightly.spec @@ -138,7 +138,11 @@ cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version %endif -DCMAKE_INSTALL_LIBDIR=%{_lib} +%if 0%{?fedora} > 32 +%cmake_build +%else make %{?_smp_mflags} +%endif %install %if %{defined suse_version} @@ -146,8 +150,12 @@ make %{?_smp_mflags} %endif %if %{defined fedora} || %{defined rhel} +%if 0%{?fedora} > 32 +%cmake_install +%else rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +%endif %endif find %{buildroot} -name "*.a" -delete