adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-18 20:24:12 +08:00
parent 3c0e73b02f
commit 52e41e72b1
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -10,7 +10,7 @@
Name: kf5-%{framework}
Version: 23.08.4
Release: 1
Release: 2
Summary: The KIMAP Library
License: GPLv2+ and LGPLv2+
@ -63,16 +63,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_build -C %{_target_platform}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang %{name} --all-name --with-html
@ -104,6 +102,9 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
%changelog
* Mon Nov 18 2024 ChenYanpan <chenyanpan@xfusion.com> - 23.08.4-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 peijiankang <peijiankang@kylinos.cn> - 23.08.4-1
- update verison to 23.08.4