!5 fixed konsole5 build failure in openEuler-24.03-LTS-SP1:epol

From: @chenyanpanX 
Reviewed-by: @misaka00251 
Signed-off-by: @misaka00251
This commit is contained in:
openeuler-ci-bot 2024-11-18 06:47:31 +00:00 committed by Gitee
commit f9eb80397d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -10,7 +10,7 @@
Name: konsole5
Summary: KDE Terminal emulator
Version: 23.08.4
Release: 1
Release: 2
License: GPLv2 and GFDL-1.2-or-later
URL: http://www.kde.org/applications/system/konsole/
@ -89,16 +89,12 @@ Summary: Konsole5 kpart plugin
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
%{?tests:-DBUILD_TESTING:BOOL=ON}
popd
%make_build -C %{_target_platform}
%{cmake_kf5}
%{cmake_build}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{cmake_install}
install -m644 -p -b -D %{SOURCE10} %{buildroot}%{_kf5_sysconfdir}/xdg/konsolerc
@ -109,15 +105,7 @@ desktop-file-edit --set-key=StartupWMClass --set-value=konsole %{buildroot}%{_kf
%check
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.konsole.appdata.xml ||:
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.konsole.desktop
%if 0%{?tests}
test "$(xvfb-run -a %{_target_platform}/src/konsole --version)" = "konsole %{version}" ||:
export CTEST_OUTPUT_ON_FAILURE=1
DBUS_SESSION_BUS_ADDRESS=
xvfb-run -a \
make test -C %{_target_platform} ARGS="--output-on-failure --timeout 30" ||:
%endif
%{ctest}
%files -f konsole.lang
@ -153,6 +141,9 @@ make test -C %{_target_platform} ARGS="--output-on-failure --timeout 30" ||:
%changelog
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 23.08.4-2
- adapt to the new CMake macros to fix build failure
* Mon Jan 08 2024 zhangxianting <zhangxianting@unintech.com> - 23.08.4-1
- Update package to version 23.08.4