From dbc3dfe5c6ea206dc1dcb27c3fbfc05c6879e734 Mon Sep 17 00:00:00 2001 From: ChenYanpan Date: Mon, 18 Nov 2024 20:24:07 +0800 Subject: [PATCH] adapt to the new CMake macros to fix build failure --- kf5-akonadi-mime.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/kf5-akonadi-mime.spec b/kf5-akonadi-mime.spec index 871f879..d530cc4 100644 --- a/kf5-akonadi-mime.spec +++ b/kf5-akonadi-mime.spec @@ -9,7 +9,7 @@ Name: kf5-%{framework} Version: 23.08.4 -Release: 1 +Release: 2 Summary: The Akonadi Mime Library License: LGPLv2+ URL: https://invent.kde.org/frameworks/%{framework} @@ -68,15 +68,14 @@ developing applications that use %{name}. %autosetup -n %{framework}-%{version} -p1 %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} --all-name @@ -99,7 +98,7 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||: %{_kf5_libdir}/libKPim5AkonadiMime.so.* %{_kf5_qtplugindir}/akonadi_serializer_mail.so -%files devel +%files devel %if 0%{?tests} %{_kf5_bindir}/akonadi_benchmarker %endif @@ -110,6 +109,9 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||: %{_kf5_libdir}/libKPim5AkonadiMime.so %changelog +* Mon Nov 18 2024 ChenYanpan - 23.08.4-2 +- adapt to the new CMake macros to fix build failure + * Mon Jan 15 2024 Tianze Li - 23.08.4-1 - Update package to version 23.08.4