Hello community,

here is the log from the commit of package atril for openSUSE:Leap:15.2 checked 
in at 2020-05-23 16:05:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/atril (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.atril.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "atril"

Sat May 23 16:05:45 2020 rev:14 rq:808170 version:1.24.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/atril/atril.changes    2020-01-15 
14:47:41.033308969 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.atril.new.2738/atril.changes  2020-05-23 
16:05:46.376841164 +0200
@@ -1,0 +2,190 @@
+Mon Mar 30 14:26:19 UTC 2020 - Alexei Sorokin <[email protected]>
+
+- Add atril-synctex-1.18.patch: Restore SyncTeX 1.18 support.
+- Add atril-glib-2.54.patch: Restore GLib 2.54 support.
+
+-------------------------------------------------------------------
+Wed Feb 26 19:38:40 UTC 2020 - Alexei Sorokin <[email protected]>
+
+- Update to version 1.24.0 (changes since 1.23.0):
+  * ev-view: Remove unused variables and assignment
+  * Avoid g_type_class_add_private.
+  * tiff: Handle failure from TIFFReadRGBAImageOriented.
+  * view-presentation: Use monitor instead of screen.
+  * shell: Use monitor instead of screen to determine window size.
+  * shell: Fix get_monitor_dpi when widget’s window is not
+    realized.
+  * DPI: Compute monitor resolution or get screen resolution.
+  * Prevent segfaults when no document loaded.
+  * Require GLib 2.54.0.
+  * Fix build warning on marshalling.
+  * Suppress GtkAction warnings.
+  * document: Replace deprecated gdk_color_equal.
+  * Fix buffer overflow in backend/tiff-document.c.
+  * Fix atril.desktop file.
+  * Fix memory leak ev_sidebar_thumbnails_document_changed_cb().
+  * pdf: Fix memory leak when adding new text annotations.
+  * libview: Fix a memory leak.
+  * Revert "First page should not reloaded"
+  * Avoid redundant redeclarations.
+  * libview: Reset "pressed_button" when starting Drag and Drop.
+  * Show SyncTeX version in the About dialogue.
+  * Add a hint for translators.
+  * Migrate from intltool to gettext.
+  * Add accelerator 'o' for toggling Odd Pages Left.
+  * Add accelerator 't' for toggling visibility of the toolbar.
+  * Remove synctex internally, work with external library instead.
+  * build: Require webkit2gtk-4.0 >= 2.6.0.
+  * End the va_list before returning from _synctex_merge_strings.
+  * build: Use synctex system library if available.
+  * Remove synctex warning.
+  * Bump synctex to 1.21.
+  * thumbnailer: Fix a memory leak.
+  * Fix year 2038 issue with signed 32-bit integers.
+  * Update translations.
+- Drop support for old openSUSE versions.
+
+-------------------------------------------------------------------
+Tue Sep 24 08:38:50 UTC 2019 - Michel Normand <[email protected]>
+
+-  Replace BuildRequires: libxml2-python by python3-libxml2
+   as libxml2 updated.
+
+-------------------------------------------------------------------
+Thu Jul 18 09:54:07 UTC 2019 - Jonathan Brielmaier <[email protected]>
+
+- Update to version 1.23.0:
+  * update translations
+  * Remove trailing whitespaces
+  * test: get focus on frame
+  * let test7.py can works
+  * force get focus on atril when testing
+  * migrate to python3 for test cases
+  * Bump Cairo version to 1.14.0
+  * Change url project's website
+  * help: update copyright
+  * Add documenters to translation resource
+  * Use program-name and title in gtk_show_about_dialog call
+  * Update copyright in about dialog
+  * Use g_strjoin to build license text in about dialog
+- remove patches:
+  * atril-gtk-3.20.patch: we don't need to support gtk-3.20 anymore
+
+-------------------------------------------------------------------
+Sun May 12 18:13:56 UTC 2019 - Alexei Sorokin <[email protected]>
+
+- Update to version 1.22.1:
+  * Add documenters to translation resource.
+  * Use program-name and title in gtk_show_about_dialog call.
+  * help: Update copyright.
+  * Update copyright in the About dialogue.
+  * Use g_strjoin to build licence text in the About dialogue.
+  * Update translations.
+
+-------------------------------------------------------------------
+Tue Mar  5 15:19:33 UTC 2019 - [email protected]
+
+- Update to version 1.22.0:
+  * Disable deprecation warnings for distcheck.
+  * shell: Don't dist generated files.
+  * presentation: Avoid deprecated
+    "gtk_style_context_set_background".
+  * ev-sidebar-bookmarks: Use NULL instead of an uninitialised
+    variable.
+  * Avoid deprecated gtk_menu_popup.
+  * libview: Replace deprecated gdk_flush.
+  * thumbnailer: Remove unused code.
+  * Add update-authors.pl script which helps to update atril.about.
+  * Read authors (updated) from atril.about gresource.
+  * [ephy-zoom-control] Avoid deprecated g_type_class_add_private.
+  * [ephy-zoom-action] Avoid deprecated g_type_class_add_private.
+  * Add pixbuf, tiff and xps TypeDescription to POTFILES.in.
+  * eggsmclient: Avoid deprecated 'g_type_class_add_private'.
+  * Move appdata to the metainfo/ directory.
+  * message-area: Set a11y object name from actual icon name.
+  * shell: Remove duplicate condition check.
+  * tiff: Fix possible NULL pointer dereference.
+  * pdf: Add missing break statement.
+  * libdocument: Drop useless freeing of a NULL pointer.
+  * comics: Fix incorrect mimetype saying to open and thumbnail all
+    rarfiles.
+  * Update translations.
+- Rebase atril-gtk-3.20.patch.
+
+-------------------------------------------------------------------
+Thu Dec 13 15:43:41 UTC 2018 - [email protected]
+
+- Update to version 1.20.3:
+  * Use make functions for HELP_LINGUAS.
+  * comics: Support application/vnd.rar MIME type.
+  * shell: Save document to the same path it was opened from.
+  * Reduce the chattiness of the atril daemon.
+  * EvView: Fix cursor movement when logical and visual line order
+    differs.
+  * Update atril_start_window.png.
+  * moveable (older spelling) -> movable.
+  * Update translations.
+
+-------------------------------------------------------------------
+Sat Jun 16 15:48:41 UTC 2018 - [email protected]
+
+- Update to version 1.20.2 (changes since 1.20.0):
+  * Disable view presentation if there is no document.
+  * Allow changing the page of a presentation.
+  * libview: Fix goto window in presentation mode.
+  * libview: Avoid deprecated gdk_screen_get_monitor.
+  * EvPresentationView: Render correctly on hi-dpi displays.
+  * libview: Fix g_return condition in
+    set_device_scale_on_surface().
+  * EvView: Render correctly on hi-dpi displays.
+  * libview: Use css to draw the background of presentations.
+  * Move custom css to a file compiled as a gresource.
+  * shell: Use GResource for data files.
+  * toolbar-editor: Add methods to load from GResource.
+  * previewer: Use GResource for data files.
+  * build: Add configure check for glib-compile-resources.
+  * Update resource for translations.
+  * libview: Check number of pages when processing button events.
+  * libview: Add check for pageless documents to
+    ev_view_accessible_focus_changed.
+  * libview: Check number of pages on ev_view_document_changed_cb.
+  * Use GtkOverlay to show the loading message.
+  * shell: Remove unused marshalers.
+  * thumbnailer: Send error messages to stderr.
+  * shell: Use GtkApplication to inhibit the screensaver.
+  * shell: Port to GtkApplication.
+  * shell: Use g_printerr instead of g_warning.
+  * daemon: Port to GApplication.
+  * daemon: Use gdbus-codegen for the org.mate.atril.Daemon
+    interface.
+  * shell: Use gdbus-codegen for the org.mate.atril.Window
+    interface.
+  * shell: Use gdbus-codegen for the org.mate.atril.Application
+    interface.
+  * libview: Save inverted colours in a document
+  * Save/restore context when getting colours for a different state.
+  * epub: Allow to save epub documents.
+  * epub: Fix loading epub thumbnails.
+  * shell: Fix menu-accel for inverted colours.
+  * shell: Add keypad accels for zoom_reset.
+  * Add zoom reset.
+  * Avoid deprecated GtkStock.
+  * Check legal boundaries of accessible pages.
+  * Disable StartPresentation action in fullscreen if document has
+    no pages.
+  * Disable ViewPresentation action if document has no pages.
+  * libdocument: Use gdk_pixbuf_get_from_surface().
+  * thumbnailer: Remove unused code.
+  * view: Fix page background rendering while loading.
+  * libdocument: Deprecate misc_get_page_border_size().
+  * view: Use a rendered frame instead of custom border.
+  * a11y: Return correct start and end offsets.
+  * a11y: Fix crash with Orca screen reader.
+  * libview: drop deprecated unneeded code.
+  * ev-loading-message: Remove unused variables.
+  * libview: fix text selection with mouse in annotation window.
+  * libview: fix build without epub.
+  * Update translations.
+- Rebase atril-gtk-3.20.patch.
+
+-------------------------------------------------------------------

Old:
----
  atril-1.20.0.tar.xz
  atril-gtk-3.20.patch

New:
----
  atril-1.24.0.tar.xz
  atril-glib-2.54.patch
  atril-synctex-1.18.patch

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

Other differences:
------------------
++++++ atril.spec ++++++
--- /var/tmp/diff_new_pack.4c3JqU/_old  2020-05-23 16:05:46.736841936 +0200
+++ /var/tmp/diff_new_pack.4c3JqU/_new  2020-05-23 16:05:46.736841936 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package atril
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,27 @@
 # 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 sover   3
-%define _version 1.20
 %define typelib1 typelib-1_0-AtrilDocument-1_5_0
 %define typelib2 typelib-1_0-AtrilView-1_5_0
+%define sover   3
+%define _version 1.24
 Name:           atril
-Version:        1.20.0
+Version:        1.24.0
 Release:        0
 Summary:        MATE Desktop document viewer
 License:        GPL-2.0-only AND LGPL-2.0-only
-Group:          System/GUI/Other
-Url:            https://mate-desktop.org/
-Source:         
http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
-# PATCH-FEATURE-OPENSUSE atril-gtk-3.20.patch -- Restore GLib 2.48 and GTK+ 
3.20 support.
-Patch0:         atril-gtk-3.20.patch
+URL:            https://mate-desktop.org/
+Source:         
https://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
+# PATCH-FEATURE-OPENSUSE atril-synctex-1.18.patch -- Restore SyncTeX 1.18 
support.
+Patch0:         %{name}-synctex-1.18.patch
+# PATCH-FEATURE-OPENSUSE atril-glib-2.54.patch -- Restore GLib 2.54 support.
+Patch1:         %{name}-glib-2.54.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  libxml2-python
 BuildRequires:  mate-common >= %{_version}
 BuildRequires:  pkgconfig
 BuildRequires:  texlive-devel
@@ -41,9 +41,9 @@
 BuildRequires:  pkgconfig(ddjvuapi)
 BuildRequires:  pkgconfig(gail-3.0)
 BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
-BuildRequires:  pkgconfig(glib-2.0) >= 2.48
+BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-introspection-1.0)
-BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20
+BuildRequires:  pkgconfig(gtk+-3.0)
 BuildRequires:  pkgconfig(libcaja-extension) >= %{_version}
 BuildRequires:  pkgconfig(libgxps)
 BuildRequires:  pkgconfig(libpst)
@@ -64,6 +64,11 @@
 Obsoletes:      mate-document-viewer < %{version}
 Obsoletes:      mate-document-viewer-lang < %{version}
 %glib2_gsettings_schema_requires
+%if 0%{?suse_version} >= 1550
+BuildRequires:  python3-libxml2
+%else
+BuildRequires:  python3-libxml2-python
+%endif
 
 %description
 Atril is a document viewer capable of displaying multiple and single
@@ -73,7 +78,6 @@
 
 %package -n libatrildocument%{sover}
 Summary:        MATE Document Viewer -- System Library
-Group:          System/Libraries
 Obsoletes:      mate-document-viewer-libs-3 < %{version}
 
 %description -n libatrildocument%{sover}
@@ -82,7 +86,6 @@
 
 %package -n libatrilview%{sover}
 Summary:        MATE Document Viewer -- System Library
-Group:          System/Libraries
 Obsoletes:      mate-document-viewer-libs-3 < %{version}
 
 %description -n libatrilview%{sover}
@@ -91,7 +94,6 @@
 
 %package -n %{typelib1}
 Summary:        MATE Desktop bindings for AtrilDocument
-Group:          System/GUI/Other
 
 %description -n %{typelib1}
 Atril is a document viewer capable of displaying multiple and single
@@ -99,7 +101,6 @@
 
 %package -n %{typelib2}
 Summary:        MATE Desktop bindings for AtrilView
-Group:          System/GUI/Other
 
 %description -n %{typelib2}
 Atril is a document viewer capable of displaying multiple and single
@@ -107,7 +108,6 @@
 
 %package backends
 Summary:        Atril shared libraries (View and Document)
-Group:          System/Libraries
 Requires:       mathjax
 # mate-document-viewer-libs-3 was last used in openSUSE 13.1.
 Provides:       mate-document-viewer-libs-3 = %{version}
@@ -119,10 +119,9 @@
 
 %package -n caja-extension-%{name}
 Summary:        Atril extension for Caja file manager
-Group:          System/GUI/Other
 Requires:       %{name} = %{version}
 Requires:       caja >= %{_version}
-Supplements:    packageand(caja:%{name})
+Supplements:    (caja and %{name})
 # atril-caja was last used in openSUSE Leap 42.1.
 Provides:       %{name}-caja = %{version}
 Obsoletes:      %{name}-caja < %{version}
@@ -140,7 +139,6 @@
 
 %package devel
 Summary:        MATE Desktop document viewer development files
-Group:          Development/Libraries/Other
 Requires:       %{name}-backends = %{version}
 Requires:       %{typelib1} = %{version}
 Requires:       %{typelib2} = %{version}
@@ -154,7 +152,6 @@
 
 %package thumbnailer
 Summary:        Atril thumbnailer extension for Caja
-Group:          System/GUI/Other
 Requires:       %{name} = %{version}
 Requires:       caja >= %{_version}
 
@@ -165,8 +162,7 @@
 This package contains the Atril extension for the Caja file manager.
 
 %prep
-%setup -q
-%patch0 -p1
+%autosetup -p1
 
 %build
 NOCONFIGURE=1 mate-autogen
@@ -175,7 +171,7 @@
   --with-pic                          \
   --libexecdir=%{_libexecdir}/%{name} \
   --enable-introspection
-make %{?_smp_mflags} V=1
+%make_build
 
 %install
 %make_install
@@ -192,26 +188,8 @@
 
 %postun -n libatrildocument%{sover} -p /sbin/ldconfig
 
-%if 0%{?suse_version} < 1500
-%post
-%icon_theme_cache_post
-%desktop_database_post
-%mime_database_post
-%glib2_gsettings_schema_post
-
-%postun
-%icon_theme_cache_post
-%desktop_database_postun
-%mime_database_postun
-%glib2_gsettings_schema_post
-%endif
-
 %files
-%if 0%{?suse_version} >= 1500
 %license COPYING
-%else
-%doc COPYING
-%endif
 %doc AUTHORS README
 %{_bindir}/%{name}
 %{_bindir}/%{name}-previewer
@@ -225,26 +203,18 @@
 %{_datadir}/glib-2.0/schemas/*.xml
 %{_datadir}/help/C/%{name}/
 %{_datadir}/applications/%{name}.desktop
-%dir %{_datadir}/appdata/
-%{_datadir}/appdata/%{name}.appdata.xml
+%dir %{_datadir}/metainfo/
+%{_datadir}/metainfo/%{name}.appdata.xml
 %{_datadir}/icons/hicolor/*/*/*
 %{_mandir}/man?/*.?%{?ext_man}
 
 %files -n libatrilview%{sover}
-%if 0%{?suse_version} >= 1500
 %license COPYING
-%else
-%doc COPYING
-%endif
 %doc AUTHORS README
 %{_libdir}/libatrilview.so.%{sover}*
 
 %files -n libatrildocument%{sover}
-%if 0%{?suse_version} >= 1500
 %license COPYING
-%else
-%doc COPYING
-%endif
 %doc AUTHORS README
 %{_libdir}/libatrildocument.so.%{sover}*
 
@@ -266,11 +236,7 @@
 %{_libdir}/girepository-1.0/AtrilView-1.5.0.typelib
 
 %files backends
-%if 0%{?suse_version} >= 1500
 %license COPYING
-%else
-%doc COPYING
-%endif
 %doc AUTHORS README
 %{_libdir}/%{name}/%{sover}/backends/
 

++++++ atril-1.20.0.tar.xz -> atril-1.24.0.tar.xz ++++++
++++ 661962 lines of diff (skipped)

++++++ atril-glib-2.54.patch ++++++
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ GLIB_GSETTINGS
 
 dnl Specify required versions of dependencies
 CAIRO_REQUIRED=1.14.0
-GLIB_REQUIRED=2.62.0
+GLIB_REQUIRED=2.54.0
 GTK_REQUIRED=3.22.0
 WEBKIT_REQUIRED=2.6.0
 LIBSECRET_REQUIRED=0.5
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2194,12 +2194,18 @@ set_uri_mtime (GFile        *source,
 
        info = g_file_query_info_finish (source, async_result, NULL);
        if (info) {
+#if GLIB_CHECK_VERSION (2, 62, 0)
                GDateTime *mtime;
                mtime = g_file_info_get_modification_date_time (info);
                if (mtime) {
                        utime = g_date_time_to_unix (mtime);
                        g_date_time_unref (mtime);
                }
+#else
+               GTimeVal mtime;
+               g_file_info_get_modification_time (info, &mtime);
+               utime = mtime.tv_sec;
+#endif
                g_object_unref (info);
        }
        ev_window->priv->uri_mtime = utime;
@@ -2597,7 +2603,11 @@ query_remote_uri_mtime_cb (GFile
                           EvWindow     *ev_window)
 {
        GFileInfo *info;
+#if GLIB_CHECK_VERSION (2, 62, 0)
        GDateTime *mtime;
+#else
+       GTimeVal   mtime;
+#endif
        GError    *error = NULL;
         gint64     utime;
 
@@ -2610,9 +2620,14 @@ query_remote_uri_mtime_cb (GFile
                return;
        }
 
+#if GLIB_CHECK_VERSION (2, 62, 0)
        mtime = g_file_info_get_modification_date_time (info);
        utime = g_date_time_to_unix (mtime);
        g_date_time_unref (mtime);
+#else
+       g_file_info_get_modification_time (info, &mtime);
+       utime = mtime.tv_sec;
+#endif
 
        if (ev_window->priv->uri_mtime != utime) {
                GFile *target_file;
++++++ atril-synctex-1.18.patch ++++++
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ GTK_REQUIRED=3.22.0
 WEBKIT_REQUIRED=2.6.0
 LIBSECRET_REQUIRED=0.5
 LIBXML_REQUIRED=2.5.0
-SYNCTEX_REQUIRED=1.21
+SYNCTEX_REQUIRED=1.18
 
 AC_SUBST([GLIB_REQUIRED])
 AC_SUBST([GTK_REQUIRED])
@@ -364,6 +364,11 @@ dnl ================== libsynctex ======
 
 PKG_CHECK_MODULES(SYNCTEX, [synctex >= $SYNCTEX_REQUIRED], has_synctex=yes, 
has_synctex=no)
 
+PKG_CHECK_EXISTS(synctex >= 1.21, [have_synctex_1_21=yes], 
[have_synctex_1_21=no])
+if test "$have_synctex_1_21" = yes; then
+  AC_DEFINE(HAVE_SYNCTEX_1_21, 1, [synctex >= 1.21 present])
+fi
+
 dnl not found? use internal code copy.
 if test "x$has_synctex" = "xno"; then
         AC_MSG_ERROR("SyncTeX support is disabled since library version 
$SYNCTEX_REQUIRED or newer not found")
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -28,6 +28,12 @@
 #include "synctex_parser.h"
 #include "ev-file-helpers.h"
 
+#ifndef HAVE_SYNCTEX_1_21
+typedef synctex_node_t    synctex_node_p;
+typedef synctex_scanner_t synctex_scanner_p;
+#define synctex_scanner_next_result synctex_next_result
+#endif
+
 typedef struct _EvPageSize
 {
        gdouble width;
@@ -471,7 +477,11 @@ ev_document_synctex_forward_search (EvDo
         if (!scanner)
                 return NULL;
 
+#ifdef HAVE_SYNCTEX_1_21
         if (synctex_display_query (scanner, link->filename, link->line, 
link->col, 0) > 0) {
+#else
+        if (synctex_display_query (scanner, link->filename, link->line, 
link->col) > 0) {
+#endif
                 synctex_node_p node;
                 gint           page;
 

Reply via email to