KDE release gear 24.08.1
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kate?expand=0&rev=232
This commit is contained in:
commit
5352a29e8f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
46
0001-Defuse-root-block.patch
Normal file
46
0001-Defuse-root-block.patch
Normal file
@ -0,0 +1,46 @@
|
||||
From f1b20995d1fe309b32b090ef8667f2de2f1d9d02 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Beltrame <lbeltrame@kde.org>
|
||||
Date: Sun, 26 Feb 2023 22:27:06 +0100
|
||||
Subject: [PATCH] Defuse root block
|
||||
|
||||
While the main point is correct as any application running in the same
|
||||
X session (not sandboxed) can use kate's capability to open a console,
|
||||
we allow (even encourage) running YaST on X11 as root.
|
||||
That way it's only an impact on usability.
|
||||
---
|
||||
apps/lib/kateapp.cpp | 19 ++-----------------
|
||||
1 file changed, 2 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/apps/lib/kateapp.cpp b/apps/lib/kateapp.cpp
|
||||
index 2d1a66157..85079c356 100644
|
||||
--- a/apps/lib/kateapp.cpp
|
||||
+++ b/apps/lib/kateapp.cpp
|
||||
@@ -87,23 +87,8 @@ void KateApp::initPreApplicationCreation()
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
|
||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
if (getuid() == 0) {
|
||||
- setlocale(LC_ALL, "");
|
||||
- bindtextdomain("kate", KDE_INSTALL_FULL_LOCALEDIR);
|
||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
- auto message = kli18n(
|
||||
- "Running this editor with sudo can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use this editor normally and you will be prompted for elevated privileges when "
|
||||
- "saving documents if needed.");
|
||||
- std::cout << dgettext("kate", message.untranslatedText()) << std::endl;
|
||||
- exit(EXIT_FAILURE);
|
||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
- auto message = kli18n(
|
||||
- "Running this editor with kdesu can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use this editor normally and you will be prompted for elevated privileges when "
|
||||
- "saving documents if needed.");
|
||||
- std::cout << dgettext("kate", message.untranslatedText()) << std::endl;
|
||||
- exit(EXIT_FAILURE);
|
||||
- }
|
||||
+ std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl;
|
||||
+ std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
--
|
||||
2.39.2
|
||||
|
BIN
applications.keyring
Normal file
BIN
applications.keyring
Normal file
Binary file not shown.
3
kate-24.05.2.tar.xz
Normal file
3
kate-24.05.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:774f08b7d53db0b282164e930a0e0cd4709e75938dcb8b3cb430fedf0d5db020
|
||||
size 8149132
|
16
kate-24.05.2.tar.xz.sig
Normal file
16
kate-24.05.2.tar.xz.sig
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEE2BwMs463Je9mkcOFu0YzUNbvMe8FAmaDmLoACgkQu0YzUNbv
|
||||
Me/TIA/+OfXVmm4tlFpuk7gFfi+31yT8cqtghCog6VO89yX6VZhTinq63Jh1sA1T
|
||||
3dqfEOcizQPmR/I3Rg3TtZBAk9qj7MaCHb0tyuoAghNUMgvK7EWJFe9f8pO77+7z
|
||||
OVwT9uA4haaI1BtemXAXpaUJ9+yzIbLzh6w0XUgN3ZAnhIzRjH+CY01uPJKPWJtX
|
||||
Id7ksThOFqjum7k/A3h1eHVQFtw90JvTLHU8g/CyXweRwWiwePOPE2+MP2xM9u+w
|
||||
zifV/pAfLUnvoqnektqDGFD2bNq8PbM1cnRka7lBLuNPYMGA9F0jT3Wc4dRnIgY8
|
||||
hOAEmnB+VS5e2MldU9vKVcjwRev5PyRhtHjm2ZSESmlFabfP/R6ufbADpwpBzs99
|
||||
UeEMTl5QDQxZSqaQXBAC5MQpo1U1Vf5KraO7u5DLKiUhS39s6ce6wjSFj1Ia95b6
|
||||
ku2LIkycGw+z/XqczheqXgJT5Xi+4E+0MYHAa29vayB97LQl90HCc9frpKI17TVB
|
||||
7B1OSVuOTeOIJ21yZ8xEJ+AeJq5136RzqZFH4/Nz30NhnQNfVt/I5ncNpPtXrS93
|
||||
Fw3XxKvcLlx9CXBJ77LJdqZNCLF1jqfL7khKY6+OGkOR6G4tdLMyHqoZZio537U5
|
||||
/FIBMcH0iUZbl6wYq9h1M2EOj15lo5id8KhtSK+CexoRV0BGGT8=
|
||||
=aJef
|
||||
-----END PGP SIGNATURE-----
|
3
kate-24.08.0.tar.xz
Normal file
3
kate-24.08.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:85b20215e3ccfdbb1e615108a70673f1e6443ceca1948290eee3841a061173e9
|
||||
size 8202144
|
16
kate-24.08.0.tar.xz.sig
Normal file
16
kate-24.08.0.tar.xz.sig
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEE2BwMs463Je9mkcOFu0YzUNbvMe8FAma+3JAACgkQu0YzUNbv
|
||||
Me8I6g/+ObO5pJk55mDaw2LWWmSx5IKsRlikqQo0AxVtbEZ+kMQUKevn02cL+fN6
|
||||
RtuUE5MrqbxEFHfYg+wWI+cbvqdnu/dCnGdOVihu2GFsXb59XpF8MD+iY3bQwiWh
|
||||
ogJI8VJlBLQ/wNaJjdbHB0oewMUY3t3IdzsxMIbth4BRYz5YCIWN1KEgB4nBmvnn
|
||||
GJ/hlrdWlEQNMBMU99o8pW2CNdLb57jj32DSQk8KueajpLxgiQ6gB/Lir0MpxWL8
|
||||
L8djG9ttGTJp6XBCK7J8h956h/csr/QdUQuT9zaUwsbumWBFXZgvPWSHpguv0JO8
|
||||
4H1LSkcNTvAft0kdtFmt/b+IjcYDQ05e9yq0m/Em+fejY1IRCdm6qzGcCbdOfIGY
|
||||
JDKTMiWZQp0Pq3PcLpcIwNr0SgnfU/EBRYpaQywEuNn5i3OLvTH0+2e3TiclYt+4
|
||||
6RjWqCXdeb1hK25kl68BO98P7Ae+6J42udVQ+siOsaCVgLjx8QM52c98UpCf3/aE
|
||||
1FIkBiP/2m/7p4vbhawpFXEA7kuASvluVpbc4WtBy9mcAdnPzzBiCmXdnx78KAdO
|
||||
7l/uESd8Y6Tw8tOyfJTsI7kdo1YerHk0Y70yIUrIIMZiau2Z+m/6FZq+Exw/wi5T
|
||||
WBUsasgQ2RtpT36kCX9Hvf4F6arRi4BiTO27CCXmv7gd8tf6GBo=
|
||||
=xkqH
|
||||
-----END PGP SIGNATURE-----
|
3
kate-24.08.1.tar.xz
Normal file
3
kate-24.08.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c10518b24386f1daf5f64723c25b3f4ed7e3446a70912abe5b6c965efd9b2dc6
|
||||
size 8207264
|
16
kate-24.08.1.tar.xz.sig
Normal file
16
kate-24.08.1.tar.xz.sig
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEE2BwMs463Je9mkcOFu0YzUNbvMe8FAmbf+LAACgkQu0YzUNbv
|
||||
Me+PMw/+KBf/zusWb108GWopUbaBJTM/JymhfyAoZpta5LeNpP6lB2XU0T4ESCS7
|
||||
dgXndTdwf8ycJf92laxjCoLuRMMcHYYyE3I7Tgi1T7SDlYRIxXaIw/OL8R34ydVC
|
||||
C0bYgGykGwSDm0/Z3D4CeUii6e3G5TwigqTA1kgcE6w1DdhXfQZvfYw6+L9GMTYk
|
||||
7K++BHFNGSIC7mn5GrRuLBUjsBX6eZEz9+E0v0FcZupaak9990rzAnYyygPCuBVl
|
||||
PL1LaPAlPcOcfImC+3QXXNCVQlBrh6UtK2b2JX1RDh2tCu53mxQiMtLNS2K7aLPG
|
||||
SWHDs4A1ncujiDbRaLfO934rTAjGQwp5h+fV+DN6gD20/+W5BvnNO9TOyT7Pof5V
|
||||
xM8gY+DbYSX1WrTnOyFQTekplKyh3X3GAxDaInZ1vj+VcrpRZPYP+8jaL1xNcBGf
|
||||
Gip1xHVDc1i0SRTvblseG5djJfdBVvm3XYEh/aoLE+ypFJOgjeRKVo31kKygnVOj
|
||||
wotrH25gy6lnctXhHvfCWQB4vm4VEQLbzQnYCQMftQhfK/NKQ6uLqXcNdNFDX+uF
|
||||
+mxkeP8A3Nej/Vzky+B79cC2wxRZwlbF0gjbPy7XmJmbEJWW8LvOxIuIeuLlymS/
|
||||
yLRSGj10VZ6RAdB/8+xuzeWd84cfsI2R76OatmzpSz4jnSOTWKg=
|
||||
=k562
|
||||
-----END PGP SIGNATURE-----
|
3269
kate.changes
Normal file
3269
kate.changes
Normal file
File diff suppressed because it is too large
Load Diff
132
kate.spec
Normal file
132
kate.spec
Normal file
@ -0,0 +1,132 @@
|
||||
#
|
||||
# spec file for package kate
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define kf6_version 6.3.0
|
||||
%define plasma6_version 5.27.80
|
||||
%define qt6_version 6.6.0
|
||||
|
||||
%bcond_without released
|
||||
Name: kate
|
||||
Version: 24.08.1
|
||||
Release: 0
|
||||
Summary: Advanced Text Editor
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://kate-editor.org
|
||||
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
||||
%if %{with released}
|
||||
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
||||
Source2: applications.keyring
|
||||
%endif
|
||||
# PATCH-FIX-OPENSUSE
|
||||
Patch0: 0001-Defuse-root-block.patch
|
||||
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(Qt6Sql) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
||||
Requires: kate-plugins = %{version}
|
||||
Recommends: kuiviewer
|
||||
Recommends: markdownpart
|
||||
Recommends: svgpart
|
||||
Obsoletes: kate5 < %{version}
|
||||
Provides: kate5 = %{version}
|
||||
|
||||
%description
|
||||
Kate is an advanced text editor by KDE.
|
||||
|
||||
%package -n kwrite
|
||||
Summary: KDE Text Editor
|
||||
Requires: kate-plugins = %{version}
|
||||
Obsoletes: kwrite5 < %{version}
|
||||
|
||||
%description -n kwrite
|
||||
KWrite is a text editor by KDE.
|
||||
|
||||
%package plugins
|
||||
Summary: KDE Text Editor plugins
|
||||
Obsoletes: kate5-plugins < %{version}
|
||||
Provides: ktexteditorpreviewplugin = %{version}
|
||||
Obsoletes: ktexteditorpreviewplugin < %{version}
|
||||
|
||||
%description plugins
|
||||
Kate is an advanced text editor by KDE. This package contains
|
||||
plugins and data files for Kate and KWrite editors.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake_kf6
|
||||
|
||||
%kf6_build
|
||||
|
||||
%install
|
||||
%kf6_install
|
||||
|
||||
# Remove exotic icon sizes
|
||||
rm -r %{buildroot}%{_kf6_iconsdir}/hicolor/{150x150,310x310,44x44}
|
||||
|
||||
%find_lang %{name} --with-man --with-html --all-name
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%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.*
|
||||
|
||||
%files -n kwrite
|
||||
%doc README.md
|
||||
%{_kf6_applicationsdir}/org.kde.kwrite.desktop
|
||||
%{_kf6_appstreamdir}/org.kde.kwrite.appdata.xml
|
||||
%{_kf6_bindir}/kwrite
|
||||
%{_kf6_iconsdir}/hicolor/*/apps/kwrite.*
|
||||
|
||||
%files plugins
|
||||
%{_kf6_plugindir}/kf6/ktexteditor/
|
||||
%{_kf6_sharedir}/kateproject/
|
||||
%{_kf6_sharedir}/katexmltools/
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%exclude %{_kf6_htmldir}/en/kate/
|
||||
%exclude %{_kf6_htmldir}/en/katepart/
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user