%define framework ktexteditor Name: kf5-%{framework} Version: 4.100.0 Release: 3%{?_dist} Summary: KDE Frameworks 5 Tier 3 with advanced embeddable text editor License: LGPLv2+ URL: http://www.kde.org # git archive --format=tar --prefix=%{framework}-%{version}/ \ # --remote=git://anongit.kde.org/%{framework}.git master | \ # bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2 # Source0: http://download.kde.org/unstable/frameworks/%{version}/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/unstable/frameworks/%{version}/%{framework}-%{version}.tar.xz # Upstream patch Patch0: ktexteditor-move-katepart-into-kf5-parts-sudir-of-plugin-dir.patch BuildRequires: kf5-rpm-macros BuildRequires: extra-cmake-modules BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtscript-devel BuildRequires: kf5-karchive-devel BuildRequires: kf5-kconfig-devel BuildRequires: kf5-kguiaddons-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kio-devel BuildRequires: kf5-kparts-devel BuildRequires: kf5-sonnet-devel Requires: kf5-filesystem %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 %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{framework}-%{version} %patch0 -p1 -b .katepartInstallDir %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} %install %make_install -C %{_target_platform} %find_lang ktexteditor5_qt --with-qt --all-name %post /sbin/ldconfig /usr/bin/update-desktop-database &> /dev/null || : %postun /sbin/ldconfig /usr/bin/update-desktop-database &> /dev/null || : %files -f ktexteditor5_qt.lang %doc COPYING.LIB README.md %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/script/ %{_kf5_datadir}/katepart5/syntax/ %{_kf5_datadir}/katepart/katepart5ui.rc %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 * 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