Update to new out-of-source build mechanism

This commit is contained in:
Neal Gompa 2020-07-05 14:46:26 -04:00
commit 71184c15cb

View file

@ -1,3 +1,5 @@
# Force out of source build
%undefine __cmake_in_source_build
# base pkg default to SQLITE now, install -mysql if you want that instead
%global database_backend SQLITE
@ -76,17 +78,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake} .. \
-DCMAKE_BUILD_TYPE:STRING="Release"
popd
make %{?_smp_mflags} -C %{_target_platform}
%cmake -DCMAKE_BUILD_TYPE:STRING="Release"
%cmake_build
%install
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
%cmake_install
## unpackaged files
rm -fv %{buildroot}%{_datadir}/mime/packages/akonadi-mime.xml