Accepting request 630199 from KDE:Applications
Update to 18.08.0 OBS-URL: https://build.opensuse.org/request/show/630199 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kate?expand=0&rev=99
This commit is contained in:
commit
9e0b4e05b1
@ -12,33 +12,43 @@ That way it's only an impact on usability.
|
||||
kwrite/main.cpp | 3 +--
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: kate-18.04.3/kate/main.cpp
|
||||
Index: kate-18.07.70git.20180531T121543~bf6d5b753/kate/main.cpp
|
||||
===================================================================
|
||||
--- kate-18.04.3.orig/kate/main.cpp
|
||||
+++ kate-18.04.3/kate/main.cpp
|
||||
@@ -65,9 +65,8 @@ int main(int argc, char **argv)
|
||||
* Check whether we are running as root
|
||||
**/
|
||||
--- kate-18.07.70git.20180531T121543~bf6d5b753.orig/kate/main.cpp
|
||||
+++ kate-18.07.70git.20180531T121543~bf6d5b753/kate/main.cpp
|
||||
@@ -63,13 +63,8 @@ int main(int argc, char **argv)
|
||||
#ifndef Q_OS_WIN
|
||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
if (getuid() == 0) {
|
||||
- std::cout << "Executing Kate as root is not possible. To edit files as root use:" << std::endl;
|
||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
- std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- }
|
||||
+ std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl;
|
||||
std::cout << "SUDO_EDITOR=kate sudoedit <file>" << std::endl;
|
||||
- return 0;
|
||||
+ std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
|
||||
}
|
||||
#endif
|
||||
/**
|
||||
Index: kate-18.04.3/kwrite/main.cpp
|
||||
Index: kate-18.07.70git.20180531T121543~bf6d5b753/kwrite/main.cpp
|
||||
===================================================================
|
||||
--- kate-18.04.3.orig/kwrite/main.cpp
|
||||
+++ kate-18.04.3/kwrite/main.cpp
|
||||
@@ -54,9 +54,8 @@ extern "C" Q_DECL_EXPORT int main(int ar
|
||||
* Check whether we are running as root
|
||||
**/
|
||||
--- kate-18.07.70git.20180531T121543~bf6d5b753.orig/kwrite/main.cpp
|
||||
+++ kate-18.07.70git.20180531T121543~bf6d5b753/kwrite/main.cpp
|
||||
@@ -52,13 +52,8 @@ extern "C" Q_DECL_EXPORT int main(int ar
|
||||
#ifndef Q_OS_WIN
|
||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
if (getuid() == 0) {
|
||||
- std::cout << "Executing KWrite as root is not possible. To edit files as root use:" << std::endl;
|
||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
- std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
|
||||
- return 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;
|
||||
- return 0;
|
||||
+ std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
|
||||
}
|
||||
#endif
|
||||
/**
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e4ac4587881ca4a99ea972ffffd9015ea00a0d14fd1bcb129c1d22b930b02bf0
|
||||
size 5639892
|
3
kate-18.08.0.tar.xz
Normal file
3
kate-18.08.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c7fc7ebab1c9ce8933bcf6bf6fc265e20b3a858a21d379ae7259b34f5dbe2cd2
|
||||
size 5653060
|
29
kate.changes
29
kate.changes
@ -1,3 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 16 22:02:17 UTC 2018 - christophe@krop.fr
|
||||
|
||||
- Update to 18.08.0
|
||||
* New feature release
|
||||
* For more details please see:
|
||||
* https://www.kde.org/announcements/announce-applications-18.08.0.php
|
||||
- Changes since 18.07.80:
|
||||
* Honor BUILD_TESTING
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 2 13:39:40 UTC 2018 - fabian@ritter-vogt.de
|
||||
|
||||
- Use %license
|
||||
- License is actually GPL-3.0-or-later
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 26 13:00:33 UTC 2018 - lbeltrame@kde.org
|
||||
|
||||
- Update to 18.07.80
|
||||
* New feature release
|
||||
* For more details please see:
|
||||
* https://www.kde.org/announcements/announce-applications-18.07.80.php
|
||||
- Changes since 18.04.3:
|
||||
* Too many changes to list here
|
||||
- Refreshed patches:
|
||||
* 0001-Defuse-root-block.patch
|
||||
- Drop custom lang package definition
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 13 04:49:51 UTC 2018 - lbeltrame@kde.org
|
||||
|
||||
|
34
kate.spec
34
kate.spec
@ -20,13 +20,13 @@
|
||||
|
||||
%define _appstreamkpackage 0%(cat %{_kf5_cmakedir}/KF5Package/KF5PackageMacros.cmake | grep -q 'appstream-metainfo' && echo 1)
|
||||
Name: kate
|
||||
Version: 18.04.3
|
||||
Version: 18.08.0
|
||||
Release: 0
|
||||
%define kf5_version 5.26.0
|
||||
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
||||
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
||||
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
||||
Summary: Advanced Text Editor
|
||||
License: GPL-2.0+
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Text/Editors
|
||||
Url: http://www.kde.org
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
@ -63,9 +63,7 @@ BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
|
||||
Requires: %{name}-plugins = %{version}
|
||||
Obsoletes: %{name}5 < %{version}
|
||||
Provides: %{name}5 = %{version}
|
||||
%if %{with lang}
|
||||
Recommends: %{name}-lang
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -91,20 +89,7 @@ Obsoletes: ktexteditorpreviewplugin < %{version}
|
||||
Kate is an advanced text editor for KDE. This package contains
|
||||
plugins and data files for Kate and KWrite editors.
|
||||
|
||||
%if %{with lang}
|
||||
%package lang
|
||||
Summary: Translations for package %{name}
|
||||
Group: System/Localization
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
Provides: %{name}-lang-all = %{version}
|
||||
Supplements: %{name}
|
||||
BuildArch: noarch
|
||||
Provides: ktexteditorpreviewplugin-lang = %{version}
|
||||
Obsoletes: ktexteditorpreviewplugin-lang < %{version}
|
||||
%description lang
|
||||
Provides translations for the "%{name}" package.
|
||||
%endif
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -126,7 +111,8 @@ Provides translations for the "%{name}" package.
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING* README*
|
||||
%license COPYING*
|
||||
%doc README*
|
||||
%dir %{_kf5_appstreamdir}
|
||||
%dir %{_kf5_htmldir}
|
||||
%dir %{_kf5_htmldir}/en
|
||||
@ -140,7 +126,8 @@ Provides translations for the "%{name}" package.
|
||||
|
||||
%files -n kwrite
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING* README*
|
||||
%license COPYING*
|
||||
%doc README*
|
||||
%dir %{_kf5_htmldir}
|
||||
%dir %{_kf5_htmldir}/en
|
||||
%doc %lang(en) %{_kf5_htmldir}/en/kwrite/
|
||||
@ -151,7 +138,8 @@ Provides translations for the "%{name}" package.
|
||||
|
||||
%files plugins
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING* README*
|
||||
%license COPYING*
|
||||
%doc README*
|
||||
%if 0%{?_appstreamkpackage}
|
||||
%{_kf5_appstreamdir}/org.kde.plasma.katesessions.appdata.xml
|
||||
%endif
|
||||
@ -163,7 +151,7 @@ Provides translations for the "%{name}" package.
|
||||
|
||||
%if %{with lang}
|
||||
%files lang -f %{name}.lang
|
||||
%doc COPYING*
|
||||
%license COPYING*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user