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
|
|
|
#
|
2024-02-23 21:08:02 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
|
|
|
2018-11-25 00:44:18 +01:00
|
|
|
# Please submit bugfixes or comments via https://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
|
|
|
|
2024-02-23 21:08:02 +01:00
|
|
|
%define kf6_version 5.246.0
|
|
|
|
%define plasma6_version 5.27.80
|
|
|
|
%define qt6_version 6.6.0
|
|
|
|
|
2022-01-06 13:44:32 +01:00
|
|
|
%bcond_without released
|
2018-11-25 00:44:18 +01:00
|
|
|
Name: kate
|
2024-02-23 21:08:02 +01:00
|
|
|
Version: 24.01.95
|
2018-11-25 00:44:18 +01:00
|
|
|
Release: 0
|
2011-07-26 12:16:57 +02:00
|
|
|
Summary: Advanced Text Editor
|
2021-11-30 08:58:20 +01:00
|
|
|
License: GPL-3.0-or-later
|
2021-04-19 15:30:52 +02:00
|
|
|
URL: https://kate-editor.org
|
2024-02-23 21:08:02 +01:00
|
|
|
Source: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2022-01-06 13:44:32 +01:00
|
|
|
%if %{with released}
|
2024-02-23 21:08:02 +01:00
|
|
|
Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2021-04-19 15:30:52 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2017-05-18 21:18:32 +02:00
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch0: 0001-Defuse-root-block.patch
|
2024-02-23 21:08:02 +01:00
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
|
|
BuildRequires: qt6-gui-private-devel >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6DocTools) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6NewStuff) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6TextEditor) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6UserFeedback) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6Wallet) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(PlasmaActivities) >= %{plasma6_version}
|
|
|
|
BuildRequires: cmake(Qt6Concurrent) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Core5Compat) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Sql) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
|
|
|
Requires: kate-plugins = %{version}
|
|
|
|
Obsoletes: kate5 < %{version}
|
|
|
|
Provides: kate5 = %{version}
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description
|
2021-04-19 15:30:52 +02:00
|
|
|
Kate is an advanced text editor by KDE.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%package -n kwrite
|
|
|
|
Summary: KDE Text Editor
|
2024-02-23 21:08:02 +01:00
|
|
|
Requires: kate-plugins = %{version}
|
2015-05-11 19:32:31 +02:00
|
|
|
Obsoletes: kwrite5 < %{version}
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description -n kwrite
|
2021-04-19 15:30:52 +02:00
|
|
|
KWrite is a text editor by KDE.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%package plugins
|
|
|
|
Summary: KDE Text Editor plugins
|
|
|
|
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
|
2021-04-19 15:30:52 +02:00
|
|
|
Kate is an advanced text editor by KDE. This package contains
|
2015-05-11 19:32:31 +02:00
|
|
|
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
|
2021-04-19 15:30:52 +02:00
|
|
|
%autosetup -p1
|
2011-07-26 12:16:57 +02:00
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%build
|
2024-02-23 21:08:02 +01:00
|
|
|
%cmake_kf6
|
2022-03-29 08:44:24 +02:00
|
|
|
|
2024-02-23 21:08:02 +01:00
|
|
|
%kf6_build
|
2015-05-11 19:32:31 +02:00
|
|
|
|
|
|
|
%install
|
2024-02-23 21:08:02 +01:00
|
|
|
%kf6_install
|
|
|
|
|
|
|
|
# Remove exotic icon sizes
|
|
|
|
rm -r %{buildroot}%{_kf6_iconsdir}/hicolor/{150x150,310x310,44x44}
|
2022-11-17 23:58:10 +01:00
|
|
|
|
2024-02-23 21:08:02 +01:00
|
|
|
%find_lang %{name} --with-man --with-html --all-name
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2023-03-16 09:55:27 +01:00
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
2015-05-11 19:32:31 +02:00
|
|
|
%files
|
2024-02-23 21:08:02 +01:00
|
|
|
%doc README.md
|
|
|
|
%doc %lang(en) %{_kf6_htmldir}/en/kate/
|
|
|
|
%doc %lang(en) %{_kf6_htmldir}/en/katepart/
|
|
|
|
%doc %{_kf6_mandir}/man1/kate.1%{?ext_man}
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kate.desktop
|
|
|
|
%{_kf6_appstreamdir}/org.kde.kate.appdata.xml
|
|
|
|
%{_kf6_bindir}/kate
|
|
|
|
%{_kf6_iconsdir}/hicolor/*/apps/kate.*
|
|
|
|
%{_kf6_libdir}/libkateprivate.so.*
|
2015-05-11 19:32:31 +02:00
|
|
|
|
|
|
|
%files -n kwrite
|
2024-02-23 21:08:02 +01:00
|
|
|
%doc README.md
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kwrite.desktop
|
|
|
|
%{_kf6_appstreamdir}/org.kde.kwrite.appdata.xml
|
|
|
|
%{_kf6_bindir}/kwrite
|
|
|
|
%{_kf6_iconsdir}/hicolor/*/apps/kwrite.*
|
2015-05-11 19:32:31 +02:00
|
|
|
|
|
|
|
%files plugins
|
2024-02-23 21:08:02 +01:00
|
|
|
%{_kf6_plugindir}/kf6/ktexteditor/
|
|
|
|
%{_kf6_sharedir}/kateproject/
|
|
|
|
%{_kf6_sharedir}/katexmltools/
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2017-04-15 15:28:02 +02:00
|
|
|
%files lang -f %{name}.lang
|
2024-02-23 21:08:02 +01:00
|
|
|
%exclude %{_kf6_htmldir}/en/kate/
|
|
|
|
%exclude %{_kf6_htmldir}/en/katepart/
|
2017-04-15 15:28:02 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%changelog
|