fix build error

(cherry picked from commit 8c862a8b1bc7245b7de0d7f6e915b07778a7a945)
This commit is contained in:
peijiankang 2025-02-20 15:04:31 +08:00 committed by openeuler-sync-bot
parent 8bda3b4aee
commit 490cb344a4

View File

@ -3,10 +3,10 @@
Name: kf5-%{framework}
Version: 5.113.0
Release: 2
Release: 3
Summary: KDE Frameworks 5 Tier 2 module providing Pty abstraction
License: LGPLv2+ and GPLv2+
License: BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.0-or-later
URL: https://invent.kde.org/frameworks/%{framework}
%global majmin %majmin_ver_kf5
@ -41,12 +41,16 @@ developing applications that use %{name}.
%build
%{cmake_kf5}
%{cmake_build}
# find_program for utempter is failing for some reason, so
# set path explicitly to known-good value
%cmake_kf5 \
-DUTEMPTER_EXECUTABLE:PATH=/usr/libexec/utempter/utempter
%cmake_build
%install
%{cmake_install}
%cmake_install
%find_lang %{name} --all-name --with-man
@ -67,6 +71,9 @@ developing applications that use %{name}.
%changelog
* Thu Feb 20 2025 peijiankang <peijiankang@kylinos.cn> - 5.113.0-3
- fi kwrited build error
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.113.0-2
- adapt to the new CMake macros to fix build failure