adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-15 19:40:37 +08:00
parent a296e0ed43
commit c15f845ca1
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -9,7 +9,7 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 23.08.4 Version: 23.08.4
Release: 1 Release: 2
Summary: The KPimTextEdit Library Summary: The KPimTextEdit Library
License: LGPLv2+ License: LGPLv2+
@ -91,26 +91,18 @@ developing applications that use %{name}.
%build %build
%cmake_kf5 \ %{cmake_kf5}
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} %{cmake_build}
%make_build
%install %install
make install/fast DESTDIR=%{buildroot} %{cmake_install}
%find_lang %{name} --all-name --with-html %find_lang %{name} --all-name --with-html
%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 30" -C %{_target_platform} ||:
%endif
%ldconfig_scriptlets %ldconfig_scriptlets
@ -130,6 +122,9 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
%changelog %changelog
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 23.08.4-2
- adapt to the new CMake macros to fix build failure
* Thu Jan 11 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 23.08.4-1 * Thu Jan 11 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 23.08.4-1
- Update package to version 23.08.4 - Update package to version 23.08.4
@ -138,4 +133,3 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
* Tue Apr 25 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1 * Tue Apr 25 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1
- Init Package for openEuler - Init Package for openEuler