[amarok/f13/master] added patch to fix BPM tags in flac files
thomasj
thomasj at fedoraproject.org
Mon Sep 20 14:42:15 UTC 2010
commit 613453f9e08be394f0235ca9984cf041de1ed3ba
Author: Thomas Janssen <thomasj at fedoraproject.org>
Date: Mon Sep 20 16:42:10 2010 +0200
added patch to fix BPM tags in flac files
amarok-2.3.2_bpm_tags-in-flac_fix.patch | 11 +++++++++++
amarok.spec | 8 ++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/amarok-2.3.2_bpm_tags-in-flac_fix.patch b/amarok-2.3.2_bpm_tags-in-flac_fix.patch
new file mode 100644
index 0000000..4de5ede
--- /dev/null
+++ b/amarok-2.3.2_bpm_tags-in-flac_fix.patch
@@ -0,0 +1,11 @@
+--- utilities/collectionscanner/CollectionScanner.cpp 2010-09-15 23:24:13.000000000 +0200
++++ utilities/collectionscanner/CollectionScanner.cpp.old 2010-09-20 15:43:55.000000000 +0200
+@@ -701,7 +701,7 @@
+ attributes["composer"] = TStringToQString( file->xiphComment()->fieldListMap()["COMPOSER"].front() ).trimmed();
+
+ if ( !file->xiphComment()->fieldListMap()[ "BPM" ].isEmpty() )
+- attributes["bpm"] = TStringToQString( file->xiphComment()->fieldListMap()["BPM"].front() ).trimmed().toFloat();
++ attributes["bpm"] = TStringToQString( file->xiphComment()->fieldListMap()["BPM"].front() ).trimmed();
+
+ if ( !file->xiphComment()->fieldListMap()[ "DISCNUMBER" ].isEmpty() )
+ disc = TStringToQString( file->xiphComment()->fieldListMap()["DISCNUMBER"].front() ).trimmed();
diff --git a/amarok.spec b/amarok.spec
index 5425362..18edd2a 100644
--- a/amarok.spec
+++ b/amarok.spec
@@ -6,7 +6,7 @@
Name: amarok
Summary: Media player
Version: 2.3.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Applications/Multimedia
License: GPLv2+
@@ -17,6 +17,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch50: amarok-2.2.1.90-qtscript_not_required.patch
## upstream patches
+Patch10: amarok-2.3.2_bpm_tags-in-flac_fix.patch
BuildRequires: curl-devel
BuildRequires: desktop-file-utils
@@ -85,7 +86,7 @@ Obsoletes: amarok-utilities < 2.0.96
%prep
%setup -q
-
+%patch10 -p0
%patch50 -p1 -b .qtscript_not_required
@@ -182,6 +183,9 @@ fi
%changelog
+* Mon Sep 20 2010 Thomas Janssen <thomasj at fedoraproject.org> 2.3.2-2
+- added patch to fix BPM tags in flac
+
* Thu Sep 16 2010 Rex Dieter <rdieter at fedoraproject.org> - 2.3.2-1
- amarok-2.3.2
More information about the scm-commits
mailing list