public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Thomas Janssen <thomasj@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/amarok] epel10.2: added patch to fix BPM tags in flac files
Date: Mon, 06 Jul 2026 18:31:15 GMT	[thread overview]
Message-ID: <178336267511.1.2399617256630347787.rpms-amarok-d3cb680b563b@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-07-06 18:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178336267511.1.2399617256630347787.rpms-amarok-d3cb680b563b@fedoraproject.org \
    --to=thomasj@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox