diff --git a/konqueror.spec b/konqueror.spec index 40b0050..2877f7b 100644 --- a/konqueror.spec +++ b/konqueror.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build ## uncomment to enable bootstrap mode #global bootstrap 1 @@ -130,27 +131,15 @@ browsing the web in Konqueror. %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. \ +%{cmake_kf5} \ -Wno-dev \ %{?ninja:-G Ninja} \ %{?tests:-DBUILD_TESTING:BOOL=ON} -popd - -%if 0%{?ninja} -%ninja_build -C %{_target_platform} -%else -%make_build -C %{_target_platform} -%endif +%cmake_build %install -%if 0%{?ninja} -%ninja_install -C %{_target_platform} -%else -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} -%endif +%cmake_install # omit some extraneous webenginepart files when building without webengine support %if ! 0%{?webengine}