public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amarok] epel10: patch to work with libgpod 0.4.2
@ 2026-07-06 18:03 Aurelien Bompard
  0 siblings, 0 replies; only message in thread
From: Aurelien Bompard @ 2026-07-06 18:03 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/amarok
Branch : epel10
Commit : 41209cd8bbd2e75e007803df2d8b791771f77aeb
Author : Aurelien Bompard <abompard@fedoraproject.org>
Date   : 2007-01-25T19:12:30+00:00
Stats  : +53/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/amarok/c/41209cd8bbd2e75e007803df2d8b791771f77aeb?branch=epel10

Log:
patch to work with libgpod 0.4.2

---
diff --git a/amarok-1.4.4-libgpod-0.4.2.patch b/amarok-1.4.4-libgpod-0.4.2.patch
new file mode 100644
index 0000000..f57f075
--- /dev/null
+++ b/amarok-1.4.4-libgpod-0.4.2.patch
@@ -0,0 +1,47 @@
+--- amarok-1.4.4/amarok/src/mediadevice/ipod/ipodmediadevice.cpp.mediatype	2006-10-26 16:40:20.000000000 -0400
++++ amarok-1.4.4/amarok/src/mediadevice/ipod/ipodmediadevice.cpp	2006-12-14 16:22:41.000000000 -0500
+@@ -302,7 +302,7 @@
+     track->genre = g_strdup( metaBundle.genre()->utf8() );
+ 
+ 
+-    track->unk208 = 0x01; // for audio
++    track->mediatype = 0x01; // for audio
+     if(type=="wav")
+     {
+         track->filetype = g_strdup( "wav" );
+@@ -323,7 +323,7 @@
+ #else
+         track->flag3 |= 0x01; // remember current position in track
+ #endif
+-        track->unk208 = 0x08; // for audiobooks
++        track->mediatype = 0x08; // for audiobooks
+     }
+     else if(type=="m4v" || type=="mp4v" || type=="mov" || type=="mpg" || type=="mp4")
+     {
+@@ -331,7 +331,7 @@
+ #ifdef HAVE_ITDB_SKIP_SHUFFLE_FLAG
+         track->movie_flag = 0x01; // for videos
+ #endif
+-        track->unk208 = 0x02; // for videos
++        track->mediatype = 0x02; // for videos
+     }
+     else if(type=="aa")
+     {
+@@ -341,7 +341,7 @@
+ #else
+         track->flag3 |= 0x01; // remember current position in track
+ #endif
+-        track->unk208 = 0x08; // for audiobooks
++        track->mediatype = 0x08; // for audiobooks
+ 
+         TagLib::Audible::File f( QFile::encodeName( propertiesBundle.url().path() ) );
+         TagLib::Audible::Tag *t = f.getAudibleTag();
+@@ -384,7 +384,7 @@
+ #ifdef HAVE_ITDB_MARK_UNPLAYED
+         track->mark_unplayed = podcastInfo->listened ? 0x01 : 0x02;
+ #endif
+-        track->unk208 = track->unk208==0x02 ? 0x06 : 0x04; // video or audio podcast
++        track->mediatype = track->mediatype==0x02 ? 0x06 : 0x04; // video or audio podcast
+         track->flag4 = 0x01; // also show description on iPod
+         QString plaindesc = podcastInfo->description;
+         plaindesc.replace( QRegExp("<[^>]*>"), "" );

diff --git a/amarok.spec b/amarok.spec
index 82f4a17..09bc3ea 100644
--- a/amarok.spec
+++ b/amarok.spec
@@ -4,7 +4,7 @@
 Name:       amarok
 Summary:    Media player for KDE
 Version:    1.4.4
-Release:    6%{?dist}
+Release:    7%{?dist}
 
 Group: 	    Applications/Multimedia
 License:    GPL
@@ -12,6 +12,7 @@ Url:        http://amarok.kde.org
 # http://download.kde.org/download.php?url=stable/amarok/1.4.3/src
 Source0:    http://mirrors.isc.org/pub/kde/stable/amarok/%{version}/src/amarok-%{version}.tar.bz2
 Patch0:     amarok-1.4.4-lastfm+xine-lib-1.1.3.patch
+Patch1:     amarok-1.4.4-libgpod-0.4.2.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  kdemultimedia-devel >= 6:3.2
@@ -82,6 +83,7 @@ use any of xmms' visualisation plugins with Amarok.
 %prep
 %setup -q
 %patch0 -p1 -b .lastfm
+%patch1 -p1 -b .libgpod
 
 
 
@@ -240,6 +242,9 @@ rm -fr $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Jan 25 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.4.4-7
+- add patch to enable building with libgpod >= 0.4.2, thanks go to Todd Zullinger
+
 * Wed Jan 17 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.4.4-6
 - rebuild for new libgpod
 

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

only message in thread, other threads:[~2026-07-06 18:03 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:03 [rpms/amarok] epel10: patch to work with libgpod 0.4.2 Aurelien Bompard

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