public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amarok] epel10.2: added patch to fix BPM tags in flac files
@ 2026-07-06 18:31 Thomas Janssen
  0 siblings, 0 replies; only message in thread
From: Thomas Janssen @ 2026-07-06 18:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/amarok
Branch : epel10.2
Commit : d3cb680b563b7c465f83f48010fe23c79627ee50
Author : Thomas Janssen <thomasj@fedoraproject.org>
Date   : 2010-09-20T15:03:49+02:00
Stats  : +19/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/amarok/c/d3cb680b563b7c465f83f48010fe23c79627ee50?branch=epel10.2

Log:
added patch to fix BPM tags in flac files

---
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..6d6d717
--- /dev/null
+++ b/amarok-2.3.2_bpm_tags-in-flac_fix.patch
@@ -0,0 +1,13 @@
+diff --git a/utilities/collectionscanner/CollectionScanner.cpp b/utilities/collectionscanner/CollectionScanner.cpp
+index a9d6755..0a23a53 100644
+--- a/utilities/collectionscanner/CollectionScanner.cpp
++++ b/utilities/collectionscanner/CollectionScanner.cpp
+@@ -701,7 +701,7 @@ CollectionScanner::readTags( const QString &path, TagLib::AudioProperties::ReadS
+                     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();
\ No newline at end of file

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@fedoraproject.org> 2.3.2-2
+- added patch to fix BPM tags in flac
+
 * Thu Sep 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.3.2-1
 - amarok-2.3.2
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-06 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 18:31 [rpms/amarok] epel10.2: added patch to fix BPM tags in flac files Thomas Janssen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox