!24 fixed kf5-knotifyconfig build failure in openEuler-24.03-LTS-SP1:epol

From: @chenyanpanX 
Reviewed-by: @misaka00251 
Signed-off-by: @misaka00251
This commit is contained in:
openeuler-ci-bot 2024-11-19 07:10:13 +00:00 committed by Gitee
commit 216b54cabc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,7 +4,7 @@
Name: kf5-%{framework}
Version: 5.113.0
Release: 1
Release: 2
Summary: KDE Frameworks 5 Tier 3 module for KNotify configuration
License: LGPLv2+
@ -37,7 +37,7 @@ BuildRequires: phonon-qt5-devel
BuildRequires: qt5-qtbase-devel
%if !0%{?bootstrap}
BuildRequires: qt5-qtspeech-devel
BuildRequires: qt5-qtspeech-devel
%endif
%if 0%{?tests}
@ -62,18 +62,14 @@ developing applications that use %{name}.
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
%{cmake_kf5} \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
make %{?_smp_mflags} -C %{_target_platform}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang %{name} --all-name
@ -105,6 +101,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
%changelog
* Mon Nov 18 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 haomimi <haomimi@uniontech.com> - 5.113.0-1
- Update to upstream version 5.113.0
@ -134,4 +133,3 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
* Mon Jan 24 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.88.0-1
- update to upstream version 5.88.0