[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/amarok/FC-6 amarok-1.4.4-lastfm+xine-lib-1.1.3.patch, NONE, 1.1 amarok.spec, 1.66, 1.67



Author: abompard

Update of /cvs/extras/rpms/amarok/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8031/FC-6

Modified Files:
	amarok.spec 
Added Files:
	amarok-1.4.4-lastfm+xine-lib-1.1.3.patch 
Log Message:
add patch to make lastfm work with xine-lib 1.1.3 (sent by upstream)

amarok-1.4.4-lastfm+xine-lib-1.1.3.patch:

--- NEW FILE amarok-1.4.4-lastfm+xine-lib-1.1.3.patch ---
Index: amarok-1.4.4/amark/src/amarok_proxy.rb
===================================================================
--- amarok-1.4.4/amarok/src/amarok_proxy.rb	(revision 609364)
+++ amarok-1.4.4/amarok/src/amarok_proxy.rb	(revision 609365)
@@ -117,6 +117,11 @@
   def cp_to_empty_outward( income, output )
     myputs "cp_to_empty_outward( income => #{income.inspect}, output => #{output.inspect}"
     income.each_line do |data|
+      if data =~ /User-Agent: xine\/([0-9.]+)/
+        version = $1.split(".").collect { |v| v.to_i }
+        myputs("Found xine user agent version #{version.join(".")}")
+        @xineworkaround = ( version[0] <= 1 && version[1] <= 1 && version[2] <= 2 )
+      end
       myputs( data )
       data.chomp!
       safe_write( output, data )
@@ -142,7 +147,7 @@
 
   def cp_all_inward( income, output )
     myputs( "cp_all( income => #{income.inspect}, output => #{output.inspect}" )
-    if self.is_a?( LastFM ) and @engine == 'xine-engine'
+    if self.is_a?( LastFM ) and @xineworkaround
       myputs( "Using buffer fill workaround." )
       filler = Array.new( 4096, 0 )
       safe_write( output, filler ) # HACK: Fill xine's buffer so that xine_open() won't block


Index: amarok.spec
===================================================================
RCS file: /cvs/extras/rpms/amarok/FC-6/amarok.spec,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- amarok.spec	6 Dec 2006 18:57:19 -0000	1.66
+++ amarok.spec	19 Dec 2006 07:35:48 -0000	1.67
@@ -4,13 +4,14 @@
 Name:       amarok
 Summary:    Media player for KDE
 Version:    1.4.4
-Release:    2%{?dist}
+Release:    3%{?dist}
 
 Group: 	    Applications/Multimedia
 License:    GPL
 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
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  kdemultimedia-devel >= 6:3.2
@@ -80,6 +81,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .lastfm
 
 
 
@@ -238,6 +240,12 @@
 
 
 %changelog
+* Tue Dec 19 2006 Aurelien Bompard <abompard fedoraproject org> 1.4.4-3
+- add patch to make lastfm work with xine-lib 1.1.3 (sent by upstream)
+
+* Sat Dec 09 2006 Aurelien Bompard <abompard fedoraproject org> 1.4.4-3
+- rebuild
+
 * Wed Dec 06 2006 Aurelien Bompard <abompard fedoraproject org> 1.4.4-2
 - rebuild
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]