2011-07-26 12:16:57 +02:00
|
|
|
#
|
2011-07-26 12:17:08 +02:00
|
|
|
# spec file for package kate
|
2011-07-26 12:16:57 +02:00
|
|
|
#
|
2017-08-12 00:54:08 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-26 12:16:57 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2017-04-17 19:59:23 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-07-26 12:16:57 +02:00
|
|
|
#
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2017-08-12 00:54:08 +02:00
|
|
|
|
2017-04-15 15:28:02 +02:00
|
|
|
%bcond_without lang
|
2012-01-27 15:18:04 +01:00
|
|
|
|
2017-08-12 00:54:08 +02:00
|
|
|
%define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1)
|
2011-07-26 12:16:57 +02:00
|
|
|
Name: kate
|
2018-11-09 23:41:26 +01:00
|
|
|
Version: 18.08.3
|
2011-12-08 11:49:13 +01:00
|
|
|
Release: 0
|
2016-12-03 16:16:24 +01:00
|
|
|
%define kf5_version 5.26.0
|
2017-08-12 00:54:08 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 15:26:29 +02:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2011-07-26 12:16:57 +02:00
|
|
|
Summary: Advanced Text Editor
|
2018-08-02 15:40:11 +02:00
|
|
|
License: GPL-3.0-or-later
|
2017-08-12 00:54:08 +02:00
|
|
|
Group: Productivity/Text/Editors
|
|
|
|
Url: http://www.kde.org
|
2012-04-12 09:28:38 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2017-05-18 21:18:32 +02:00
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch0: 0001-Defuse-root-block.patch
|
2016-11-10 07:19:32 +01:00
|
|
|
BuildRequires: kactivities5-devel
|
2015-05-11 19:32:31 +02:00
|
|
|
BuildRequires: kconfig-devel
|
2016-12-03 16:16:58 +01:00
|
|
|
BuildRequires: kcrash-devel
|
2015-05-11 19:32:31 +02:00
|
|
|
BuildRequires: kdbusaddons-devel
|
|
|
|
BuildRequires: kdoctools-devel
|
|
|
|
BuildRequires: kguiaddons-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kiconthemes-devel
|
|
|
|
BuildRequires: kio-devel
|
|
|
|
BuildRequires: kitemmodels-devel
|
|
|
|
BuildRequires: kjobwidgets-devel
|
|
|
|
BuildRequires: knewstuff-devel
|
|
|
|
BuildRequires: kparts-devel
|
|
|
|
BuildRequires: kservice-devel
|
|
|
|
BuildRequires: ktexteditor-devel
|
|
|
|
BuildRequires: kwallet-framework-devel
|
|
|
|
BuildRequires: kwindowsystem-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
2016-09-27 00:13:36 +02:00
|
|
|
BuildRequires: libgit2-devel
|
2016-12-03 16:16:24 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-05-11 19:32:31 +02:00
|
|
|
BuildRequires: plasma-framework-devel
|
|
|
|
BuildRequires: threadweaver-devel
|
2016-12-03 20:56:11 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Script) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
|
2015-05-11 19:32:31 +02:00
|
|
|
Requires: %{name}-plugins = %{version}
|
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-04-20 10:46:28 +02:00
|
|
|
Recommends: %{name}-lang
|
2011-07-26 12:16:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description
|
|
|
|
Kate is an advanced text editor for KDE.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%package -n kwrite
|
|
|
|
Summary: KDE Text Editor
|
2017-08-12 00:54:08 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2015-05-11 19:32:31 +02:00
|
|
|
Requires: %{name}-plugins = %{version}
|
|
|
|
Obsoletes: kwrite5 < %{version}
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description -n kwrite
|
|
|
|
KWrite is the default text editor of the K desktop environment.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%package plugins
|
|
|
|
Summary: KDE Text Editor plugins
|
2017-08-12 00:54:08 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2015-05-11 19:32:31 +02:00
|
|
|
Obsoletes: kate5-plugins < %{version}
|
2018-04-10 17:06:33 +02:00
|
|
|
Provides: ktexteditorpreviewplugin = %{version}
|
|
|
|
Obsoletes: ktexteditorpreviewplugin < %{version}
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%description plugins
|
|
|
|
Kate is an advanced text editor for KDE. This package contains
|
|
|
|
plugins and data files for Kate and KWrite editors.
|
|
|
|
|
2018-07-28 15:26:29 +02:00
|
|
|
%lang_package
|
2017-04-15 15:28:02 +02:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%prep
|
2016-12-03 16:16:24 +01:00
|
|
|
%setup -q
|
2018-07-14 00:20:08 +02:00
|
|
|
%autopatch -p1
|
2011-07-26 12:16:57 +02:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 15:28:02 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%endif
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-07-26 12:16:57 +02:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%files
|
2011-07-26 12:16:57 +02:00
|
|
|
%defattr(-,root,root)
|
2018-08-02 15:40:11 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc README*
|
2016-08-08 21:37:34 +02:00
|
|
|
%dir %{_kf5_appstreamdir}
|
2017-08-12 00:54:08 +02:00
|
|
|
%dir %{_kf5_htmldir}
|
|
|
|
%dir %{_kf5_htmldir}/en
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kate/
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/katepart/
|
|
|
|
%doc %{_kf5_mandir}/man1/kate.*
|
|
|
|
%{_kf5_applicationsdir}/org.kde.kate.desktop
|
2016-08-08 21:37:34 +02:00
|
|
|
%{_kf5_appstreamdir}/org.kde.kate.appdata.xml
|
2017-08-12 00:54:08 +02:00
|
|
|
%{_kf5_bindir}/kate
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/kate.*
|
2015-05-11 19:32:31 +02:00
|
|
|
|
|
|
|
%files -n kwrite
|
|
|
|
%defattr(-,root,root)
|
2018-08-02 15:40:11 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc README*
|
2017-08-12 00:54:08 +02:00
|
|
|
%dir %{_kf5_htmldir}
|
|
|
|
%dir %{_kf5_htmldir}/en
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kwrite/
|
2015-05-11 19:32:31 +02:00
|
|
|
%{_kf5_applicationsdir}/org.kde.kwrite.desktop
|
2016-12-03 16:16:24 +01:00
|
|
|
%{_kf5_appstreamdir}/org.kde.kwrite.appdata.xml
|
2017-08-12 00:54:08 +02:00
|
|
|
%{_kf5_bindir}/kwrite
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/kwrite.*
|
2015-05-11 19:32:31 +02:00
|
|
|
|
|
|
|
%files plugins
|
|
|
|
%defattr(-,root,root)
|
2018-08-02 15:40:11 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc README*
|
2016-12-03 16:16:24 +01:00
|
|
|
%if 0%{?_appstreamkpackage}
|
|
|
|
%{_kf5_appstreamdir}/org.kde.plasma.katesessions.appdata.xml
|
|
|
|
%endif
|
2015-05-11 19:32:31 +02:00
|
|
|
%{_kf5_plugindir}/
|
2017-08-12 00:54:08 +02:00
|
|
|
%{_kf5_servicesdir}/
|
2015-05-11 19:32:31 +02:00
|
|
|
%{_kf5_sharedir}/kateproject/
|
|
|
|
%{_kf5_sharedir}/katexmltools/
|
|
|
|
%{_kf5_sharedir}/plasma/
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2017-04-15 15:28:02 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
2018-08-02 15:40:11 +02:00
|
|
|
%license COPYING*
|
2017-04-15 15:28:02 +02:00
|
|
|
%endif
|
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%changelog
|