Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 59744762a7
commit b47eed1ab0
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -1,3 +1,5 @@
%undefine __cmake_in_source_build
## bootstrap, omit problematic optional build deps) ## bootstrap, omit problematic optional build deps)
#global bootstrap 1 #global bootstrap 1
@ -108,31 +110,27 @@ Supplements: (kde-runtime and plasma-workspace)
%build %build
mkdir %{_target_platform} %{cmake_kf5}
pushd %{_target_platform} %cmake_build
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}
%if 0%{?build_kde4} %if 0%{?build_kde4}
mkdir %{_target_platform}_kde4 %global _vpath_builddir %{_target_platform}-kde4
pushd %{_target_platform}_kde4 %{cmake_kde4} -DUSE_KDE4=TRUE -B %{_vpath_builddir}
%{cmake_kde4} -DUSE_KDE4=TRUE .. %cmake_build
popd %undefine _vpath_builddir
%make_build -C %{_target_platform}_kde4
%endif %endif
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %cmake_install
%find_lang breeze --all-name %find_lang breeze --all-name
%if 0%{?build_kde4} %if 0%{?build_kde4}
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}_kde4 %global _vpath_builddir %{_target_platform}-kde4
%cmake_install
%undefine _vpath_builddir
%endif %endif
# omit/rename kde4breeze.upd, seems to be causing problems for # omit/rename kde4breeze.upd, seems to be causing problems for

Loading…
Cancel
Save