# 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: 17.12.2 Release: 2%{?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 # Backport: Support ECMA-48 REP (#384620) Patch0: konsole_REP.patch ## upstreamable patches ## upstream patches ## 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: extra-cmake-modules BuildRequires: gettext BuildRequires: pkgconfig(x11) BuildRequires: kf5-rpm-macros BuildRequires: kf5-kbookmarks-devel BuildRequires: kf5-kcompletion-devel BuildRequires: kf5-kcoreaddons-devel BuildRequires: kf5-kconfig-devel BuildRequires: kf5-kconfigwidgets-devel BuildRequires: kf5-kdoctools-devel BuildRequires: kf5-kguiaddons-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kiconthemes-devel BuildRequires: kf5-kinit-devel >= 5.10.0-3 BuildRequires: kf5-kdelibs4support-devel BuildRequires: kf5-kio-devel BuildRequires: kf5-knotifications-devel BuildRequires: kf5-knotifyconfig-devel BuildRequires: kf5-kparts-devel BuildRequires: kf5-kpty-devel BuildRequires: kf5-kservice-devel BuildRequires: kf5-ktextwidgets-devel BuildRequires: kf5-kwidgetsaddons-devel BuildRequires: kf5-kwindowsystem-devel BuildRequires: kf5-kxmlgui-devel ## 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} %{?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 %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} install -m644 -p -b -D %{SOURCE10} %{buildroot}%{_sysconfdir}/xdg/konsolerc %find_lang konsole --with-html %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_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}/knotifications5/konsole.notifyrc %{_kf5_datadir}/kservices5/ServiceMenus/konsolehere.desktop %{_kf5_datadir}/kservices5/ServiceMenus/konsolerun.desktop %{_kf5_datadir}/kservicetypes5/terminalemulator.desktop %post part -p /sbin/ldconfig %postun part -p /sbin/ldconfig %files part %license COPYING* %config(noreplace) %{_sysconfdir}/xdg/konsolerc %{_kf5_datadir}/konsole/ %{_kf5_libdir}/libkonsoleprivate.so.%{maj_ver}* %{_kf5_qtplugindir}/konsolepart.so %{_kf5_datadir}/kservices5/konsolepart.desktop %changelog * 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