--- minirok-2.1.orig/debian/minirok.preinst +++ minirok-2.1/debian/minirok.preinst @@ -0,0 +1,32 @@ +#! /bin/sh + +set -e + +rm_conffile () { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum=`md5sum "$CONFFILE" | awk '{print $1}'` + pristine_md5sum=`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -rne "s#^ $CONFFILE ([^ ]+).*#\\1#p"` + if [ "$md5sum" = "$pristine_md5sum" ]; then + echo "Removing obsolete conffile $CONFFILE." + rm -f "$CONFFILE" + else + echo "Obsolete conffile $CONFFILE has local modifications." + echo "Saving as $CONFFILE.dpkg-bak." + mv -f "$CONFFILE" "$CONFFILE.dpkg-bak" + fi + fi +} + + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" lt 1; then + rm_conffile minirok /etc/kde3/minirokrc + fi + ;; +esac + +#DEBHELPER# --- minirok-2.1.orig/debian/control +++ minirok-2.1/debian/control @@ -0,0 +1,49 @@ +Source: minirok +Section: kde +Priority: optional +Maintainer: Adeodato Simó +Build-Depends: debhelper, python, kdelibs-bin (>> 4:4.0) +Standards-Version: 3.8.1 +Homepage: http://chistera.yi.org/~adeodato/code/minirok + +Package: minirok +Architecture: all +Depends: python (>= 2.5), + python-qt4, python-kde4 (>= 4:4.1.1), + python-mutagen, python (>= 2.6) | python-simplejson, + python-gst0.10, gstreamer0.10-alsa | gstreamer0.10-audiosink, + gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly, + ${misc:Depends}, ${python:Depends} +Recommends: python-dbus, python-qt4-dbus, python-psutil +Suggests: gstreamer0.10-plugins-bad +Description: a small music player written in Python and inspired by Amarok + Minirok is a small music player written in Python for the K Desktop + Environment. As its name hints, it's modelled after Amarok, but with a + reduced set of features. In particular, it is designed to cover all the + needs and wishes of the author, leaving everything else out. The look + and feel is almost identical to Amarok's, though. + . + The main interface is a *tree view of the filesystem*, with a playlist + that can only be populated via drag and drop. There is no collection + built from tags, so it's targeted at people whose collection is + structured in a tree already at the filesystem level. Searches can be + performed both in the tree view and the playlist. + . + Other features include: + . + * DBus interface for controlling the player and retrieving the + currently played track, among other things + . + * alter the playing order in the playlist by queueing tracks; + stop after a certain track; repeat track or playlist; random mode; + undo and redo + . + * reading of tags when adding to the playlist can be disabled by + specifying a regular expression to extract them from the filename + . + * submission of played songs to Last.fm + . + * global shortcuts + . + Minirok is written using the PyKDE bindings and the GStreamer media + framework. --- minirok-2.1.orig/debian/changelog +++ minirok-2.1/debian/changelog @@ -0,0 +1,108 @@ +minirok (2.1-1) unstable; urgency=low + + * New upstream release: + + allows to enqueue/dequeue tracks with a shortcut. (Closes: #507484) + + does not segfault when using File-Open directory if no directory has + ever been opened in the tree view. (Closes: #544230, #549538) + + does not crash on startup due to an incompatible change in PyQt 4.6. + (Closes: #548570) + + * debian/control: + + add python-psutil to Recommends. + + bump required Python version to 2.5. + + ensure json or simplejson are available. + + drop lastfmsubmitd from Suggests (submissions are done by Minirok + itself now). + + -- Adeodato Simó Thu, 15 Oct 2009 02:29:11 +0100 + +minirok (2.0-1) unstable; urgency=low + + * New upstream release, ported to KDE 4 now (see the NEWS file for details). + + * Add postinst/postrm snippets to touch /usr/share/icons/hicolor, so that + the icon cache gets rebuilt after installation, and Minirok icons become + available. + + * Drop lintian override file, now that script-not-executable does not apply + to files under /usr/share. + + * Bump Standards-Version to 3.8.1 (no changes required). + + -- Adeodato Simó Mon, 01 Jun 2009 23:09:20 +0200 + +minirok (0.9.2-1) unstable; urgency=low + + * New upstream bugfix release: + + + fix crashes that randomly happened while moving from one track to + another. (Closes: #507115) + + + no longer hangs on exit. (Closes: #485981) + + -- Adeodato Simó Sat, 29 Nov 2008 19:45:02 +0100 + +minirok (0.9.1-1) unstable; urgency=low + + * New upstream bugfix release: + + fix traceback when setting the tooltip for tracks with no artist + information. + + -- Adeodato Simó Wed, 21 May 2008 19:13:57 +0200 + +minirok (0.9-1) unstable; urgency=low + + * New upstream release. + + * Bump Standards-Version to 3.7.3 (no changes needed). + + -- Adeodato Simó Sat, 22 Mar 2008 14:45:13 +0100 + +minirok (0.8.1-1) unstable; urgency=low + + * New upstream bugfix release: + + unbreak saving the list of paths from the tree view combo box. + + -- Adeodato Simó Tue, 29 Jan 2008 17:49:26 +0100 + +minirok (0.8-1) unstable; urgency=low + + * New upstream release: + + provides a "Refresh" button in the tree view. (Closes: #457969) + + (The KDE4 version will also refresh directories when being opened + in the tree view. Also, if you'd like for the Refresh action to be + accessible from the menu and not only from a button, please let me + know.) + + -- Adeodato Simó Sun, 27 Jan 2008 13:21:21 +0100 + +minirok (0.7-1) unstable; urgency=low + + * New upstream release. + + * Remove lintian overrides for minirok_append.desktop, now that lintian + knows it shouldn't complain in this case. + + * Add a Homepage field. + + -- Adeodato Simó Wed, 21 Nov 2007 20:02:55 +0100 + +minirok (0.6-1) unstable; urgency=low + + * New upstream release. + + -- Adeodato Simó Tue, 04 Sep 2007 22:41:15 +0200 + +minirok (0.5.1-1) unstable; urgency=low + + * New upstream bugfix release: + + handle lastfmsubmitd being installed but not configured. + + -- Adeodato Simó Sat, 25 Aug 2007 21:34:43 +0200 + +minirok (0.5-1) unstable; urgency=low + + * Initial release. (Closes: #439228) + + -- Adeodato Simó Sat, 25 Aug 2007 17:39:45 +0200 --- minirok-2.1.orig/debian/rules +++ minirok-2.1/debian/rules @@ -0,0 +1,31 @@ +#! /usr/bin/make -f + +build: +# pass + +clean: + dh_testdir + dh_testroot + dh_clean + +binary-arch: +# pass + +binary-indep: + dh_testdir + dh_testroot + dh_installdirs + env DEBIAN_PREFIX=$(CURDIR)/debian/minirok ./setup.sh install + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch binary-indep + +.PHONY: build clean binary binary-arch binary-indep --- minirok-2.1.orig/debian/minirok.docs +++ minirok-2.1/debian/minirok.docs @@ -0,0 +1,4 @@ +NEWS +README +README.* +TODO --- minirok-2.1.orig/debian/copyright +++ minirok-2.1/debian/copyright @@ -0,0 +1,37 @@ +Debianized by Adeodato Simó 2007-08-09 + +The source of Minirok was downloaded from: + + http://chistera.yi.org/~adeodato/code/minirok/tarballs + +And the project homepage is: + + http://chistera.yi.org/~adeodato/code/minirok + +Upstream author: + + Adeodato Simó + +Copyright and license terms: + + | Minirok is Copyright (c) 2007-2009 Adeodato Simó, and licensed under the + | terms of the MIT license: + | + | Permission is hereby granted, free of charge, to any person obtaining + | a copy of this software and associated documentation files (the + | "Software"), to deal in the Software without restriction, including + | without limitation the rights to use, copy, modify, merge, publish, + | distribute, sublicense, and/or sell copies of the Software, and to + | permit persons to whom the Software is furnished to do so, subject to + | the following conditions: + | + | The above copyright notice and this permission notice shall be included + | in all copies or substantial portions of the Software. + | + | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- minirok-2.1.orig/debian/compat +++ minirok-2.1/debian/compat @@ -0,0 +1 @@ +5 --- minirok-2.1.orig/debian/minirok.postinst +++ minirok-2.1/debian/minirok.postinst @@ -0,0 +1,13 @@ +#! /bin/sh + +set -e + +if [ "$1" = "configure" ]; then + # This is needed so that KDE4 knows a rebuild of the icon cache is + # in order. Without it, Minirok's icons won't be available. I poked + # around to see if there was some dh_foo to automate this, but it + # seems there is not. Cook it up ourselves for now. -- Dato, 2009-02-10 + touch "`kde4-config --expandvars --install icon`/hicolor" +fi + +#DEBHELPER# --- minirok-2.1.orig/debian/minirok.postrm +++ minirok-2.1/debian/minirok.postrm @@ -0,0 +1,13 @@ +#! /bin/sh + +set -e + +if [ "$1" = "remove" ]; then + if which "kde4-config" >/dev/null 2>&1; then + touch "`kde4-config --expandvars --install icon`/hicolor" + else + touch "/usr/share/icons/hicolor" + fi +fi + +#DEBHELPER#