# uncomment to enable bootstrap mode #global bootstrap 1 %if !0%{?bootstrap} %global tests 1 %endif %global base_name konsole Name: konsole5 Summary: KDE Terminal emulator Version: 19.04.1 Release: 1%{?dist} # sources: MIT and LGPLv2 and LGPLv2+ and GPLv2+ License: GPLv2 and GFDL URL: http://www.kde.org/applications/system/konsole/ #URL: http://konsole.kde.org/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{base_name}-%{version}.tar.xz ## upstreamable patches ## upstream patches # master branch ## downstream patches Patch200: konsole-history_location_default.patch # custom konsolerc that sets default to cache as well Source10: konsolerc Obsoletes: konsole < 14.12 Provides: konsole = %{version}-%{release} %global maj_ver %(echo %{version} | cut -d. -f1) BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: pkgconfig(x11) BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5Bookmarks) BuildRequires: cmake(KF5Completion) BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5GlobalAccel) BuildRequires: cmake(KF5GuiAddons) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5IconThemes) BuildRequires: cmake(KF5Init) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5NewStuff) BuildRequires: cmake(KF5NewStuffCore) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5NotifyConfig) BuildRequires: cmake(KF5Parts) BuildRequires: cmake(KF5Pty) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5TextWidgets) BuildRequires: cmake(KF5WidgetsAddons) BuildRequires: cmake(KF5WindowSystem) BuildRequires: cmake(KF5XmlGui) ## TODO? #BuildRequires: kf5-konq-devel BuildRequires: libappstream-glib BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtscript-devel %if 0%{?tests} BuildRequires: xorg-x11-server-Xvfb dbus-x11 %endif # translations moved here Conflicts: kde-l10n < 17.03 Requires: %{name}-part%{?_isa} = %{version}-%{release} Requires: keditbookmarks %{?kf5_kinit_requires} %description %{summary}. %package part Summary: Konsole5 kpart plugin %description part %{summary}. %prep %autosetup -n %{base_name}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ %{?tests:-DBUILD_TESTING:BOOL=ON} popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} install -m644 -p -b -D %{SOURCE10} %{buildroot}%{_kf5_sysconfdir}/xdg/konsolerc %find_lang konsole --with-html # add startupWMClass=konsole if not already present grep 'StartupWMClass=' %{buildroot}%{_kf5_datadir}/applications/org.kde.konsole.desktop >& /dev/null || \ desktop-file-edit --set-key=StartupWMClass --set-value=konsole %{buildroot}%{_kf5_datadir}/applications/org.kde.konsole.desktop %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 %files -f konsole.lang %doc README %{_kf5_sysconfdir}/xdg/konsole.* %{_kf5_bindir}/konsole %{_kf5_bindir}/konsoleprofile %{_kf5_libdir}/libkdeinit5_konsole.so %{_kf5_datadir}/applications/org.kde.konsole.desktop %{_kf5_metainfodir}/org.kde.konsole.appdata.xml %{_kf5_datadir}/khotkeys/konsole.* %{_kf5_datadir}/knotifications5/konsole.notifyrc %{_kf5_datadir}/kservices5/ServiceMenus/konsolehere.desktop %{_kf5_datadir}/kservices5/ServiceMenus/konsolerun.desktop %{_kf5_datadir}/kservicetypes5/terminalemulator.desktop %ldconfig_scriptlets part %files part %license COPYING* %config(noreplace) %{_kf5_sysconfdir}/xdg/konsolerc %{_kf5_datadir}/konsole/ %{_kf5_libdir}/libkonsoleprivate.so.%{maj_ver}* %{_kf5_qtplugindir}/konsolepart.so %{_kf5_datadir}/kservices5/konsolepart.desktop %changelog * Tue May 07 2019 Rex Dieter - 19.04.1-1 - 19.04.1 * Thu Apr 11 2019 Rex Dieter - 18.12.3-2 - Crashes When Logging Out All Tabs in a Window Using "Copy Input To" Feature (#1657013,kde#405158) * Thu Mar 07 2019 Rex Dieter - 18.12.3-1 - 18.12.3 * Tue Feb 05 2019 Rex Dieter - 18.12.2-1 - 18.12.2 * Fri Feb 01 2019 Fedora Release Engineering - 18.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 08 2019 Rex Dieter - 18.12.1-1 - 18.12.1 * Sat Dec 08 2018 Rex Dieter - 18.12.0-1 - 18.12.0 * Tue Nov 06 2018 Rex Dieter - 18.08.3-1 - 18.08.3 * Tue Oct 30 2018 Rex Dieter - 18.08.2-2 - add StartupWMClass=konsole (kde#372441) * Wed Oct 10 2018 Rex Dieter - 18.08.2-1 - 18.08.2 * Fri Sep 07 2018 Rex Dieter - 18.08.1-1 - 18.08.1 * Wed Aug 15 2018 Rex Dieter - 18.08.0-1 - 18.08.0 * Thu Jul 12 2018 Rex Dieter - 18.04.3-1 - 18.04.3 * Tue Jun 05 2018 Rex Dieter - 18.04.2-1 - 18.04.2 * Tue May 08 2018 Rex Dieter - 18.04.1-1 - 18.04.1 * Sat Apr 14 2018 Rex Dieter - 18.04.0-1 - 18.04.0 - Requires: keditbookmarks (#1565758) * Tue Mar 06 2018 Rex Dieter - 17.12.3-1 - 17.12.3 * Wed Feb 28 2018 Sandro Mani - 17.12.2-2 - Add konsole_REP.patch (fixes drawing issues with ncurses applications) * Tue Feb 06 2018 Rex Dieter - 17.12.2-1 - 17.12.2 * Thu Jan 11 2018 Rex Dieter - 17.12.1-1 - 17.12.1 * Tue Dec 12 2017 Rex Dieter - 17.12.0-1 - 17.12.0 * Wed Nov 08 2017 Rex Dieter - 17.08.3-1 - 17.08.3 * Wed Oct 11 2017 Rex Dieter - 17.08.2-1 - 17.08.2 * Sat Sep 30 2017 Rex Dieter - 17.08.1-1 - 17.08.1 * Sat Aug 26 2017 Rex Dieter - 17.08.0-1 - 17.08.0 * Fri Jul 28 2017 Rex Dieter - 17.04.3-1 - 17.04.3 * Wed Jul 26 2017 Fedora Release Engineering - 17.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Rex Dieter - 17.04.2-1 - 17.04.2 * Wed May 10 2017 Rex Dieter - 17.04.1-1 - 17.04.1 * Sat Apr 22 2017 Rex Dieter - 17.04.0-2 - use %%find_lang for html handbooks too * Tue Apr 18 2017 Rex Dieter - 17.04.0-1 - 17.04.0 * Wed Mar 08 2017 Rex Dieter - 16.12.3-1 - 16.12.3 * Wed Feb 08 2017 Rex Dieter - 16.12.2-1 - 16.12.2 * Tue Jan 10 2017 Rex Dieter - 16.12.1-1 - 16.12.1 * Thu Dec 22 2016 Rex Dieter - 16.12.0-1 - 16.12.0 * Wed Nov 30 2016 Rex Dieter - 16.08.3-1 - 16.08.3 * Thu Oct 13 2016 Rex Dieter - 16.08.2-1 - 16.08.2 * Tue Sep 27 2016 Rex Dieter - 16.08.1-2 - Konsole title does not update to current program or host run (#1379753) * Tue Sep 06 2016 Rex Dieter - 16.08.1-1 - 16.08.1 * Fri Aug 12 2016 Rex Dieter - 16.08.0-1 - 16.08.0 * Sat Aug 06 2016 Rex Dieter - 16.07.90-1 - 16.07.90 * Fri Jul 29 2016 Rex Dieter - 16.07.80-2 - %%check: drop use of 'time', not needed * Fri Jul 29 2016 Rex Dieter - 16.07.80-1 - 16.07.80 * Thu Jul 07 2016 Rex Dieter 16.04.3-1 - 16.04.3 * Thu Jun 16 2016 Rex Dieter - 16.04.2-2 - update URL (use www.kde.org/applications/...) * Sun Jun 12 2016 Rex Dieter - 16.04.2-1 - 16.04.2 * Tue May 31 2016 Rex Dieter - 16.04.1-2 - backport upstream fixes * Sun May 08 2016 Rex Dieter - 16.04.1-1 - 16.04.1 * Thu Apr 28 2016 Rex Dieter - 16.04.0-2 - enable tests, support %%base_name, %%bootstrap * Mon Apr 18 2016 Rex Dieter - 16.04.0-1 - 16.04.0 * Fri Mar 18 2016 Rex Dieter - 15.12.3-2 - TERM=xterm-256color default (#1172329) * Sun Mar 13 2016 Rex Dieter - 15.12.3-1 - 15.12.3 * Sun Feb 14 2016 Rex Dieter - 15.12.2-1 - 15.12.2 * Thu Feb 04 2016 Fedora Release Engineering - 15.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Jan 30 2016 Rex Dieter - 15.12.1-2 - "Terminal Size" setting in profile ignored (#345403) - cleanup, validate appdata * Mon Jan 18 2016 Rex Dieter - 15.12.1-1 - 15.12.1 * Mon Dec 14 2015 Rex Dieter 15.12.0-1 - 15.12.0 * Thu Nov 12 2015 Rex Dieter - 15.08.3-1 - 15.08.3 - use %%license - backport support for FileLocation UI (default: cache) * Wed Sep 16 2015 Rex Dieter - 15.08.1-1 - 15.08.1 * Wed Aug 26 2015 Daniel Vrátil - 15.08.0-1 - 15.08.0 * Sat Aug 15 2015 Rex Dieter - 15.04.3-2 - fix 'konsole --version' to match reality - backport copy-n-paste fixes (#1235024) * Tue Jun 30 2015 Rex Dieter - 15.04.3-1 - 15.04.3 * Wed Jun 17 2015 Fedora Release Engineering - 15.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 10 2015 Rex Dieter - 15.04.2-1 - 15.04.2 * Mon Jun 01 2015 Rex Dieter 15.04.1-2 - +%%{?kf5_kinit_requires} * Fri May 15 2015 Rex Dieter 15.04.1-1 - 15.04.1 * Fri May 15 2015 Rex Dieter 15.04.0-2 - store history in cachedir instead of tmp (#1222061,kde#173283) * Tue Apr 14 2015 Rex Dieter - 15.04.0-1 - 15.04.0 * Sat Jan 31 2015 Rex Dieter 14.12.1-1 - kf5-based konsole-14.12.x