[nautilus-sound-converter] Backport patch to add support for mp2 mime types. (#735017)

Brian Pepple bpepple at fedoraproject.org
Thu Sep 8 18:50:47 UTC 2011


commit 2d0783671d6b8ce07eb4430aebac340e370b1803
Author: Brian Pepple <bpepple at fedoraproject.org>
Date:   Thu Sep 8 14:52:34 2011 -0400

    Backport patch to add support for mp2 mime types. (#735017)

 mp2-mime-types.patch          |   26 ++++++++++++++++++++++++++
 nautilus-sound-converter.spec |    7 ++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/mp2-mime-types.patch b/mp2-mime-types.patch
new file mode 100644
index 0000000..11f723d
--- /dev/null
+++ b/mp2-mime-types.patch
@@ -0,0 +1,26 @@
+From c1d87a9d6956eafa7b0674e40bad01d5dbab228f Mon Sep 17 00:00:00 2001
+From: Brian Pepple <bpepple at fedoraproject.org>
+Date: Thu, 1 Sep 2011 17:48:33 -0400
+Subject: [PATCH 1/4] Add support for 'audio/mp2' mime types
+
+diff --git a/src/nsc-extension.c b/src/nsc-extension.c
+index d13f2d0..56dd022 100644
+--- a/src/nsc-extension.c
++++ b/src/nsc-extension.c
+@@ -76,10 +76,12 @@ file_is_sound (NautilusFileInfo *file_info)
+ 		if (nautilus_file_info_is_mime_type (file_info, mime_types[i]))
+ 			return TRUE;
+ 
+-	/* Check for mp3 support */
++	/* Check for mp3 & mp2 support */
+ 	if (nsc_gstreamer_supports_mp3 (&error)) {
+ 		if (nautilus_file_info_is_mime_type (file_info, "audio/mpeg"))
+ 			return TRUE;
++		else if (nautilus_file_info_is_mime_type (file_info, "audio/mp2"))
++			return TRUE;
+ 	} else {
+ 		g_error_free (error);
+ 		error = NULL;
+-- 
+1.7.6
+
diff --git a/nautilus-sound-converter.spec b/nautilus-sound-converter.spec
index c04186d..cbabd4a 100644
--- a/nautilus-sound-converter.spec
+++ b/nautilus-sound-converter.spec
@@ -1,12 +1,13 @@
 Name:           nautilus-sound-converter
 Version:        3.0.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Nautilus extension to convert audio files
 
 Group:          User Interface/Desktops
 License:        GPLv2+
 URL:            http://projects.gnome.org/nautilus-sound-converter/
 Source0:        http://%{name}.googlecode.com/files/%{name}-%{version}.tar.xz
+Patch0:		mp2-mime-types.patch
 
 BuildRequires:  nautilus-devel >= 2.12.0
 BuildRequires:  glib2-devel >= 2.16.0
@@ -34,6 +35,7 @@ format you wish to convert the selected files to.
 
 %prep
 %setup -q
+%patch0 -p1 -b .mime
 
 
 %build
@@ -70,6 +72,9 @@ find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
 
 
 %changelog
+* Thu Sep  8 2011 Brian Pepple <bpepple at fedoraproject.org> - 3.0.1-2
+- Backport patch to add support for mp2 mime types. (#735017)
+
 * Mon May 30 2011 Brian Pepple <bpepple at fedoraproject.org> - 3.0.1-1
 - Update to 3.0.1.
 - Drop text patch. Fixed upstream.


More information about the scm-commits mailing list