From 71184c15cba18fff766016906b091ca622bd0377 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jul 05 2020 18:46:26 +0000 Subject: Update to new out-of-source build mechanism --- diff --git a/akonadi.spec b/akonadi.spec index 5510807..317756e 100644 --- a/akonadi.spec +++ b/akonadi.spec @@ -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