Hello community,

here is the log from the commit of package thunar-plugin-media-tags for 
openSUSE:Factory
checked in at Fri Mar 18 09:12:46 CET 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 
/mounts/work_src_done/STABLE/thunar-plugin-media-tags/thunar-plugin-media-tags.changes
      2011-03-10 17:01:14.000000000 +0100
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Thu Mar 10 14:23:41 UTC 2011 - [email protected]
+
+- new package (split off from thunar-plugins)
+

calling whatdependson for head-i586


New:
----
  thunar-media-tags-plugin-0.1.2.tar.bz2
  thunar-plugin-media-tags-0.1.2-check-valid-audio.patch
  thunar-plugin-media-tags-0.1.2-port-to-exo-1.patch
  thunar-plugin-media-tags-0.1.2-port-to-thunarx-2.patch
  thunar-plugin-media-tags.changes
  thunar-plugin-media-tags.spec

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

Other differences:
------------------
++++++ thunar-plugin-media-tags.spec ++++++
#
# spec file for package thunar-plugin-media-tags
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#


%define thunar_version 1.2.0
%define plugin_name thunar-media-tags-plugin

Name:           thunar-plugin-media-tags
Group:          System/GUI/XFCE
Url:            http://thunar.xfce.org/plugins.html#thunar-media-tags-plugin
License:        GPLv2+
Version:        0.1.2
Release:        1
Source0:        %{plugin_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM thunar-plugin-media-tags-0.1.2-port-to-thunarx-2.patch 
bxo#6295 [email protected] -- Port of thunar-media-tags-plugin to thunarx-2 
from upstream bugzilla.
Patch0:         thunar-plugin-media-tags-0.1.2-port-to-thunarx-2.patch
# PATCH-FIX-UPSTREAM thunar-plugin-media-tags-0.1.2-port-to-exo-1.patch 
bxo#6295 [email protected] -- Port of thunar-media-tags-plugin to exo-1 from 
upstream bugzilla.
Patch1:         thunar-plugin-media-tags-0.1.2-port-to-exo-1.patch
# PATCH-FIX-UPSTREAM bxo#6297 
thunar-plugin-media-tags-0.1.2-check-valid-audio.patch [email protected] -- Fix 
preventing crash by checking for valid audio data backported from upstream git.
Patch2:         thunar-plugin-media-tags-0.1.2-check-valid-audio.patch
Summary:        Thunar Plugin for Editing Media File Metadata and Renaming 
Based on Metadata
BuildRequires:  intltool
BuildRequires:  thunar-devel >= %{thunar_version}
BuildRequires:  pkgconfig(thunarx-2)
BuildRequires:  xfce4-dev-tools
BuildRequires:  taglib-devel
Requires:       xarchiver
Requires:       thunar >= %{thunar_version}
Provides:       %{plugin_name} = %{version}
Obsoletes:      %{plugin_name} < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Thunar Media Tags Plugin enables editing media file metatdata from within
the Thunar file properties dialog and allows for bulk renaming based on
metadata.


%prep
%setup -q -n %{plugin_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
xdt-autogen
%configure --disable-static
make %{?_smp_mflags} V=1

%install
%make_install
# remove unsupported locales
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{plugin_name}
rm -rf %{buildroot}%{_libdir}/thunarx-2/thunar-media-tags-plugin.la

%clean
rm -rf "%{buildroot}"

%files -f %{plugin_name}.lang
%defattr(-,root,root)
%{_libdir}/thunarx-2/thunar-media-tags-plugin.so

%changelog
++++++ thunar-plugin-media-tags-0.1.2-check-valid-audio.patch ++++++
diff -urNp 
thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/media-tags-provider.c 
thunar-media-tags-plugin-0.1.2/thunar-plugin/media-tags-provider.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/media-tags-provider.c     
2006-08-02 08:55:57.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/media-tags-provider.c  
2011-01-23 13:17:33.000000000 +0100
@@ -163,10 +163,11 @@ media_tags_get_audio_file_supported (Thu
 
   if (G_LIKELY (taglib_file != NULL))
     {
+      /* Check that the file contains valid audio info */
+      supported = taglib_file_is_valid (taglib_file);
+
       /* Free the taglib file */
       taglib_file_free (taglib_file);
-
-      supported = TRUE;
     }
 
   g_free (filename);
++++++ thunar-plugin-media-tags-0.1.2-port-to-exo-1.patch ++++++
diff -urp thunar-media-tags-plugin-0.1.2.orig/configure.in 
thunar-media-tags-plugin-0.1.2/configure.in
--- thunar-media-tags-plugin-0.1.2.orig/configure.in    2011-01-18 
01:24:42.000000000 +0100
+++ thunar-media-tags-plugin-0.1.2/configure.in 2011-01-18 01:25:24.000000000 
+0100
@@ -64,7 +64,8 @@ XDT_I18N([ca cs de el eu fr gl hu ja nl
 dnl ***********************************
 dnl *** Check for required packages ***
 dnl ***********************************
-XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.1.3])
+XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.12.0])
+XDT_CHECK_PACKAGE([EXO], [exo-1], [0.5.0])
 XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.0.1])
 XDT_CHECK_PACKAGE([TAGLIB], [taglib], [1.4])
 
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c 
thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c 
2011-01-18 01:24:42.000000000 +0100
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c      
2011-01-18 01:25:24.000000000 +0100
@@ -89,7 +89,6 @@ struct _AudioTagsPage
   ThunarxPropertyPage __parent__;
 
   /* Widgets */
-  GtkTooltips     *tooltips;
   GtkWidget       *table;
   GtkWidget       *save_button;
   GtkWidget       *info_button;
@@ -281,10 +280,6 @@ audio_tags_page_init (AudioTagsPage *pag
 
   gtk_container_set_border_width (GTK_CONTAINER (page), 8);
 
-  /* Allocate the shared tooltips */
-  page->tooltips = gtk_tooltips_new ();
-  exo_gtk_object_ref_sink (GTK_OBJECT (page->tooltips));
-
   /* Main container */
   vbox = gtk_vbox_new (FALSE, 8);
   gtk_container_add (GTK_CONTAINER (page), vbox);
@@ -316,7 +311,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Track spin button */
   spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 1, 0);
   exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), 
"track");
-  gtk_tooltips_set_tip (page->tooltips, spin, _("Enter the track number 
here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the track number 
here."));
   gtk_container_add (GTK_CONTAINER (alignment), spin);
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin);
   gtk_widget_show (spin);
@@ -339,7 +334,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Year spin button */
   spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 1, 0);
   exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), 
"year");
-  gtk_tooltips_set_tip (page->tooltips, spin, _("Enter the release year 
here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the release year 
here."));
   gtk_container_add (GTK_CONTAINER (alignment), spin);
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin);
   gtk_widget_show (spin);
@@ -354,7 +349,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Artist entry */
   entry = gtk_entry_new ();
   exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "artist");
-  gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the name of the artist 
or author of this file here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the name of the 
artist or author of this file here."));
   gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 1, 2, GTK_EXPAND | 
GTK_FILL, 0, 0, 0);
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
   gtk_widget_show (entry);
@@ -369,7 +364,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Title entry */
   entry = gtk_entry_new ();
   exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "title");
-  gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the song title 
here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the song title 
here."));
   gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 2, 3, GTK_EXPAND | 
GTK_FILL, 0, 0, 0);
   gtk_widget_show (entry);
 
@@ -383,7 +378,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Album entry */
   entry = gtk_entry_new ();
   exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "album");
-  gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the album/record title 
here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the album/record 
title here."));
   gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 3, 4, GTK_EXPAND | 
GTK_FILL, 0, 0, 0);
   gtk_widget_show (entry);
   
@@ -397,7 +392,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Comment entry */
   entry = gtk_entry_new ();
   exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), 
"comment");
-  gtk_tooltips_set_tip (page->tooltips, entry, _("Enter your comments here."), 
NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter your comments 
here."));
   gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 4, 5, GTK_EXPAND | 
GTK_FILL, 0, 0, 0);
   gtk_widget_show (entry);
 
@@ -411,7 +406,7 @@ audio_tags_page_init (AudioTagsPage *pag
   /* Genre combo box */
   combo = gtk_combo_box_entry_new_text ();
   exo_mutual_binding_new (G_OBJECT (GTK_BIN (combo)->child), "text", G_OBJECT 
(page), "genre");
-  gtk_tooltips_set_tip (page->tooltips, combo, _("Select or enter the genre of 
this song here."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (combo), _("Select or enter the 
genre of this song here."));
   gtk_table_attach (GTK_TABLE (page->table), combo, 1, 4, 5, 6, GTK_FILL, 0, 
0, 0);
   gtk_widget_show (combo);
 
@@ -511,9 +506,6 @@ audio_tags_page_finalize (GObject *objec
   if (G_LIKELY (page->genre != NULL))
     g_free (page->genre);
 
-  /* Release the tooltips */
-  g_object_unref (G_OBJECT (page->tooltips));
-
   (*G_OBJECT_CLASS (audio_tags_page_parent_class)->finalize) (object);
 }
 
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/tag-renamer.c 
thunar-media-tags-plugin-0.1.2/thunar-plugin/tag-renamer.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/tag-renamer.c     
2006-06-17 21:10:05.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/tag-renamer.c  2011-01-18 
01:25:24.000000000 +0100
@@ -116,9 +116,6 @@ struct _TagRenamer
 {
   ThunarxRenamer __parent__;
 
-  /* Widgets */
-  GtkTooltips     *tooltips;
-
   /* Properties */
   TagRenamerFormat format;
   gboolean         replace_spaces;
@@ -209,10 +206,6 @@ tag_renamer_init (TagRenamer *tag_rename
   GEnumClass     *klass;
   gint            n;
 
-  /* Allocate shared tooltips */
-  tag_renamer->tooltips = gtk_tooltips_new ();
-  exo_gtk_object_ref_sink (GTK_OBJECT (tag_renamer->tooltips));
-
   table = gtk_table_new (2, 3, FALSE);
   gtk_table_set_row_spacings (GTK_TABLE (table), 6);
   gtk_table_set_col_spacings (GTK_TABLE (table), 12);
@@ -245,14 +238,14 @@ tag_renamer_init (TagRenamer *tag_rename
 
   button = gtk_check_button_new_with_mnemonic (_("_Underscores"));
   exo_mutual_binding_new (G_OBJECT (button), "active", G_OBJECT (tag_renamer), 
"replace-spaces");
-  gtk_tooltips_set_tip (tag_renamer->tooltips, button, _("Activating this 
option will replace all spaces in the target filename "
-        "with underscores."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (button), _("Activating this option 
will replace all spaces in the target filename "
+        "with underscores."));
   gtk_table_attach (GTK_TABLE (table), button, 2, 3, 0, 1, GTK_FILL, 0, 0, 0);
   gtk_widget_show (button);
 
   button = gtk_check_button_new_with_mnemonic (_("_Lowercase"));
   exo_mutual_binding_new (G_OBJECT (button), "active", G_OBJECT (tag_renamer), 
"lowercase");
-  gtk_tooltips_set_tip (tag_renamer->tooltips, button, _("If you activate 
this, the resulting filename will only contain lowercase letters."), NULL);
+  gtk_widget_set_tooltip_text (GTK_WIDGET (button), _("If you activate this, 
the resulting filename will only contain lowercase letters."));
   gtk_table_attach (GTK_TABLE (table), button, 2, 3, 1, 2, GTK_FILL, 0, 0, 0);
   gtk_widget_show (button);
 
@@ -272,9 +265,6 @@ tag_renamer_finalize (GObject *object)
 {
   TagRenamer *tag_renamer = TAG_RENAMER (object);
 
-  /* release the tooltips */
-  g_object_unref (G_OBJECT (tag_renamer->tooltips));
-
   /* Free strings */
   g_free (tag_renamer->artist);
   g_free (tag_renamer->title);
++++++ thunar-plugin-media-tags-0.1.2-port-to-thunarx-2.patch ++++++
diff -urp thunar-media-tags-plugin-0.1.2.orig/configure.in 
thunar-media-tags-plugin-0.1.2/configure.in
--- thunar-media-tags-plugin-0.1.2.orig/configure.in    2007-01-20 
16:29:39.000000000 +0100
+++ thunar-media-tags-plugin-0.1.2/configure.in 2011-01-18 01:24:42.000000000 
+0100
@@ -65,8 +65,7 @@ dnl ***********************************
 dnl *** Check for required packages ***
 dnl ***********************************
 XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.1.3])
-XDT_CHECK_PACKAGE([THUNARX], [thunarx-1], [0.2.3svn-r20526])
-XDT_CHECK_PACKAGE([THUNARVFS], [thunar-vfs-1], [0.2.3svn-r20526])
+XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.0.1])
 XDT_CHECK_PACKAGE([TAGLIB], [taglib], [1.4])
 
 dnl ***********************************
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c 
thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/audio-tags-page.c 
2006-09-11 11:40:56.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/audio-tags-page.c      
2011-01-18 01:24:42.000000000 +0100
@@ -32,7 +32,6 @@
 #include <taglib/tag_c.h>
 
 #include <exo/exo.h>
-#include <thunar-vfs/thunar-vfs.h>
 
 #include <audio-tags-page.h>
 
@@ -977,8 +976,8 @@ audio_tags_page_info_activate (GtkAction
 
   gchar         *mimetype;
 
-  ThunarVfsInfo *vfs_info;
-  gchar         *filename;
+  GFileInfo     *fileinfo;
+  const char    *filename;
   gchar         *filesize;
   
   g_return_val_if_fail (page != NULL || IS_AUDIO_TAGS_PAGE (page), FALSE);
@@ -1007,9 +1006,9 @@ audio_tags_page_info_activate (GtkAction
   
   /* Additional information */
   mimetype = thunarx_file_info_get_mime_type (page->file);
-  vfs_info = thunarx_file_info_get_vfs_info (page->file);
-  filename = vfs_info->display_name;
-  filesize = thunar_vfs_humanize_size (vfs_info->size, NULL, 0);
+  fileinfo = thunarx_file_info_get_file_info (page->file);
+  filename = g_file_info_get_display_name (fileinfo);
+  filesize = g_format_size_for_display (g_file_info_get_size (fileinfo));
 
   /* Create layout table */
   table = gtk_table_new (7, 2, FALSE);
@@ -1121,7 +1120,7 @@ audio_tags_page_info_activate (GtkAction
   g_free (filesize);
   g_free (mimetype);
 
-  thunar_vfs_info_unref (vfs_info);
+  g_object_unref (fileinfo);
   
   return TRUE;
 }
diff -urp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/Makefile.am 
thunar-media-tags-plugin-0.1.2/thunar-plugin/Makefile.am
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/Makefile.am       
2006-06-08 15:04:45.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/Makefile.am    2011-01-18 
01:24:42.000000000 +0100
@@ -8,7 +8,7 @@ INCLUDES =                                                      
        \
        -DPACKAGE_LOCALE_DIR=\"$(localedir)\"                           \
        $(PLATFORM_CPPFLAGS)
 
-extensionsdir = $(libdir)/thunarx-1
+extensionsdir = $(libdir)/thunarx-2
 extensions_LTLIBRARIES =                                               \
        thunar-media-tags-plugin.la
 
@@ -25,7 +25,6 @@ thunar_media_tags_plugin_la_CFLAGS =
        $(EXO_CFLAGS)                                                   \
        $(PLATFORM_CFLAGS)                                              \
        $(THUNARX_CFLAGS)                                               \
-       $(THUNARVFS_CFLAGS)                                             \
        $(TAGLIB_CFLAGS)                                                \
        $(TAGLIBC_CFLAGS)
 
@@ -34,7 +33,6 @@ thunar_media_tags_plugin_la_LDFLAGS =
        -export-dynamic                                                 \
        -module                                                         \
        $(THUNARX_LIBS)                                                 \
-       $(THUNARVFS_LIBS)                                               \
        $(TAGLIB_LIBS)                                                  \
        $(TAGLIBC_LIBS)                                                 \
        $(PLATFORM_LDFLAGS)

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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to