diff --git a/akregator.spec b/akregator.spec index 9f6bcc0..5b0d090 100644 --- a/akregator.spec +++ b/akregator.spec @@ -1,3 +1,5 @@ +# Force out of source build +%undefine __cmake_in_source_build # uncomment to enable bootstrap mode #global bootstrap 1 @@ -93,17 +95,12 @@ Requires: %{name} = %{version}-%{release} %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. \ - -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} -popd - -%make_build -C %{_target_platform} +%cmake_kf5 -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} +%cmake_build %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%cmake_install %find_lang %{name} --all-name --with-html