--- quodlibet-plugins-20080601.orig/debian/compat +++ quodlibet-plugins-20080601/debian/compat @@ -0,0 +1 @@ +4 --- quodlibet-plugins-20080601.orig/debian/control +++ quodlibet-plugins-20080601/debian/control @@ -0,0 +1,28 @@ +Source: quodlibet-plugins +Section: sound +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Christine Spang +Build-Depends: debhelper (>= 4.0), python, quilt +Priority: extra +Standards-Version: 3.7.3 +XS-Python-Version: current + +Package: quodlibet-plugins +Architecture: all +Depends: exfalso (>= 0.21), ${python:Depends} +Suggests: notification-daemon, python-dbus, k3b, python-gnome2, python-cddb, python-musicbrainz, lastfmsubmitd +XB-Python-Version: ${python:Versions} +Description: various contributed plugins for Quod Libet + This package contains a number of contributed plugins for the Quod + Libet media player, each extending the player's functionality in + different ways. + . + Notable plugins in this package include: + . + - Animated On-Screen Display + - MusicBrainz and CDDB/FreeDB tag lookups + - Alarm clock and lullaby, start and stop playing music at specified times + - Export a playlist as HTML + - Export a Jabber JEP-118 file + - Burn CDs with K3b + - AudioScrobbler/Last.fm submission (http://www.last.fm) --- quodlibet-plugins-20080601.orig/debian/quodlibet-plugins.preinst +++ quodlibet-plugins-20080601/debian/quodlibet-plugins.preinst @@ -0,0 +1,20 @@ +#!/bin/sh +set -e + +# quodlibet plugins directory +QL_PLD=/usr/share/quodlibet/plugins + +# we want to provide a clean upgrade path from previous versions +PYC_FILES=`find ${QL_PLD} -name "*.pyc"` +# don't touch .pyc files that are created by the quodlibet package +PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/editing.pyc,,` +PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/events.pyc,,` +PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/__init__.pyc,,` +PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/songsmenu.pyc,,` + +for i in ${PYC_FILES} +do + rm $i +done + +#DEBHELPER# --- quodlibet-plugins-20080601.orig/debian/README.Debian +++ quodlibet-plugins-20080601/debian/README.Debian @@ -0,0 +1,21 @@ +With Quod Libet 0.21, enabling the tray icon plugin will result in +a double tray icon. This is a known issue, and won't be a problem when +Quod Libet >= 0.22 hits the archive. Since it's necessary for 0.22 and +above, though, it's going in with this update rather than waiting for +0.22 and then uploading. + + -- Christine Spang Thu, 13 Jul 2005 22:20:15 -400 + +How to use Quod Libet plugins +----------------------------- + +Quod Libet plugins are all installed in /usr/share/quodlibet/plugins, so +that they are all picked up by Quod Libet when you start it. You can also put +additional plugins into the ~/.quodlibet/plugins directory. + +Plugins are disabled by default. You can enable and configure them by going +to Music > Plugins once Quod Libet has been started. + +Enjoy! + + -- Joshua Kwan Tue, 09 Aug 2005 20:42:16 -0700 --- quodlibet-plugins-20080601.orig/debian/rules +++ quodlibet-plugins-20080601/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +# debian/rules for quodlibet-plugins +# It's obscenely simple. I feel bad. + +include /usr/share/quilt/quilt.make + +D := debian/quodlibet-plugins +U := usr/share/quodlibet/plugins +P := $(D)/$(U) +EXCLUDE := songsmenu/replaygain.py + +build binary-arch install: +# Ye olde no-op. + +binary: patch binary-indep + +binary-indep: + dh_clean -k + dh_installdirs $(U) + for plugin in $(filter-out $(EXCLUDE), $(wildcard */*.py *.py)); do \ + install -D -m 644 -o 0 -g 0 $$plugin $(P)/$$plugin; \ + done + dh_installchangelogs + dh_installdocs + dh_installdeb + dh_compress + dh_fixperms + dh_gencontrol + dh_md5sums + dh_builddeb + +clean: unpatch + dh_clean --- quodlibet-plugins-20080601.orig/debian/changelog +++ quodlibet-plugins-20080601/debian/changelog @@ -0,0 +1,201 @@ +quodlibet-plugins (20080601-1ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable, remaining Ubuntu changes: + - debian/patches/03_universal_newline: don't specify universal + newline mode ('U') when opening files for writing. + * New snapshot fixes LP: #275978. + + -- Luca Falavigna Fri, 16 Jan 2009 00:06:07 +0100 + +quodlibet-plugins (20080601-1) unstable; urgency=low + + * New upstream svn snapshot. + - albumart.py updated to the new amazon api and a few more sources + added. (Closes: #482157) + * Apply patch by Andreas Bombe to set animosd window types to + notification. (Closes: #474731) + + -- Christine Spang Mon, 02 Jun 2008 04:12:33 +0000 + +quodlibet-plugins (20080329-1) unstable; urgency=low + + * New upstream svn snapshot. + * Work around the gnome-settings-daemon dbus interface changing + between gnome 2.20 and 2.22. Thanks to Sumedha Widyadharma and Dafydd + Harries. (Closes: #473051) + + -- Christine Spang Sat, 29 Mar 2008 20:33:20 -0400 + +quodlibet-plugins (20080223-1) unstable; urgency=low + + * The "because ari asked" release. + * New upstream svn snapshot. + * Bump to new Standards-Version; no change. + * Update lastfmsubmit.py to use the new lastfmsubmitd python API. + Thanks to Teemu Ikonen and Ari Pollak. (Closes: #452847) + + -- Christine Spang Sat, 23 Feb 2008 16:27:57 -0500 + +quodlibet-plugins (20070625-1ubuntu2) hardy; urgency=low + + * events/dbusmmkey.py: adjusted for changed g-s-d dbus interface + (LP: #188311) + + -- Kjell Braden Fri, 08 Feb 2008 09:40:17 +0100 + +quodlibet-plugins (20070625-1ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - Don't specify universal newline mode ('U') when opening files for writing. + - Modify Maintainer value to match Debian-Maintainer-Field Spec + * Dropping 01_gajim-attribute-error.dpatch previously added, removing + everything dpatch related. This fix has been integrated in the new upstream + svn snapshot packaged in debian. See debian bug #429063. + + -- Andrea Veri Fri, 29 Jun 2007 21:33:33 +0200 + +quodlibet-plugins (20070625-1) unstable; urgency=low + + * New upstream svn snapshot. + - Gajim plugin bugfixes. (Closes: #429063) + + -- Christine Spang Mon, 25 Jun 2007 17:22:24 -0400 + +quodlibet-plugins (20070529-1ubuntu2) gutsy; urgency=low + + * Added dpatch to B-D in debian/control + * Added dpatch patch system in debian/rules + * Added 01_gajim-attribute-error.dpatch (Thanks to Kjell Braden) that + fixes some errors while pausing/unpausing and when changing tracks in + gajim. (LP: #120065) + + -- Andrea Veri Fri, 15 Jun 2007 23:45:49 +0200 + +quodlibet-plugins (20070529-1ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - Don't specify universal newline mode ('U') when opening files for writing. + - Modify Maintainer value to match Debian-Maintainer-Field Spec + * Updated XSBC-O-M according to the new maintainer's address + + -- Arthur Loiret Sun, 3 Jun 2007 22:24:50 +0200 + +quodlibet-plugins (20070529-1) unstable; urgency=low + + * New upstream svn snapshot. + - New D-Bus multimedia key plugin. + * Remove dh_python call in debian/rules since it doesn't do anything. + + -- Christine Spang Tue, 29 May 2007 10:21:28 -0400 + +quodlibet-plugins (20070430-1ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - Don't specify universal newline mode ('U') when opening files for writing. + (Closes LP: #87188) + + -- Andrea Veri Mon, 21 May 2007 04:25:06 +0200 + +quodlibet-plugins (20070430-1) unstable; urgency=low + + * New upstream svn snapshot. + - New "clear errors" plugin. + * Change my maintainer email address. + + -- Christine Spang Mon, 30 Apr 2007 12:29:06 -0400 + +quodlibet-plugins (20060823-2) unstable; urgency=low + + * Add python-dbus and notification-daemon to Suggests: (thanks + to Ari Pollak). + + -- Christine Spang Tue, 3 Oct 2006 03:00:58 -0400 + +quodlibet-plugins (20060823-1ubuntu1) feisty; urgency=low + + * Don't specify universal newline mode ('U') when opening files for writing. + (Closes LP: #87188) + * debian/control: Change Maintainer/XSBC-Original-Maintainer field. + + -- Michael Bienia Thu, 15 Mar 2007 17:27:02 +0100 + +quodlibet-plugins (20060823-1) unstable; urgency=low + + * New upstream svn snapshot for quodlibet 0.23. (Closes: #384392) + * Add preinst script that cleans up old .pyc files. The package + no longer uses or creates any .pyc files, so no prerm script is + necessary. (Closes: #361037) + * New automask plugin. + + -- Christine Spang Wed, 23 Aug 2006 18:59:50 -0400 + +quodlibet-plugins (20060713-1) unstable; urgency=low + + * Adopt the package. + * New SVN snapshot. + * Update FSF address in debian/copyright. + * Remove replaygain plugin, it still doesn't work. + * Include a tarball of the upstream source, since, although there + are no real releases, this is not really a debian-specific package. + + -- Christine Spang Fri, 14 Jul 2006 01:23:31 -0400 + +quodlibet-plugins (20060619-0.1) unstable; urgency=low + + * Non-maintainer upload + * Orphan package at maintainer's request. + * New SVN snapshot for Quod Libet 0.21. + * Updated dependencies + * Changed packaging to include every plugin in subfolders (closes: #372718) + + -- Yves-Alexis Perez Mon, 19 Jun 2006 23:32:12 +0200 + +quodlibet-plugins (20060404-0.1) unstable; urgency=low + + * Non-maintainer upload. + * New SVN snapshot for Quod Libet 0.19. + * Depends: exfalso (>= 0.19) + * Remove (currently broken) ReplayGain plugin. + * Clean up long description a bit. + + -- Joe Wreschnig Tue, 4 Apr 2006 15:03:56 -0500 + +quodlibet-plugins (20060128-1) unstable; urgency=low + + * I don't know why I said "include albumart.py now" in the last release, + but it's totally not true. My bad. closes: #345401 + * New upstream Subversion snapshot. + - educate randomalbum.py about QL's one-song mode, closes: #349301 + - let animosd.py actually hide itself automatically, closes: #344467 + + -- Joshua Kwan Sat, 28 Jan 2006 23:07:36 -0800 + +quodlibet-plugins (20051218-1) unstable; urgency=low + + * New upstream Subversion snapshot. + * Use ${depends:Python} to ensure the correct version of Python + is depended upon. closes: #339999 + * Include albumart.py now. + * Depend on quodlibet >= 0.16 for /usr/share/quodlibet/plugins. + + -- Joshua Kwan Sun, 18 Dec 2005 20:22:11 -0800 + +quodlibet-plugins (20050925-1) unstable; urgency=low + + * Add Recommends on python-cddb, python-gnome2, and python-musicbrainz. + closes: #328258 + + -- Joshua Kwan Sun, 25 Sep 2005 23:25:30 -0700 + +quodlibet-plugins (20050827-1) unstable; urgency=low + + * New Subversion checkout. + * Fix description; albumart.py isn't included (yet), closes: #323714 + + -- Joshua Kwan Sat, 27 Aug 2005 15:44:50 -0700 + +quodlibet-plugins (20050810-1) unstable; urgency=low + + * Initial release. + + -- Joshua Kwan Wed, 10 Aug 2005 15:39:30 -0700 --- quodlibet-plugins-20080601.orig/debian/copyright +++ quodlibet-plugins-20080601/debian/copyright @@ -0,0 +1,27 @@ +This Debian package was created by Joshua Kwan +on Tue, 09 Aug 2005 20:23:59 -0700. + +These plugins have been created by various authors in the Quod Libet community. +However, they have all licensed their plugins under the GPLv2, so all authors +are credited here and a single license blurb will follow. + +Copyright (C) 2004-2005 Gustavo J. A. M. Carneiro +Copyright (C) 2005 Joe Wreschnig, Michael Urman, Eduardo Gonzalez, Joshua Kwan, + IƱigo Serna, Ton van den Heuvel + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. --- quodlibet-plugins-20080601.orig/debian/patches/01_dbusmmkey +++ quodlibet-plugins-20080601/debian/patches/01_dbusmmkey @@ -0,0 +1,30 @@ +Index: quodlibet-plugins-20080329/events/dbusmmkey.py +=================================================================== +--- quodlibet-plugins-20080329.orig/events/dbusmmkey.py 2008-03-29 20:48:28.000000000 -0400 ++++ quodlibet-plugins-20080329/events/dbusmmkey.py 2008-03-29 21:07:36.000000000 -0400 +@@ -32,15 +32,21 @@ + def __init__(self): + self.mmkc = MMKeysControl(player) + self.bus = None +- self.bus_object = None ++ self.bus_object_old = None ++ self.bus_object_new = None + + def enabled(self): + if self.bus is None or self.bus_object is None: + self.bus = dbus.Bus(dbus.Bus.TYPE_SESSION) +- self.bus_object = self.bus.get_object( ++ # Work around the gnome-settings-daemon dbus interface ++ # changing between 2.20 and 2.22 by connecting to both ++ # the old and new object. ++ self.bus_object_old = self.bus.get_object( + 'org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon') +- self.bus_object.connect_to_signal( +- "MediaPlayerKeyPressed", self.mmkc.action) ++ self.bus_object_old.connect_to_signal("MediaPlayerKeyPressed", self.mmkc.action) ++ self.bus_object_new = self.bus.get_object( ++ 'org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon/MediaKeys') ++ self.bus_object_new.connect_to_signal("MediaPlayerKeyPressed", self.mmkc.action) + self.mmkc.set_enabled(True) + + def disabled(self): --- quodlibet-plugins-20080601.orig/debian/patches/00_lastfmsubmit +++ quodlibet-plugins-20080601/debian/patches/00_lastfmsubmit @@ -0,0 +1,55 @@ +Index: quodlibet-plugins-20080223/events/lastfmsubmit.py +=================================================================== +--- quodlibet-plugins-20080223.orig/events/lastfmsubmit.py 2008-02-23 16:23:18.000000000 -0500 ++++ quodlibet-plugins-20080223/events/lastfmsubmit.py 2008-02-23 16:26:27.000000000 -0500 +@@ -4,11 +4,12 @@ + # Licensed under the terms of the GNU GPL v2. + + import time ++import sys + + import gobject + import gtk + +-import lastfm ++import lastfm.client, lastfm.marshaller + + import config + import player +@@ -22,16 +23,20 @@ + PLUGIN_NAME = _("Last.fm Submission") + PLUGIN_DESC = "Submit songs to Last.fm via lastfmsubmitd." + PLUGIN_ICON = gtk.STOCK_CONNECT +- PLUGIN_VERSION = "0.3" ++ PLUGIN_VERSION = "0.4" + + __exclude = "" + __song = None + __timeout_id = -1 +- __log = lastfm.logger('quodlibet') ++ __cli = None + + def __init__(self): +- try: self.__exclude = config.get("plugins", "scrobbler_exclude") +- except: pass ++ try: ++ self.__exclude = config.get("plugins", "scrobbler_exclude") ++ except: ++ pass ++ self.__cli = lastfm.client.Client('quodlibet') ++ self.__cli.open_log() + + def unprepare(self): + if self.__timeout_id > 0: +@@ -131,6 +136,8 @@ + for key in data.keys(): + if not data[key]: del(data[key]) + try: +- lastfm.submit([data]) +- self.__log.info("Sent %s", lastfm.repr(data)) +- except IOError, e: self.__log.error("Error: %s" % e) ++ self.__cli.submit(data) ++ self.__cli.log.info("Sent %s", lastfm.repr(data)) ++ except IOError, e: ++ print >>sys.stderr, e ++ self.__cli.log.error("Error: %s" % e) --- quodlibet-plugins-20080601.orig/debian/patches/series +++ quodlibet-plugins-20080601/debian/patches/series @@ -0,0 +1,4 @@ +00_lastfmsubmit +01_dbusmmkey +02_animosd_wintype.patch +03_universal_newline --- quodlibet-plugins-20080601.orig/debian/patches/03_universal_newline +++ quodlibet-plugins-20080601/debian/patches/03_universal_newline @@ -0,0 +1,27 @@ +Don't specify universal newline mode ('U') when opening files for writing. + +Index: quodlibet-plugins-20080601-1ubuntu1/songsmenu/html.py +=================================================================== +--- quodlibet-plugins-20080601-1ubuntu1.orig/songsmenu/html.py 2009-01-16 00:02:42.509913094 +0100 ++++ quodlibet-plugins-20080601-1ubuntu1/songsmenu/html.py 2009-01-16 00:02:53.169898301 +0100 +@@ -80,6 +80,6 @@ + s += '' + songs_s += s + +- f = open(fn, 'wU') ++ f = open(fn, 'w') + f.write((HTML % {'headers': cols_s, 'songs': songs_s}).encode('utf-8')) + f.close() +Index: quodlibet-plugins-20080601-1ubuntu1/songsmenu/importexport.py +=================================================================== +--- quodlibet-plugins-20080601-1ubuntu1.orig/songsmenu/importexport.py 2009-01-16 00:02:58.849906527 +0100 ++++ quodlibet-plugins-20080601-1ubuntu1/songsmenu/importexport.py 2009-01-16 00:03:17.777901391 +0100 +@@ -51,7 +51,7 @@ + + global lastfolder + lastfolder = dirname(fn) +- out = open(fn, 'wU') ++ out = open(fn, 'w') + + for song in songs: + print>>out, str(song('~basename')) --- quodlibet-plugins-20080601.orig/debian/patches/02_animosd_wintype.patch +++ quodlibet-plugins-20080601/debian/patches/02_animosd_wintype.patch @@ -0,0 +1,12 @@ +Index: events/animosd.py +=================================================================== +--- quodlibet-plugins-20080601.orig/events/animosd.py (Revision 4260) ++++ quodlibet-plugins-20080601/events/animosd.py (Arbeitskopie) +@@ -141,6 +141,7 @@ + + def __init__(self): + window = self.__window = gtk.Window(gtk.WINDOW_POPUP) ++ window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_NOTIFICATION) + window.add_events(gtk.gdk.BUTTON_PRESS_MASK) + window.connect('button-press-event', self.__buttonpress) + darea = self.__darea = gtk.DrawingArea()