%global framework ktexteditor Name: kf5-%{framework} Version: 5.15.0 Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 3 with advanced embeddable text editor License: LGPLv2+ URL: https://projects.kde.org/projects/frameworks/ktexteditor %global versiondir %(echo %{version} | cut -d. -f1-2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz ## upstream patches Patch38: 0038-CHANGELOG-Printing-again-honors-the-selected-font-co.patch BuildRequires: cmake BuildRequires: extra-cmake-modules >= %{version} BuildRequires: kf5-karchive-devel >= %{version} BuildRequires: kf5-kconfig-devel >= %{version} BuildRequires: kf5-kguiaddons-devel >= %{version} BuildRequires: kf5-ki18n-devel >= %{version} BuildRequires: kf5-kiconthemes-devel >= %{version} BuildRequires: kf5-kio-devel >= %{version} BuildRequires: kf5-kparts-devel >= %{version} BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-sonnet-devel >= %{version} BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtscript-devel BuildRequires: qt5-qtxmlpatterns-devel %if 0%{?fedora} >= 22 BuildRequires: libgit2-devel >= 0.22.0 %endif Requires: kf5-filesystem >= %{version} %description KTextEditor provides a powerful text editor component that you can embed in your application, either as a KPart or using the KF5::TextEditor library (if you need more control). The text editor component contains many useful features, from syntax highlighting and automatic indentation to advanced scripting support, making it suitable for everything from a simple embedded text-file editor to an advanced IDE. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: kf5-kparts-devel >= %{version} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{framework}-%{version} %patch38 -p1 -b .0038 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang ktexteditor5_qt --with-qt --all-name %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f ktexteditor5_qt.lang %doc README.md %license COPYING.LIB %config %{_sysconfdir}/xdg/kate* %{_kf5_libdir}/libKF5TextEditor.so.* %{_kf5_plugindir}/parts/katepart.so %{_kf5_datadir}/kservices5/katepart.desktop %{_kf5_datadir}/kservicetypes5/*.desktop %{_kf5_datadir}/katepart5/ %{_kf5_datadir}/kxmlgui5/katepart/ %files devel %{_kf5_libdir}/libKF5TextEditor.so %{_kf5_libdir}/cmake/KF5TextEditor/ %{_kf5_includedir}/ktexteditor_version.h %{_kf5_includedir}/KTextEditor/ %{_kf5_archdatadir}/mkspecs/modules/qt_KTextEditor.pri %changelog * Sat Oct 10 2015 Rex Dieter 5.15.0-2 - backport fonts/printing fix, .spec cosmetics (sort BR's) * Thu Oct 08 2015 Daniel Vrátil - 5.15.0-1 - KDE Frameworks 5.15.0 * Wed Sep 16 2015 Daniel Vrátil - 5.14.0-1 - KDE Frameworks 5.14.0 * Wed Aug 19 2015 Daniel Vrátil - 5.13.0-1 - KDE Frameworks 5.13.0 * Wed Aug 19 2015 Daniel Vrátil - 5.13.0-1 - KDE Frameworks 5.13.0 * Tue Aug 11 2015 Daniel Vrátil - 5.13.0-0.1 - KDE Frameworks 5.13 * Fri Jul 31 2015 Zbigniew Jędrzejewski-Szmek - 5.12.0-2 - Rebuilt for libgit2-0.23.0 and libgit2-glib-0.23 * Fri Jul 17 2015 Daniel Vrátil - 5.12.0-1 - KDE Frameworks 5.12.0 * Tue Jun 16 2015 Rex Dieter - 5.11.0-2 - .spec cleanup/cosmetics - update URL - drop not-needed update-desktop-database scriptlets - use %%license - own %%{_kf5_datadir}/katepart5/, %{_kf5_datadir}/kxmlgui5/katepart/ * Wed Jun 10 2015 Daniel Vrátil - 5.11.0-1 - KDE Frameworks 5.11.0 * Mon May 11 2015 Daniel Vrátil - 5.10.0-1 - KDE Frameworks 5.10.0 * Wed Apr 22 2015 Daniel Vrátil - 5.9.0-2 - BR libgit2-devel on F>=22 * Tue Apr 07 2015 Daniel Vrátil - 5.9.0-1 - KDE Frameworks 5.9.0 * Mon Mar 16 2015 Daniel Vrátil - 5.8.0-1 - KDE Frameworks 5.8.0 * Fri Feb 27 2015 Daniel Vrátil - 5.7.0-2 - Rebuild (GCC 5) * Mon Feb 16 2015 Daniel Vrátil - 5.7.0-1 - KDE Frameworks 5.7.0 * Mon Feb 09 2015 Daniel Vrátil - 5.7.0-1 - KDE Frameworks 5.7.0 * Thu Jan 08 2015 Daniel Vrátil - 5.6.0-1 - KDE Frameworks 5.6.0 * Mon Dec 08 2014 Daniel Vrátil - 5.5.0-1 - KDE Frameworks 5.5.0 * Mon Nov 03 2014 Daniel Vrátil - 5.4.0-1 - KDE Frameworks 5.4.0 * Tue Oct 07 2014 Daniel Vrátil - 5.3.0-1 - KDE Frameworks 5.3.0 * Mon Sep 15 2014 Daniel Vrátil - 5.2.0-1 - KDE Frameworks 5.2.0 * Sat Aug 16 2014 Fedora Release Engineering - 5.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Aug 06 2014 Daniel Vrátil - 5.1.0-1 - KDE Frameworks 5.1.0 * Wed Jul 09 2014 Daniel Vrátil - 5.0.0-1 - KDE Frameworks 5.0.0 * Tue Jul 01 2014 Daniel Vrátil - 4.100.0-3 - Add %%config and call to update-desktop-database * Sun Jun 29 2014 Daniel Vrátil - 4.100.0-2 - Import upstream patch to fix installation destination of katepart.so * Tue Jun 03 2014 Daniel Vrátil - 4.100.0-1 - KDE Frameworks 4.100.0 * Wed May 14 2014 Daniel Vrátil - 4.99.0-1 - KDE Frameworks 4.99.0 * Fri May 02 2014 Jan Grulich - 5.0.90-1 - initial version