adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-15 19:39:53 +08:00
parent 77d91b8b11
commit 3af8a871d1
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -11,7 +11,7 @@
Name: kf5-%{framework}
Epoch: 1
Version: 5.113.0
Release: 1
Release: 2
Summary: The KHolidays Library
License: LGPLv2+ and GPLv3+
URL: https://invent.kde.org/frameworks/%{framework}
@ -48,28 +48,18 @@ developing applications that use %{name}.
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%cmake_kf5 .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%{cmake_kf5}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang_kf5 libkholidays5_qt
%check
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
dbus-launch --exit-with-session \
time \
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif
%{ctest}
%ldconfig_scriptlets
@ -88,6 +78,9 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%changelog
* Sun Nov 17 2024 ChenYanpan <chenyanpan@xfusion.com> - 1:5.113.0-2
- adapt to the new CMake macros to fix build failure
* Wed Jan 03 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1:5.113.0-1
- Update package to version 5.113.0