]> git.pld-linux.org Git - packages/gnome-directory-thumbnailer.git/commitdiff
- added gnome-desktop patch; release 4 (gnome-desktop 43) master auto/th/gnome-directory-thumbnailer-0.1.11-4
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 30 May 2023 20:37:02 +0000 (22:37 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 30 May 2023 20:37:02 +0000 (22:37 +0200)
gnome-directory-thumbnailer-gnome-desktop.patch [new file with mode: 0644]
gnome-directory-thumbnailer.spec

diff --git a/gnome-directory-thumbnailer-gnome-desktop.patch b/gnome-directory-thumbnailer-gnome-desktop.patch
new file mode 100644 (file)
index 0000000..7758a9b
--- /dev/null
@@ -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.");
index f663e857715e5bc226134d3f8a515bb3f1fd54b5..50556913a3fdf7238d38907c1fee3cfe0cbe042c 100644 (file)
@@ -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}
This page took 0.198008 seconds and 4 git commands to generate.