!38 adapt to the new CMake macros to fix build failure

From: @hua_yadong 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2024-11-21 02:07:59 +00:00 committed by Gitee
commit 053dbadfb2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: ukui-kwin
Version: 1.0.5
Release: 7
Release: 8
Summary: KDE Window Manager for UKUI desktop environment
License: GPL-2.0-or-later and LGPL-2.0-or-later
URL: https://github.com/ukui/ukui-kwin
@ -98,17 +98,14 @@ Summary: UKUI window manager effects library
%autosetup -n %{name}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=ON
popd
%make_build -C %{_target_platform} -j4
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
ln -s ukui-kwin_x11 %{buildroot}%{_bindir}/ukui-kwin
mkdir -p %{buildroot}%{_datadir}/licenses/ukui-kwin
@ -205,6 +202,9 @@ cp COPYING* %{buildroot}%{_datadir}/licenses/ukui-kwin/
%changelog
* Wed Nov 20 2024 huayadong<huayadong@kylinos.cn> - 1.0.5-8
- adapt to the new CMake macros to fix build failure
* Tue Aug 29 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-7
- update qt5-qttools-devel to qt5-qttools-static