fix [packaging/rpm]: build for fedora >= 33
This commit is contained in:
parent
9d435480c5
commit
460d3e85c6
@ -138,7 +138,11 @@ cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version
|
|||||||
%endif
|
%endif
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
||||||
|
|
||||||
|
%if 0%{?fedora} > 32
|
||||||
|
%cmake_build
|
||||||
|
%else
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{defined suse_version}
|
%if %{defined suse_version}
|
||||||
@ -146,9 +150,13 @@ make %{?_smp_mflags}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{defined fedora} || %{defined rhel}
|
%if %{defined fedora} || %{defined rhel}
|
||||||
|
%if 0%{?fedora} > 32
|
||||||
|
%cmake_install
|
||||||
|
%else
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
find %{buildroot} -name "*.a" -delete
|
find %{buildroot} -name "*.a" -delete
|
||||||
export NO_BRP_CHECK_RPATH true
|
export NO_BRP_CHECK_RPATH true
|
||||||
|
Loading…
Reference in New Issue
Block a user