Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package zathura-plugin-ps for
openSUSE:Factory checked in at 2022-12-15 19:25:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zathura-plugin-ps (Old)
and /work/SRC/openSUSE:Factory/.zathura-plugin-ps.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zathura-plugin-ps"
Thu Dec 15 19:25:38 2022 rev:7 rq:1043062 version:0.2.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/zathura-plugin-ps/zathura-plugin-ps.changes
2018-08-10 09:51:25.462429269 +0200
+++
/work/SRC/openSUSE:Factory/.zathura-plugin-ps.new.1835/zathura-plugin-ps.changes
2022-12-15 19:26:08.572376402 +0100
@@ -1,0 +2,6 @@
+Tue Dec 13 19:21:18 UTC 2022 - llyyr <[email protected]>
+
+- Update to 0.2.7
+ * Various bug fixes and improvements
+
+-------------------------------------------------------------------
Old:
----
zathura-ps-0.2.6.tar.xz
New:
----
zathura-ps-0.2.7.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ zathura-plugin-ps.spec ++++++
--- /var/tmp/diff_new_pack.bNjQPw/_old 2022-12-15 19:26:08.952378564 +0100
+++ /var/tmp/diff_new_pack.bNjQPw/_new 2022-12-15 19:26:08.956378587 +0100
@@ -1,7 +1,7 @@
#
# spec file for package zathura-plugin-ps
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,13 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define realname zathura-ps
Name: zathura-plugin-ps
-Version: 0.2.6
+Version: 0.2.7
Release: 0
Summary: PS support for zathura via libspectre
License: Zlib
++++++ zathura-ps-0.2.6.tar.xz -> zathura-ps-0.2.7.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/meson.build
new/zathura-ps-0.2.7/meson.build
--- old/zathura-ps-0.2.6/meson.build 2018-03-17 20:30:58.000000000 +0100
+++ new/zathura-ps-0.2.7/meson.build 2021-07-14 18:55:00.173921300 +0200
@@ -1,5 +1,5 @@
project('zathura-ps', 'c',
- version: '0.2.6',
+ version: '0.2.7',
meson_version: '>=0.43',
default_options: 'c_std=c11'
)
@@ -22,6 +22,12 @@
build_dependencies = [zathura, girara, glib, cairo, spectre]
+if get_option('plugindir') == ''
+ plugindir = zathura.get_pkgconfig_variable('plugindir')
+else
+ plugindir = get_option('plugindir')
+endif
+
# defines
defines = [
'-DVERSION_MAJOR=@0@'.format(version_array[0]),
@@ -54,7 +60,7 @@
dependencies: build_dependencies,
c_args: defines + flags,
install: true,
- install_dir: zathura.get_pkgconfig_variable('plugindir')
+ install_dir: plugindir
)
subdir('data')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/meson_options.txt
new/zathura-ps-0.2.7/meson_options.txt
--- old/zathura-ps-0.2.6/meson_options.txt 1970-01-01 01:00:00.000000000
+0100
+++ new/zathura-ps-0.2.7/meson_options.txt 2021-07-14 18:55:00.173921300
+0200
@@ -0,0 +1,5 @@
+option('plugindir',
+ type: 'string',
+ value: '',
+ description: 'Install to a different location than Zathura\'s plugin
directory'
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/document.c
new/zathura-ps-0.2.7/zathura-ps/document.c
--- old/zathura-ps-0.2.6/zathura-ps/document.c 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/document.c 2021-07-14 18:55:00.185921400
+0200
@@ -1,13 +1,10 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#include <string.h>
#include <glib.h>
#include "plugin.h"
-/* forward declaration */
-static const char* get_extension(const char* path);
-
zathura_error_t
ps_document_open(zathura_document_t* document)
{
@@ -70,9 +67,7 @@
return ZATHURA_ERROR_INVALID_ARGUMENTS;
}
- const char* extension = get_extension(path);
-
- if (extension != NULL && g_strcmp0(extension, "pdf") == 0) {
+ if (g_str_has_suffix(path, ".pdf") == true) {
spectre_document_save_to_pdf(spectre_document, path);
} else {
spectre_document_save(spectre_document, path);
@@ -84,26 +79,3 @@
return ZATHURA_ERROR_OK;
}
}
-
-static const char*
-get_extension(const char* path)
-{
- if (path == NULL) {
- return NULL;
- }
-
- unsigned int i = strlen(path);
- for (; i > 0; i--) {
- if (*(path + i) != '.') {
- continue;
- } else {
- break;
- }
- }
-
- if (i == 0) {
- return NULL;
- }
-
- return path + i + 1;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/meta.c
new/zathura-ps-0.2.7/zathura-ps/meta.c
--- old/zathura-ps-0.2.6/zathura-ps/meta.c 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/meta.c 2021-07-14 18:55:00.185921400
+0200
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#include "plugin.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/page.c
new/zathura-ps-0.2.7/zathura-ps/page.c
--- old/zathura-ps-0.2.6/zathura-ps/page.c 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/page.c 2021-07-14 18:55:00.185921400
+0200
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#include "plugin.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/plugin.c
new/zathura-ps-0.2.7/zathura-ps/plugin.c
--- old/zathura-ps-0.2.6/zathura-ps/plugin.c 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/plugin.c 2021-07-14 18:55:00.189921600
+0200
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#include "plugin.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/plugin.h
new/zathura-ps-0.2.7/zathura-ps/plugin.h
--- old/zathura-ps-0.2.6/zathura-ps/plugin.h 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/plugin.h 2021-07-14 18:55:00.189921600
+0200
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#ifndef PS_H
#define PS_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zathura-ps-0.2.6/zathura-ps/render.c
new/zathura-ps-0.2.7/zathura-ps/render.c
--- old/zathura-ps-0.2.6/zathura-ps/render.c 2018-03-17 20:30:58.000000000
+0100
+++ new/zathura-ps-0.2.7/zathura-ps/render.c 2021-07-14 18:55:00.189921600
+0200
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
#include <glib.h>
#include <stdlib.h>