commit f1c769f8fa46d8f2cef1aae4b2d5f87772482162
Author: Jakub Bogusz <[email protected]>
Date:   Tue May 30 22:37:02 2023 +0200

    - added gnome-desktop patch; release 4 (gnome-desktop 43)

 gnome-directory-thumbnailer-gnome-desktop.patch | 11 +++++++++++
 gnome-directory-thumbnailer.spec                | 10 ++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/gnome-directory-thumbnailer.spec b/gnome-directory-thumbnailer.spec
index f663e85..5055691 100644
--- a/gnome-directory-thumbnailer.spec
+++ b/gnome-directory-thumbnailer.spec
@@ -2,18 +2,19 @@ Summary:      GNOME thumbnailer utility to generate 
thumbnails for directories
 Summary(pl.UTF-8):     Narzędzie GNOME do tworzenia miniaturek dla katalogów
 Name:          gnome-directory-thumbnailer
 Version:       0.1.11
-Release:       3
+Release:       4
 License:       LGPL v2.1+
 Group:         X11/Applications
-Source0:       
http://ftp.gnome.org/pub/GNOME/sources/gnome-directory-thumbnailer/0.1/%{name}-%{version}.tar.xz
+Source0:       
https://download.gnome.org/sources/gnome-directory-thumbnailer/0.1/%{name}-%{version}.tar.xz
 # Source0-md5: 3433de424a1967c3d469521d1bc73aa2
+Patch0:                %{name}-gnome-desktop.patch
 URL:           https://wiki.gnome.org/Projects/GnomeDirectoryThumbnailer
 BuildRequires: autoconf >= 2.65
 BuildRequires: automake >= 1:1.11
 BuildRequires: gdk-pixbuf2-devel >= 2.36.5
 BuildRequires: gettext-tools
 BuildRequires: glib2-devel >= 1:2.36.0
-BuildRequires: gnome-desktop-devel >= 3.0
+BuildRequires: gnome-desktop-devel >= 43
 BuildRequires: gtk+3-devel >= 3.0
 BuildRequires: intltool >= 0.40.0
 BuildRequires: libtool >= 2:2
@@ -25,7 +26,7 @@ BuildRequires:        xz
 Requires(post,postun): glib2 >= 1:2.36.0
 Requires:      gdk-pixbuf2 >= 2.36.5
 Requires:      glib2 >= 1:2.36.0
-Requires:      gnome-desktop >= 3.0
+Requires:      gnome-desktop >= 43
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,6 +42,7 @@ ręcznie.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
diff --git a/gnome-directory-thumbnailer-gnome-desktop.patch 
b/gnome-directory-thumbnailer-gnome-desktop.patch
new file mode 100644
index 0000000..7758a9b
--- /dev/null
+++ b/gnome-directory-thumbnailer-gnome-desktop.patch
@@ -0,0 +1,11 @@
+--- gnome-directory-thumbnailer-0.1.11/src/main.c.orig 2019-09-02 
17:43:54.000000000 +0200
++++ gnome-directory-thumbnailer-0.1.11/src/main.c      2023-05-30 
22:35:02.161433957 +0200
+@@ -357,7 +357,7 @@ copy_thumbnail_from_file (GnomeDesktopTh
+                               g_setenv 
("GNOME_DIRECTORY_THUMBNAILER_RECURSION_LIMIT", new_recursion_limit_str, TRUE);
+                               g_free (new_recursion_limit_str);
+ 
+-                              pixbuf = 
gnome_desktop_thumbnail_factory_generate_thumbnail (factory, file_uri, 
file_mime_type);
++                              pixbuf = 
gnome_desktop_thumbnail_factory_generate_thumbnail (factory, file_uri, 
file_mime_type, NULL, NULL);
+                               if (pixbuf == NULL) {
+                                       /* gnome-desktop doesn't set an error 
so we have to. */
+                                       g_debug ("Error generating thumbnail.");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnome-directory-thumbnailer.git/commitdiff/f1c769f8fa46d8f2cef1aae4b2d5f87772482162

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to