adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-19 11:03:12 +08:00
parent a3ce03b27f
commit 7fdbe5411c
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -8,7 +8,7 @@
Name: kwin
Version: 5.27.10
Release: 1
Release: 2
Summary: KDE Window manager
# all sources are effectively GPLv2+, except for:
@ -229,17 +229,14 @@ sed -i \
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
%{cmake_kf5} \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang %{name} --with-html --all-name
grep "%{_kf5_docdir}" %{name}.lang > %{name}-doc.lang
@ -333,6 +330,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
%changelog
* Tue Nov 19 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.27.10-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 zhangxianting <zhangxianting@unintech.com> - 5.27.10-1
- update to upstream version 5.27.10
@ -356,4 +356,3 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
* Fri Aug 07 2020 weidong <weidong@uniontech.com> - 5.15.4-1
- Initial release for OpenEuler