adapt to the new CMake macros to fix build failure

This commit is contained in:
ChenYanpan 2024-11-18 17:58:37 +08:00
parent 3ab5789a3f
commit 7ecc2e92fe
No known key found for this signature in database
GPG Key ID: 743990DD9697055F

View File

@ -4,7 +4,7 @@
Name: kf5-%{framework}
Version: 5.113.0
Release: 1
Release: 2
Summary: KDE Frameworks 5 Tier 3 module for KNotify configuration
License: LGPLv2+
@ -37,7 +37,7 @@ BuildRequires: phonon-qt5-devel
BuildRequires: qt5-qtbase-devel
%if !0%{?bootstrap}
BuildRequires: qt5-qtspeech-devel
BuildRequires: qt5-qtspeech-devel
%endif
%if 0%{?tests}
@ -62,18 +62,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 %{?_smp_mflags} -C %{_target_platform}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
%find_lang %{name} --all-name
@ -105,6 +101,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
%changelog
* Mon Nov 18 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 haomimi <haomimi@uniontech.com> - 5.113.0-1
- Update to upstream version 5.113.0
@ -134,4 +133,3 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
* Mon Jan 24 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.88.0-1
- update to upstream version 5.88.0