Hello community,
here is the log from the commit of package viewnior for openSUSE:Factory checked in at 2014-01-20 16:24:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/viewnior (Old)
and /work/SRC/openSUSE:Factory/.viewnior.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "viewnior"
Changes:
--------
--- /work/SRC/openSUSE:Factory/viewnior/viewnior.changes 2012-03-16 13:27:30.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.viewnior.new/viewnior.changes 2014-01-23 15:57:47.000000000 +0100
@@ -1,0 +2,7 @@
+Sat Jan 4 19:27:26 UTC 2014 - lazy.kent@opensuse.org
+
+- Add viewnior-print.patch: add printing support (lp#816563); the
+ patch is updated for the current version of Viewnior.
+- BuildRequires: libtool.
+
+-------------------------------------------------------------------
New:
----
viewnior-print.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ viewnior.spec ++++++
--- /var/tmp/diff_new_pack.c248LB/_old 2014-01-23 15:57:48.000000000 +0100
+++ /var/tmp/diff_new_pack.c248LB/_new 2014-01-23 15:57:48.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package viewnior
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,10 @@
Url: http://xsisqox.github.com/Viewnior
Source0: http://cloud.github.com/downloads/xsisqox/Viewnior/%{name}-%{version}.tar.gz
Patch0: %{name}-1.1-ld_fix.patch
+# PATCH-FEATURE-UPSTREAM viewnior-print.patch lp#816563 ananasik@gmail.com -- add printing support
+Patch1: viewnior-print.patch
BuildRequires: intltool
+BuildRequires: libtool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-2.0)
Recommends: %{name}-lang
@@ -49,17 +52,19 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# fix spurious executable perms
chmod 0644 AUTHORS ChangeLog COPYING NEWS README TODO src/*
%build
+autoreconf -fiv
%configure
-make %{?_smp_mflags} V=1
+make %{?_smp_mflags}
%install
%make_install
-%find_lang %{name}
-%suse_update_desktop_file %{name}
+%find_lang %{name} %{?no_lang_C}
+%suse_update_desktop_file -r -G "Elegant Image Viewer" %{name} Graphics Viewer GTK
%post
%desktop_database_post
++++++ viewnior-print.patch ++++++
Index: viewnior-1.3/configure.ac
===================================================================
--- viewnior-1.3.orig/configure.ac
+++ viewnior-1.3/configure.ac
@@ -51,6 +51,7 @@ GDKPIXBUF_REQUIRED=2.4.0
VNR_MODULES="gtk+-2.0 >= $GTK_REQUIRED \
+ gtk+-unix-print-2.0 >= $GTK_REQUIRED \
glib-2.0 >= $GLIB_REQUIRED \
gio-2.0 >= $GLIB_REQUIRED \
shared-mime-info >= $SHARED_MIME_INFO_REQUIRED \
Index: viewnior-1.3/src/vnr-prefs.c
===================================================================
--- viewnior-1.3.orig/src/vnr-prefs.c
+++ viewnior-1.3/src/vnr-prefs.c
@@ -167,6 +167,8 @@ vnr_prefs_set_default(VnrPrefs *prefs)
prefs->start_slideshow = FALSE;
prefs->start_fullscreen = FALSE;
prefs->auto_resize = FALSE;
+ prefs->page_setup = NULL;
+ prefs->print_settings = NULL;
}
static GtkWidget *
@@ -365,6 +367,9 @@ vnr_prefs_load (VnrPrefs *prefs)
prefs->jpeg_quality = g_key_file_get_integer (conf, "prefs", "jpeg-quality", &error);
prefs->png_compression = g_key_file_get_integer (conf, "prefs", "png-compression", &error);
+ prefs->page_setup = gtk_page_setup_new_from_key_file (conf, NULL, NULL);
+ prefs->print_settings = gtk_print_settings_new_from_key_file (conf, NULL, NULL);
+
if(error != NULL)
{
g_warning("Parsing config file: %s. All preferences are set to their default values.", error->message);
@@ -453,6 +458,11 @@ vnr_prefs_save (VnrPrefs *prefs)
g_key_file_set_integer (conf, "prefs", "jpeg-quality", prefs->jpeg_quality);
g_key_file_set_integer (conf, "prefs", "png-compression", prefs->png_compression);
+ if (prefs->page_setup)
+ gtk_page_setup_to_key_file (prefs->page_setup, conf, NULL);
+ if (prefs->print_settings)
+ gtk_print_settings_to_key_file (prefs->print_settings, conf, NULL);
+
if(g_mkdir_with_parents (dir, 0700) != 0)
g_warning("Error creating config file's parent directory (%s)\n", dir);
Index: viewnior-1.3/src/vnr-prefs.h
===================================================================
--- viewnior-1.3.orig/src/vnr-prefs.h
+++ viewnior-1.3/src/vnr-prefs.h
@@ -96,6 +96,9 @@ struct _VnrPrefs {
GtkWidget *vnr_win;
GtkSpinButton *slideshow_timeout_widget;
+
+ GtkPrintSettings *print_settings;
+ GtkPageSetup *page_setup;
};
struct _VnrPrefsClass {
Index: viewnior-1.3/src/vnr-window.c
===================================================================
--- viewnior-1.3.orig/src/vnr-window.c
+++ viewnior-1.3/src/vnr-window.c
@@ -25,6 +25,7 @@
#include
#include
#include
+#include
#include
#include
#include "vnr-window.h"
@@ -69,6 +70,9 @@ const gchar *ui_definition = "<ui>"
"