fix [packaging/rpm]: build for fedora >= 33

This commit is contained in:
Bernhard Miklautz 2020-11-17 19:17:29 +01:00 committed by akallabeth
parent 9d435480c5
commit 460d3e85c6

View File

@ -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,9 +150,13 @@ 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
export NO_BRP_CHECK_RPATH true