Hello community,

here is the log from the commit of package okular for openSUSE:Factory checked 
in at 2020-09-21 17:04:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/okular (Old)
 and      /work/SRC/openSUSE:Factory/.okular.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "okular"

Mon Sep 21 17:04:17 2020 rev:127 rq:835211 version:20.08.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/okular/okular.changes    2020-09-09 
18:01:59.979200942 +0200
+++ /work/SRC/openSUSE:Factory/.okular.new.4249/okular.changes  2020-09-21 
17:05:35.899039391 +0200
@@ -1,0 +2,6 @@
+Wed Sep 16 14:32:06 UTC 2020 - Fabian Vogt <[email protected]>
+
+- Add patch to make the okular-spectre split more user friendly (boo#1176030):
+  * 0001-Inform-users-about-the-okular-spectre-package-in-the.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Inform-users-about-the-okular-spectre-package-in-the.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ okular.spec ++++++
--- /var/tmp/diff_new_pack.yIFZRz/_old  2020-09-21 17:05:39.627042743 +0200
+++ /var/tmp/diff_new_pack.yIFZRz/_new  2020-09-21 17:05:39.627042743 +0200
@@ -29,6 +29,8 @@
 Group:          Productivity/Office/Other
 URL:            https://www.kde.org
 Source:         
https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
+# PATCH-FEATURE-OPENSUSE
+Patch1000:      0001-Inform-users-about-the-okular-spectre-package-in-the.patch
 BuildRequires:  chmlib-devel
 BuildRequires:  extra-cmake-modules
 BuildRequires:  freetype2-devel
@@ -116,7 +118,7 @@
 %lang_package
 
 %prep
-%setup -q -n okular-%{version}
+%autosetup -p1 -n okular-%{version}
 
 %build
 %cmake_kf5 -d build -- -DBUILD_TESTING=ON -DOKULAR_UI=desktop

++++++ 0001-Inform-users-about-the-okular-spectre-package-in-the.patch ++++++
>From e0e5a2f668941c03421fb0ce36e881b927a634df Mon Sep 17 00:00:00 2001
From: Fabian Vogt <[email protected]>
Date: Wed, 16 Sep 2020 16:29:53 +0200
Subject: [PATCH] Inform users about the okular-spectre package in the print
 preview

---
 ui/fileprinterpreview.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ui/fileprinterpreview.cpp b/ui/fileprinterpreview.cpp
index 6bac0cc8c..b06046d6d 100644
--- a/ui/fileprinterpreview.cpp
+++ b/ui/fileprinterpreview.cpp
@@ -92,6 +92,12 @@ void FilePrinterPreviewPrivate::getPart()
     }
 
     KService::List::ConstIterator it = offers.constBegin();
+    if (filename.endsWith(QStringLiteral(".ps")) && it == offers.constEnd()) {
+        failMessage = new QLabel(i18n("Ghostscript is needed for the print 
preview, but it has security issues and is not installed by default.\n"
+                                      "If you only open trusted documents, you 
can install the 'okular-spectre' package."), q);
+        return;
+    }
+
     while (!factory && it != offers.constEnd()) {
         KPluginLoader loader(**it);
         factory = loader.factory();
-- 
2.25.1




Reply via email to