#
# Conditional build:
%bcond_with tests # build with tests
-%define kdeappsver 22.08.1
+%define kdeappsver 23.08.5
%define qtver 5.15.2
%define kf5ver 5.71.0
%define kaname konsole
Summary: KDE Terminal Emulator
Name: ka5-%{kaname}
-Version: 22.08.1
+Version: 23.08.5
Release: 1
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 59acbbba63fc7a2c8ee1955639c3f2c7
+# Source0-md5: 7c7297f44101d0765c9d843fc99a44d6
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5DBus-devel >= %{qtver}
BuildRequires: Qt5PrintSupport-devel >= %{qtver}
BuildRequires: Qt5Widgets-devel >= %{qtver}
-BuildRequires: cmake >= 3.13
+BuildRequires: cmake >= 3.20
BuildRequires: kf5-extra-cmake-modules >= %{kf5ver}
BuildRequires: kf5-kbookmarks-devel >= %{kf5ver}
BuildRequires: kf5-kconfig-devel >= %{kf5ver}
%setup -q -n %{kaname}-%{version}
%build
-install -d build
-cd build
%cmake \
+ -B build \
-G Ninja \
%{!?with_tests:-DBUILD_TESTING=OFF} \
-DHTML_INSTALL_DIR=%{_kdedocdir} \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- ..
-%ninja_build
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+%ninja_build -C build
%if %{with tests}
-ctest
+ctest --test-dir build
%endif
%ninja_install -C build
rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,zh_CN}
+
+# not supported by glibc yet
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
+
%find_lang %{kaname} --all-name --with-kde
%clean
%files -f %{kaname}.lang
%defattr(644,root,root,755)
-%defattr(644,root,root,755)
+/etc/xdg/konsolerc
%attr(755,root,root) %{_bindir}/konsole
%attr(755,root,root) %{_bindir}/konsoleprofile
%ghost %{_libdir}/libkonsoleprivate.so.1
%{_datadir}/kservicetypes5/terminalemulator.desktop
%{_datadir}/knsrcfiles/konsole.knsrc
%{_datadir}/qlogging-categories5/konsole.categories
-%attr(755,root,root) %{_libdir}/kconf_update_bin/konsole_globalaccel
%attr(755,root,root) %{_libdir}/qt5/plugins/konsoleplugins/konsole_quickcommandsplugin.so
-%{_datadir}/kconf_update/konsole_globalaccel.upd
%{_datadir}/kio/servicemenus/konsolerun.desktop
+%attr(755,root,root)%{_libdir}/kconf_update_bin/konsole_globalaccel
+%attr(755,root,root)%{_libdir}/kconf_update_bin/konsole_show_menubar
+%{_datadir}/kconf_update/konsole.upd
+%attr(755,root,root)%{_datadir}/kconf_update/konsole_add_hamburgermenu_to_toolbar.sh
+%{zsh_compdir}/_konsole
+%{_datadir}/kglobalaccel/org.kde.konsole.desktop