!8 fixed kf5-baloo 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-18 07:51:37 +00:00 committed by Gitee
commit e4350ef071
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -10,7 +10,7 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality
Version: 5.113.0 Version: 5.113.0
Release: 1 Release: 2
License: (LGPLv2 or LGPLv3) and (GPLv2 or GPLv3) License: (LGPLv2 or LGPLv3) and (GPLv2 or GPLv3)
URL: https://community.kde.org/Baloo URL: https://community.kde.org/Baloo
@ -88,16 +88,12 @@ License: LGPLv2 or LGPLv3
%build %build
mkdir %{_target_platform} %{cmake_kf5}
pushd %{_target_platform} %{cmake_build}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{cmake_install}
%if 0%{?flatpak:1} %if 0%{?flatpak:1}
rm -fv %{buildroot}%{_userunitdir}/kde-baloo.service rm -fv %{buildroot}%{_userunitdir}/kde-baloo.service
@ -129,13 +125,7 @@ cat baloo_file5.lang baloo_file_extractor5.lang \
%check %check
%if 0%{?tests} %{ctest}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
dbus-launch --exit-with-session \
time \
make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%endif
%files -f %{name}.lang %files -f %{name}.lang
@ -181,6 +171,9 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%changelog %changelog
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
- adapt to the new CMake macros to fix build failure
* Wed Jan 03 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.113.0-1 * Wed Jan 03 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.113.0-1
- Update package to version 5.113.0 - Update package to version 5.113.0