From dfae43d02739bd38c0c3275ede6196f3c4dde0c3 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Jun 16 2011 13:04:44 +0000 Subject: Update to 3.1.2 --- diff --git a/.gitignore b/.gitignore index e819d79..c7537da 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ eog-2.31.4-20100623git.tar.bz2 /eog-3.0.0.tar.bz2 /eog-3.0.1.tar.bz2 /eog-3.1.1.tar.bz2 +/eog-3.1.2.tar.xz diff --git a/0001-Fix-linking-with-LCMS-support-enabled.patch b/0001-Fix-linking-with-LCMS-support-enabled.patch deleted file mode 100644 index 824a242..0000000 --- a/0001-Fix-linking-with-LCMS-support-enabled.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 0c8ebc521dfc62ddb7a135ede5a601af68d94e8b Mon Sep 17 00:00:00 2001 -From: Bastien Nocera -Date: Wed, 10 Feb 2010 16:28:46 +0000 -Subject: [PATCH] Fix linking with LCMS support enabled - -We use libX11 functions, so we need to link against them. - -/usr/bin/ld: ./.libs/libeog.a(libeog_la-eog-window.o): undefined reference to symbol 'XFree' -/usr/bin/ld: note: 'XFree' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line -/usr/lib64/libX11.so.6: could not read symbols: Invalid operation - -https://bugzilla.gnome.org/show_bug.cgi?id=609553 ---- - configure.ac | 2 +- - src/Makefile.am | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index a120bc5..1e011ec 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -147,7 +147,7 @@ AM_CONDITIONAL([HAVE_EXIF], [test "x$have_exif" = "xyes"]) - AC_ARG_WITH([cms], AC_HELP_STRING([--without-cms], [disable colour management support])) - have_lcms=no - if test x$with_cms != xno; then -- PKG_CHECK_MODULES(LCMS, lcms, have_lcms=yes, have_lcms=no) -+ PKG_CHECK_MODULES(LCMS, lcms x11, have_lcms=yes, have_lcms=no) - fi - if test "x$have_lcms" = "xyes"; then - AC_DEFINE(HAVE_LCMS, 1, [Little CMS Support.]) -diff --git a/src/Makefile.am b/src/Makefile.am -index bbf296f..5ad8af9 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -156,7 +156,7 @@ libeog_la_CFLAGS = \ - -DEOG_PLUGIN_DIR=\""$(libdir)/eog/plugins"\" - - libeog_la_LIBADD = \ -- $(EOG_LIBS) -+ $(EOG_LIBS) $(LCMS_LIBS) - - if ENABLE_PYTHON - libeog_la_CFLAGS += \ --- -1.6.6 - diff --git a/eog-2.19.4-svgz.patch b/eog-2.19.4-svgz.patch deleted file mode 100644 index 7beba2e..0000000 --- a/eog-2.19.4-svgz.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff -up eog-2.19.4/src/eog-image.c.svgz eog-2.19.4/src/eog-image.c ---- eog-2.19.4/src/eog-image.c.svgz 2007-07-09 16:20:10.000000000 -0400 -+++ eog-2.19.4/src/eog-image.c 2007-07-10 10:41:07.000000000 -0400 -@@ -480,7 +480,7 @@ eog_image_apply_transformations (EogImag - } - - static GnomeVFSFileSize --eog_image_determine_file_bytes (EogImage *img, GError **error) -+eog_image_determine_file_bytes (EogImage *img, gchar **mime_type, GError **error) - { - GnomeVFSFileInfo *info; - GnomeVFSFileSize bytes; -@@ -491,11 +491,14 @@ eog_image_determine_file_bytes (EogImage - result = gnome_vfs_get_file_info_uri (img->priv->uri, - info, - GNOME_VFS_FILE_INFO_DEFAULT | -+ GNOME_VFS_FILE_INFO_GET_MIME_TYPE | - GNOME_VFS_FILE_INFO_FOLLOW_LINKS); - - if ((result != GNOME_VFS_OK) || - (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_SIZE) == 0) { - bytes = 0; -+ if (mime_type) -+ *mime_type = NULL; - - g_set_error (error, - EOG_IMAGE_ERROR, -@@ -503,6 +506,8 @@ eog_image_determine_file_bytes (EogImage - gnome_vfs_result_to_string (result)); - } else { - bytes = info->size; -+ if (mime_type) -+ *mime_type = g_strdup (info->mime_type); - } - - gnome_vfs_file_info_unref (info); -@@ -834,6 +839,7 @@ eog_image_real_load (EogImage *img, - GnomeVFSResult result; - EogMetadataReader *md_reader = NULL; - GdkPixbufFormat *format; -+ gchar *mime_type; - GdkPixbufLoader *loader = NULL; - guchar *buffer; - gboolean failed = FALSE; -@@ -852,9 +858,10 @@ eog_image_real_load (EogImage *img, - priv->file_type = NULL; - } - -- priv->bytes = eog_image_determine_file_bytes (img, error); -+ priv->bytes = eog_image_determine_file_bytes (img, &mime_type, error); - - if (priv->bytes == 0) { -+ g_free (mime_type); - return FALSE; - } - -@@ -877,6 +884,7 @@ eog_image_real_load (EogImage *img, - result = gnome_vfs_open_uri (&handle, priv->uri, GNOME_VFS_OPEN_READ); - - if (result != GNOME_VFS_OK) { -+ g_free (mime_type); - g_set_error (error, - EOG_IMAGE_ERROR, - EOG_IMAGE_ERROR_VFS, -@@ -886,9 +894,12 @@ eog_image_real_load (EogImage *img, - } - - buffer = g_new0 (guchar, EOG_IMAGE_READ_BUFFER_SIZE); -+ loader = gdk_pixbuf_loader_new_with_mime_type (mime_type, NULL); -+ g_free (mime_type); -+ if (loader == NULL) -+ loader = gdk_pixbuf_loader_new (); - - if (read_image_data || read_only_dimension) { -- loader = gdk_pixbuf_loader_new (); - - g_signal_connect_object (G_OBJECT (loader), - "size-prepared", diff --git a/eog-gsettings1.patch b/eog-gsettings1.patch deleted file mode 100644 index 730834e..0000000 --- a/eog-gsettings1.patch +++ /dev/null @@ -1,172 +0,0 @@ -From afac01c63d764fc1b111698ef0b76473e8cfc96d Mon Sep 17 00:00:00 2001 -From: Felix Riemann -Date: Sat, 12 Jun 2010 16:46:28 +0000 -Subject: Make GSettings keys follow the new naming conventions - -This caused build failures for other modules, so we had to do it now. -Fixes bug #621370. ---- -diff --git a/data/Makefile.am b/data/Makefile.am -index 1bf1c2a..11fa246 100644 ---- a/data/Makefile.am -+++ b/data/Makefile.am -@@ -14,8 +14,7 @@ gsettings_SCHEMAS = org.gnome.eog.gschema.xml - - @INTLTOOL_XML_NOMERGE_RULE@ - @GSETTINGS_RULES@ --# Allow key names to not follow the new naming scheme until we fixed them --GLIB_COMPILE_SCHEMAS += --allow-any-name -+ - schemas_in_files = eog.schemas.in - schemasdir = $(GCONF_SCHEMA_FILE_DIR) - schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) -diff --git a/data/org.gnome.eog.gschema.xml.in.in b/data/org.gnome.eog.gschema.xml.in.in -index c0a44a9..6bde338 100644 ---- a/data/org.gnome.eog.gschema.xml.in.in -+++ b/data/org.gnome.eog.gschema.xml.in.in -@@ -1,7 +1,7 @@ - - - -- -+ - - - -@@ -31,17 +31,17 @@ - <_summary>Transparency indicator - <_description>Determines how transparency should be indicated. Valid values are CHECK_PATTERN, COLOR and NONE. If COLOR is choosen, then the trans_color key determines the used color value. - -- -+ - true - <_summary>Scroll wheel zoom - <_description>Whether the scroll wheel should be used for zooming. - -- -+ - 0.05 - <_summary>Zoom multiplier - <_description>The multiplier to be applied when using the mouse scroll wheel for zooming. This value defines the zooming step used for each scroll event. For example, 0.05 results in a 5% zoom increment for each scroll event and 1.00 result in a 100% zoom increment. - -- -+ - '#000000' - <_summary>Transparency color - <_description>If the transparency key has the value COLOR, then this key determines the color which is used for indicating transparency. -@@ -52,7 +52,7 @@ - <_description>If this is active the color set by the background-color key will be used to fill the area behind the image. If it is not set the current GTK theme will determine the fill color. - - -- -+ - - true - <_summary>Loop through the image sequence -@@ -78,15 +78,15 @@ - true - <_summary>Show/Hide the window statusbar. - -- -+ - false - <_summary>Show/Hide the image collection pane. - -- -+ - 0 - <_summary>Image collection pane position. Set to 0 for bottom; 1 for left; 2 for top; 3 for right. - -- -+ - false - <_summary>Whether the image collection pane should be resizable. - -@@ -94,28 +94,28 @@ - true - <_summary>Show/Hide the window side pane. - -- -+ - true - <_summary>Show/Hide the image collection pane scroll buttons. - -- -+ - false - <_summary>Trash images without asking - <_description>If activated Eye of GNOME wont ask for confirmation when moving images to the trash. It will still ask if any of the files cannot be moved to the trash and would be deleted instead. - -- -+ - true - <_summary>Whether the file chooser should show the user's pictures folder if no images are loaded. - <_description>If activated and no image is loaded in the active window, the file chooser will display the user's pictures folder using the XDG special user directories. If deactivated or the pictures folder has not been set up it will show the current working directory. - -- -+ - true - <_summary>Whether the metadata list in the properties dialog should have its own page. - <_description>If activated the detailed metadata list in the properties dialog will be moved to its own page in the dialog. This should make the dialog more usable on smaller screens, e.g. as used by netbooks. If disabled the widget will be embedded on the "Metadata" page. - - - -- -+ - [] - <_summary>Active plugins - <_description>List of active plugins. It doesn't contain the "Location" of the active plugins. See the .eog-plugin file for obtaining the "Location" of a given plugin. -diff --git a/src/eog-config-keys.h b/src/eog-config-keys.h -index ee99a92..81c6c21 100644 ---- a/src/eog-config-keys.h -+++ b/src/eog-config-keys.h -@@ -27,7 +27,7 @@ - #define __EOG_CONFIG_KEYS_H__ - - #define EOG_CONF_DOMAIN "org.gnome.eog" --#define EOG_CONF_FULLSCREEN EOG_CONF_DOMAIN".full_screen" -+#define EOG_CONF_FULLSCREEN EOG_CONF_DOMAIN".fullscreen" - #define EOG_CONF_PLUGINS EOG_CONF_DOMAIN".plugins" - #define EOG_CONF_UI EOG_CONF_DOMAIN".ui" - #define EOG_CONF_VIEW EOG_CONF_DOMAIN".view" -@@ -40,11 +40,11 @@ - #define EOG_CONF_VIEW_BACKGROUND_COLOR "background-color" - #define EOG_CONF_VIEW_INTERPOLATE "interpolate" - #define EOG_CONF_VIEW_EXTRAPOLATE "extrapolate" --#define EOG_CONF_VIEW_SCROLL_WHEEL_ZOOM "scroll_wheel_zoom" --#define EOG_CONF_VIEW_ZOOM_MULTIPLIER "zoom_multiplier" -+#define EOG_CONF_VIEW_SCROLL_WHEEL_ZOOM "scroll-wheel-zoom" -+#define EOG_CONF_VIEW_ZOOM_MULTIPLIER "zoom-multiplier" - #define EOG_CONF_VIEW_AUTOROTATE "autorotate" - #define EOG_CONF_VIEW_TRANSPARENCY "transparency" --#define EOG_CONF_VIEW_TRANS_COLOR "trans_color" -+#define EOG_CONF_VIEW_TRANS_COLOR "trans-color" - #define EOG_CONF_VIEW_USE_BG_COLOR "use-background-color" - - #define EOG_CONF_FULLSCREEN_LOOP "loop" -@@ -53,15 +53,15 @@ - - #define EOG_CONF_UI_TOOLBAR "toolbar" - #define EOG_CONF_UI_STATUSBAR "statusbar" --#define EOG_CONF_UI_IMAGE_COLLECTION "image_collection" --#define EOG_CONF_UI_IMAGE_COLLECTION_POSITION "image_collection_position" --#define EOG_CONF_UI_IMAGE_COLLECTION_RESIZABLE "image_collection_resizable" -+#define EOG_CONF_UI_IMAGE_COLLECTION "image-collection" -+#define EOG_CONF_UI_IMAGE_COLLECTION_POSITION "image-collection-position" -+#define EOG_CONF_UI_IMAGE_COLLECTION_RESIZABLE "image-collection-resizable" - #define EOG_CONF_UI_SIDEBAR "sidebar" --#define EOG_CONF_UI_SCROLL_BUTTONS "scroll_buttons" --#define EOG_CONF_UI_DISABLE_TRASH_CONFIRMATION "disable_trash_confirmation" --#define EOG_CONF_UI_FILECHOOSER_XDG_FALLBACK "filechooser_xdg_fallback" --#define EOG_CONF_UI_PROPSDIALOG_NETBOOK_MODE "propsdialog_netbook_mode" -+#define EOG_CONF_UI_SCROLL_BUTTONS "scroll-buttons" -+#define EOG_CONF_UI_DISABLE_TRASH_CONFIRMATION "disable-trash-confirmation" -+#define EOG_CONF_UI_FILECHOOSER_XDG_FALLBACK "filechooser-xdg-fallback" -+#define EOG_CONF_UI_PROPSDIALOG_NETBOOK_MODE "propsdialog-netbook-mode" - --#define EOG_CONF_PLUGINS_ACTIVE_PLUGINS "active_plugins" -+#define EOG_CONF_PLUGINS_ACTIVE_PLUGINS "active-plugins" - - #endif /* __EOG_CONFIG_KEYS_H__ */ --- -cgit v0.8.3.1 diff --git a/eog-gsettings2.patch b/eog-gsettings2.patch deleted file mode 100644 index 900196f..0000000 --- a/eog-gsettings2.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 6cb2ce2c72ce91f4f56d9110d7326e5ede86d7f9 Mon Sep 17 00:00:00 2001 -From: Felix Riemann -Date: Sat, 12 Jun 2010 16:48:54 +0000 -Subject: Make forgotten GSettings keys use the key macros - ---- -diff --git a/src/eog-window.c b/src/eog-window.c -index 0dd6ab4..6289584 100644 ---- a/src/eog-window.c -+++ b/src/eog-window.c -@@ -424,10 +424,11 @@ eog_window_collection_mode_changed_cb (GSettings *settings, - - priv = EOG_WINDOW (user_data)->priv; - -- position = g_settings_get_int (settings, "image_collection_position"); -+ position = g_settings_get_int (settings, -+ EOG_CONF_UI_IMAGE_COLLECTION_POSITION); - - resizable = g_settings_get_boolean (settings, -- "image_collection_resizable"); -+ EOG_CONF_UI_IMAGE_COLLECTION_RESIZABLE); - - if (priv->collection_position == position && - priv->collection_resizable == resizable) --- -cgit v0.8.3.1 diff --git a/eog-gsettings3.patch b/eog-gsettings3.patch deleted file mode 100644 index 5b02b69..0000000 --- a/eog-gsettings3.patch +++ /dev/null @@ -1,173 +0,0 @@ -From ea478326b68a8eba0a119eec92ac5374c00fe2b3 Mon Sep 17 00:00:00 2001 -From: Felix Riemann -Date: Sat, 12 Jun 2010 16:52:12 +0000 -Subject: Make GConf keys match the new GSettings keys - ---- -diff --git a/data/eog.schemas.in b/data/eog.schemas.in -index e37c3c7..501bc5c 100644 ---- a/data/eog.schemas.in -+++ b/data/eog.schemas.in -@@ -51,14 +51,14 @@ - Transparency indicator - Determines how transparency should be indicated. Valid values - are CHECK_PATTERN, COLOR and NONE. If COLOR is choosen, then -- the trans_color key determines the used color value. -+ the trans-color key determines the used color value. - - - - - -- /schemas/apps/eog/view/scroll_wheel_zoom -- /apps/eog/view/scroll_wheel_zoom -+ /schemas/apps/eog/view/scroll-wheel-zoom -+ /apps/eog/view/scroll-wheel-zoom - eog - bool - 1 -@@ -69,8 +69,8 @@ - - - -- /schemas/apps/eog/view/zoom_multiplier -- /apps/eog/view/zoom_multiplier -+ /schemas/apps/eog/view/zoom-multiplier -+ /apps/eog/view/zoom-multiplier - eog - float - 0.05 -@@ -84,8 +84,8 @@ - - - -- /schemas/apps/eog/view/trans_color -- /apps/eog/view/trans_color -+ /schemas/apps/eog/view/trans-color -+ /apps/eog/view/trans-color - eog - string - #000000 -@@ -98,8 +98,8 @@ - - - -- /schemas/apps/eog/full_screen/loop -- /apps/eog/full_screen/loop -+ /schemas/apps/eog/full-screen/loop -+ /apps/eog/full-screen/loop - eog - bool - 1 -@@ -111,8 +111,8 @@ - - - -- /schemas/apps/eog/full_screen/upscale -- /apps/eog/full_screen/upscale -+ /schemas/apps/eog/full-screen/upscale -+ /apps/eog/full-screen/upscale - eog - bool - 1 -@@ -124,8 +124,8 @@ - - - -- /schemas/apps/eog/full_screen/seconds -- /apps/eog/full_screen/seconds -+ /schemas/apps/eog/full-screen/seconds -+ /apps/eog/full-screen/seconds - eog - int - 5 -@@ -160,8 +160,8 @@ - - - -- /schemas/apps/eog/ui/image_collection -- /apps/eog/ui/image_collection -+ /schemas/apps/eog/ui/image-collection -+ /apps/eog/ui/image-collection - eog - bool - 0 -@@ -171,8 +171,8 @@ - - - -- /schemas/apps/eog/ui/image_collection_position -- /apps/eog/ui/image_collection_position -+ /schemas/apps/eog/ui/image-collection-position -+ /apps/eog/ui/image-collection-position - eog - int - 0 -@@ -183,8 +183,8 @@ - - - -- /schemas/apps/eog/ui/image_collection_resizable -- /apps/eog/ui/image_collection_resizable -+ /schemas/apps/eog/ui/image-collection-resizable -+ /apps/eog/ui/image-collection-resizable - eog - bool - 0 -@@ -205,8 +205,8 @@ - - - -- /schemas/apps/eog/ui/scroll_buttons -- /apps/eog/ui/scroll_buttons -+ /schemas/apps/eog/ui/scroll-buttons -+ /apps/eog/ui/scroll-buttons - eog - bool - 1 -@@ -216,8 +216,8 @@ - - - -- /schemas/apps/eog/ui/disable_trash_confirmation -- /apps/eog/ui/disable_trash_confirmation -+ /schemas/apps/eog/ui/disable-trash-confirmation -+ /apps/eog/ui/disable-trash-confirmation - eog - bool - 0 -@@ -230,8 +230,8 @@ - - - -- /schemas/apps/eog/ui/filechooser_xdg_fallback -- /apps/eog/ui/filechooser_xdg_fallback -+ /schemas/apps/eog/ui/filechooser-xdg-fallback -+ /apps/eog/ui/filechooser-xdg-fallback - eog - bool - 1 -@@ -242,8 +242,8 @@ - - - -- /schemas/apps/eog/ui/propsdialog_netbook_mode -- /apps/eog/ui/propsdialog_netbook_mode -+ /schemas/apps/eog/ui/propsdialog-netbook-mode -+ /apps/eog/ui/propsdialog-netbook-mode - eog - bool - 1 -@@ -257,8 +257,8 @@ - - - -- /schemas/apps/eog/plugins/active_plugins -- /apps/eog/plugins/active_plugins -+ /schemas/apps/eog/plugins/active-plugins -+ /apps/eog/plugins/active-plugins - eog - list - string --- -cgit v0.8.3.1 diff --git a/eog.spec b/eog.spec index 45126a0..4b8c405 100644 --- a/eog.spec +++ b/eog.spec @@ -1,18 +1,18 @@ %define gtk3_version 3.0.2 -%define glib2_version 2.25.15 +%define glib2_version 2.29.4 %define gnome_desktop_version 2.91.2 %define gnome_icon_theme_version 2.19.1 %define desktop_file_utils_version 0.9 %define gail_version 1.2.0 -%define libexif_version 0.6.12 +%define libexif_version 0.6.14 Summary: Eye of GNOME image viewer Name: eog -Version: 3.1.1 +Version: 3.1.2 Release: 1%{?dist} URL: http://projects.gnome.org/eog/ #VCS: git:git://git.gnome.org/eog -Source: http://download.gnome.org/sources/eog/3.1/%{name}-%{version}.tar.bz2 +Source: http://download.gnome.org/sources/eog/3.1/%{name}-%{version}.tar.xz # The GFDL has an "or later version" clause embedded inside the license. # There is no need to add the + here. License: GPLv2+ and GFDL @@ -22,7 +22,7 @@ BuildRequires: gtk3-devel >= %{gtk3_version} BuildRequires: gail-devel >= %{gail_version} BuildRequires: libexif-devel >= %{libexif_version} BuildRequires: exempi-devel -BuildRequires: lcms-devel +BuildRequires: lcms2-devel BuildRequires: intltool BuildRequires: libjpeg-devel BuildRequires: scrollkeeper @@ -39,6 +39,8 @@ BuildRequires: gdk-pixbuf2-devel BuildRequires: shared-mime-info BuildRequires: gsettings-desktop-schemas-devel BuildRequires: dbus-glib-devel +BuildRequires: gobject-introspection-devel +BuildRequires: zlib-devel Requires: gsettings-desktop-schemas Requires(post): desktop-file-utils >= %{desktop_file_utils_version} @@ -123,6 +125,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas %{_datadir}/gtk-doc/ %changelog +* Thu Jun 16 2011 Tomas Bzatek - 3.1.2-1 +- Update to 3.1.2 + * Wed May 11 2011 Tomas Bzatek 3.1.1-1 - Update to 3.1.1 diff --git a/lockup.patch b/lockup.patch deleted file mode 100644 index 1eaa82b..0000000 --- a/lockup.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up eog-2.23.6/src/main.c.lockup eog-2.23.6/src/main.c ---- eog-2.23.6/src/main.c.lockup 2008-08-04 19:07:05.000000000 -0400 -+++ eog-2.23.6/src/main.c 2008-08-12 01:30:44.000000000 -0400 -@@ -215,6 +215,8 @@ main (int argc, char **argv) - eog_thumbnail_init (); - eog_plugin_engine_init (); - -+ gdk_threads_enter (); -+ - /* Add application specific icons to search path */ - gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), - EOG_DATA_DIR G_DIR_SEPARATOR_S "icons"); -@@ -224,8 +226,6 @@ main (int argc, char **argv) - - load_files (); - -- gdk_threads_enter (); -- - gtk_main (); - - gdk_threads_leave (); diff --git a/sources b/sources index 05acd8b..8883b7a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -76f526afdfdad9fc3fc7ed52c33da044 eog-3.1.1.tar.bz2 +de71b747caba6718b29675f9689423ba eog-3.1.2.tar.xz