summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/README.Debian7
-rw-r--r--debian/README.testing58
-rw-r--r--debian/changelog422
-rw-r--r--debian/clean1
-rw-r--r--debian/compat1
-rw-r--r--debian/control42
-rw-r--r--debian/copyright85
-rw-r--r--debian/daisy-player.docs3
-rw-r--r--debian/daisy-player.install4
-rw-r--r--debian/daisy-player.manpages1
-rw-r--r--debian/gbp.conf2
-rw-r--r--debian/patches/cdda34
-rw-r--r--debian/patches/nogroup24
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules33
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides4
-rw-r--r--debian/source/options6
-rw-r--r--debian/tests/control1
-rw-r--r--debian/upstream/signing-key.asc30
-rw-r--r--debian/watch8
21 files changed, 769 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..57fb7c4
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,7 @@
+Daisy-player mounts CD's automatically using udisks. udisks is not available
+for kfreebsd architectures. As it is heavily linked with the linux kernel,
+it is not expected that it will become available for kfreebsd. You can run
+daisy-player by calling the directory with the DAISY structure directly, so
+for kfreebsd the dependency on udisks has been dropped.
+
+ -- Paul Gevers <paul@climbing.nl>, Fri, 6 May 2011 20:50:32 +0200
diff --git a/debian/README.testing b/debian/README.testing
new file mode 100644
index 0000000..0ddb01e
--- /dev/null
+++ b/debian/README.testing
@@ -0,0 +1,58 @@
+This document describes how one could quickly test if a new package works
+resonably well. The idea was posted on
+http://lists.debian.org/debian-accessibility/2013/10/msg00026.html
+
+Preface: daisy-player was originally written to start reading CD's from
+the CD-rom drive. I don't even have such a drive, so I don't use that
+feature. To disable CD-rom usage I start daisy-player with input.
+Additionally, I have added /dev/null as CD device in daisy-player, but I
+don't think that is necessary. As I don't use CD's also the cddb option
+is useless for me, so the first time I use daisy-player I start with the
+-n option.
+
+As daisy-player is a reader of DAISY books, you need some DAISY books to
+start with. I recommend downloading at least one version 2.02 and one
+version 3 book from http://www.daisy.org/sample-content. E.g. "A Light
+Man" and "Are You Ready". The files come zipped, so you need to unzip them.
+
+paul@wollumbin ~/daisy-player/samples $ wget http://www.daisy.org/samples/202toc-only/light-man.zip
+paul@wollumbin ~/daisy-player/samples $ unzip light-man.zip
+
+daisy-player needs a console, so start it in a terminal window. You can
+run daisy-player against the directory holding the files you just
+unzipped. daisy-player is made for 24 lines x 80 chars, if your window
+is smaller, text might appear funny.
+
+paul@wollumbin ~/daisy-player/samples $ daisy-player -n light-man
+
+- You should get a screen with two info lines of daisy-player and then
+ the content of the book.
+- Pressing h should bring you the help, then pressing any key (twice)
+ should return you to the normal screen.
+- Pressing enter should start the reading and you should be able to hear
+ the text.
+- Pressing Cursor Down should scroll down to new sections, hitting enter
+ should start reading that section
+- Hitting q should quite gracefully.
+
+paul@wollumbin ~/daisy-player/samples $ wget http://www.daisy.org/samples/3full-text-full-audio/are-you-ready-z3986.zip
+paul@wollumbin ~/daisy-player/samples $ unzip are-you-ready-z3986.zip
+paul@wollumbin ~/daisy-player/samples $ daisy-player Are_you_ready_z3986
+
+- You should get a screen with the content of the book. You will only
+ see the first 22 sections of the book, there is one more (PageDown).
+- Pressing l allows you to scroll the chapters with Cursor Up/Down,
+ pressing l again allows you to scroll the paragraphs.
+- Pressing enter should start the reading where you are and you should
+ be able to hear the text.
+- Hitting q should quite gracefully.
+- Restarting daisy-player as before should start where you were the last
+ time you "read" this book.
+
+daisy-player stores it's current configuration in ~/.daisy-player.rc and
+places bookmarks in ~/.daisy-player/ You might want to backup/remove
+those to restore default settings. (Don't edit while daisy-player is
+running or it will be overwritten.)
+
+Lastly, testing if the translations still work is also nice:
+paul@wollumbin ~/daisy-player/samples $ LANGUAGE=nl_NL daisy-player Are_you_ready_z3986
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5041628
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,422 @@
+daisy-player (11.7-2) UNRELEASED; urgency=medium
+
+ * rules: Do not remove fr.gmo.
+
+ -- Samuel Thibault <sthibault@debian.org> Mon, 27 May 2019 23:57:09 +0200
+
+daisy-player (11.7-1) experimental; urgency=medium
+
+ * New upstream release.
+
+ -- Samuel Thibault <sthibault@debian.org> Mon, 27 May 2019 23:47:11 +0200
+
+daisy-player (11.6.2.1-2) unstable; urgency=medium
+
+ * patches/i18n-pulse: Fix getting pulse sink list in non-english locale.
+
+ -- Samuel Thibault <sthibault@debian.org> Sat, 26 Jan 2019 22:58:30 +0100
+
+daisy-player (11.6.2.1-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release (Closes: #915769)
+ - patches/nogroup: Refresh.
+ - patches/fr-encoding: Fix french translation encoding
+ (Closes: Bug#915767)
+ - rules: Regenerate fr.gmo to make above patch actually have effect.
+
+ -- Samuel Thibault <sthibault@debian.org> Wed, 19 Dec 2018 19:36:43 +0100
+
+daisy-player (11.6.1.1-1) unstable; urgency=medium
+
+ * New upstream release
+ - Closes: #876759
+ - control: Build-depend on libpulse-dev and libsndfile1-dev instead of
+ libasound2-dev.
+ - patches/cdda: Fix detecting cdparanoia.
+ - patches/nogroup: Disable requiring being in groups audio and pulse.
+ * Bump Standards-Version to 4.2.0 (no changes).
+ * Re-enable autopkgtest.
+
+ -- Samuel Thibault <sthibault@debian.org> Sun, 07 Oct 2018 23:02:32 +0200
+
+daisy-player (11.4-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 11 Mar 2018 20:57:33 +0100
+
+daisy-player (11.3.2-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 19 Feb 2018 20:40:37 +0100
+
+daisy-player (11.3.1-1) unstable; urgency=medium
+
+ * New upstream release
+ * Drop patches, applied upstream
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 28 Jan 2018 21:18:17 +0100
+
+daisy-player (11.3-1) unstable; urgency=medium
+
+ * New upstream release
+ * Drop patches, applied upstream
+ * Bump standards to 4.1.3
+ * Bump debhelper compat level to 11 and declare R³:no
+ * Add fix-weird-character-in-configure.ac.patch
+ * Add pick-up-config.h-in-daisy.h.patch to prevent FTBFS
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 10 Jan 2018 19:43:02 +0100
+
+daisy-player (11.2-2) unstable; urgency=medium
+
+ [ Matthias Klose ]
+ * Fix build with libcdio 0.94. (Closes: #881793)
+
+ [ Paul Gevers ]
+ * Upload in Debian
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 15 Nov 2017 19:30:57 +0100
+
+daisy-player (11.2-1) unstable; urgency=medium
+
+ [ Samuel Thibault ]
+ * control: Bump Standards-Version to 4.1.1 (no changes).
+
+ [ Paul Gevers ]
+ * New upstream release
+ - Now supports pulseaudio as it plays via sox
+ * Add sox and libsox-fmt-mp3/pulse to Depends
+ * Drop B-D on dh-autoreconf as debhelper 10+ handles this by default
+ * Drop autopkgtest until we understand how to prevent autopkgtest to
+ hang
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 14 Oct 2017 19:30:04 +0200
+
+daisy-player (10.6.4.2-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 23 Sep 2017 10:14:53 +0200
+
+daisy-player (10.6.3-1) unstable; urgency=medium
+
+ [ Samuel Thibault ]
+ * control: Bump Standards-Version to 4.1.0 (no changes).
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Replace Depends on madplay by Build-Depends on libasound2-dev,
+ libid3tag0-dev and libmad0-dev
+ * Add very simple autopkgtest
+ * Fix and override lintian warning configure-generated-file-in-source
+ * Drop --with autoreconf from d/rules as it is enabled by default
+ (thanks lintian)
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 10 Sep 2017 20:36:37 +0200
+
+daisy-player (10.5.2-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 10 Jul 2017 20:45:18 +0200
+
+daisy-player (10.5.1-1) unstable; urgency=medium
+
+ [ Samuel Thibault ]
+ * control: Update maintainer mailing list.
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Bump standards version to 4.0.0 (no changes)
+ * Drop patch, applied upstream
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 09 Jul 2017 20:03:23 +0200
+
+daisy-player (10.3-3) unstable; urgency=medium
+
+ * Prevent txt2man -p to pick up the build dir to enable reproducible
+ builds. Will be fixed in next upstream release (Closes: #844232)
+ * Bump compat level to 10
+ * Convert Vcs-* URLs to https
+ * Enable hardening
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 10 Dec 2016 20:30:26 +0100
+
+daisy-player (10.3-2) unstable; urgency=medium
+
+ * Team upload.
+ * rules: Simplify strip rule.
+ * rules: Set ddeb-migration.
+ * rules: Use CURDIR instead of PWD.
+ * control: Depend on debhelper 9.20150628 for ddeb-migration.
+ * rules: pass --destdir=debian/tmp to dh_auto_install.
+ * daisy-player.menu: Remove, superseded by XDG desktop file.
+ * control: Bump Standards-Version to 3.9.8.
+
+ -- Samuel Thibault <sthibault@debian.org> Sun, 04 Sep 2016 17:49:47 +0200
+
+daisy-player (10.3-1) unstable; urgency=medium
+
+ [ Samuel Thibault ]
+ * watch: Generalize URL.
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Upload to unstable
+
+ -- Paul Gevers <elbrus@debian.org> Fri, 05 Jun 2015 13:28:39 +0200
+
+daisy-player (10.2.1-1) experimental; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 18 Feb 2015 20:11:07 +0100
+
+daisy-player (10.0-1) experimental; urgency=medium
+
+ [ Samuel Thibault ]
+ * Bump Standards-Version to 3.9.6 (no changes).
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Drop patch (applied upstream)
+ * Add upstream key to validate downloads
+ * Update years in d/copyright
+
+ -- Paul Gevers <elbrus@debian.org> Tue, 20 Jan 2015 21:01:16 +0100
+
+daisy-player (9.0.0-1) unstable; urgency=medium
+
+ * New upstream release
+ * Simplify CFLAGS in d/rules
+ * Add patch to fix the man-page for the move of g -> G for page
+ seeking
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 30 Aug 2014 20:14:01 +0200
+
+daisy-player (8.7.0-1) unstable; urgency=medium
+
+ * New upstream release
+ - Add new copyright and license to d/copyright
+ * Update upstream homepage in d/copyright
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 05 Jul 2014 21:18:32 +0200
+
+daisy-player (8.6.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #740844, LP: #1288253)
+ * Update dependencies
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 12 Apr 2014 21:47:16 +0200
+
+daisy-player (8.5.1-1) unstable; urgency=low
+
+ * New upstream release
+ * Update years in d/copyright
+
+ -- Paul Gevers <elbrus@debian.org> Fri, 03 Jan 2014 19:22:08 +0100
+
+daisy-player (8.4.5-1) unstable; urgency=low
+
+ [ Paul Gevers ]
+ * New upstream release
+ * Drop localization patch (applied upstream)
+
+ [ Samuel Thibault ]
+ * Bump Standards-Version to 3.9.5 (no changes).
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 29 Dec 2013 21:13:49 +0100
+
+daisy-player (8.4.1-1) unstable; urgency=low
+
+ * New upstream release
+ * Drop all patches (fixed upstream)
+ * Replace dependency on unzip by unar
+ * Simplify handling of icons (upstream also added them again)
+ * Install gzipped version of the scalable icon.
+ * Add README.testing to ease group packaging
+ * Update homepage in d/control and d/watch
+ * Fix localization (new patch)
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 20 Oct 2013 09:34:19 +0200
+
+daisy-player (8.3.5-1) unstable; urgency=low
+
+ * New upstream release
+ * Remove dh_clean override from rules again
+ * Update dont_use_upstream_hardcoded_prefix.patch for changed context
+ * Add keywords to desktop file (thanks lintian)
+ * Add missing icon to debian dir and create png files during build
+ * Update (build) dependencies for latest upstream source
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 17 Jul 2013 15:52:18 +0200
+
+daisy-player (8.3.0-1) unstable; urgency=low
+
+ * New upstream release
+ * Remove obsolete patches (included upstream)
+ * d/rules: delete auto generated files on clean as upstream provided an
+ unclean source
+ * Update vcs-browser to canonical location (thanks lintian)
+
+ -- Paul Gevers <elbrus@debian.org> Sun, 16 Jun 2013 16:11:54 +0200
+
+daisy-player (8.2.0-2) unstable; urgency=low
+
+ * Upload to unstable
+
+ -- Paul Gevers <elbrus@debian.org> Fri, 24 May 2013 21:20:29 +0200
+
+daisy-player (8.2.0-1) experimental; urgency=low
+
+ * New upstream release
+ * New patches:
+ - prevent_linux_specific_on_non_linux.patch to prevent using an undeclared
+ identifier on non-linux
+ - fix_build_on_non_linux.patch to prevent build failure on non-linux
+ by not loading unneeded header files
+ - dont_use_upstream_hardcoded_prefix.patch to suppress unneeded warning as
+ we overwrite the -DPREFIX parameter in d/rules.
+ - fix_autostuff_on_languages.patch to allow autoreconf to install
+ translations into the write location
+ * Clean up d/rules as most stuff is now done correctly in the upstream build
+ system
+ * Add depends on autopoint and use dh_autoreconf instead of dh_autoconf
+ * Update to debhelper 9 to ease hardening (i.s.o. b-depends hardening-wrapper)
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 01 May 2013 21:10:52 +0200
+
+daisy-player (8.1.0-1) experimental; urgency=low
+
+ * New upstream release
+ * Remove gvfs again as it fails on some archs so upstream replaced it with
+ libcdio and co.
+ * Update d/* to cope with new upstream build system and file layout
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 13 Apr 2013 15:12:02 +0200
+
+daisy-player (8.0.1-1) experimental; urgency=low
+
+ * New upstream release
+ - Add gvfs and libcddb-get-perl to recommends
+ * Update d/rules for new language files location
+ * Update d/copyright
+ * Removed error.wav from installing (removed from tar ball)
+ * Bump Standards-Version to 3.9.4 (no change needed)
+
+ -- Paul Gevers <elbrus@debian.org> Thu, 14 Mar 2013 20:50:13 +0100
+
+daisy-player (7.2.2.1-1) experimental; urgency=low
+
+ [ Samuel Thibault ]
+ * Remove DM-Upload-Allowed field, Paul is a DD now.
+
+ [ Paul Gevers ]
+ * New upstream release (two versions of 7.2.2 existed, this source file is
+ the later one, hence the version)
+ - Added languages (fr, es)
+ * Update d/control with obsolete library dependency and my new address
+ * Automate installation of all languages in d/rules and d/d-p.install
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 03 Oct 2012 20:28:03 +0200
+
+daisy-player (7.2.0-1) experimental; urgency=low
+
+ * New upstream release
+ - Now uses xml2 library i.s.o. Mini-XML
+ - Added language (af)
+ * Update d/control with new library dependency
+ * Update d/copyright for removed files
+ * Removed override_dh_installchangelogs target as the changelog is now found
+
+ -- Paul Gevers <paul@climbing.nl> Mon, 23 Jul 2012 21:44:28 +0200
+
+daisy-player (7.1.1-1) unstable; urgency=low
+
+ * New upstream release
+ - Now uses Mini-XML (Closes: #658564)
+ * Removed all patches (now upstream)
+ * Update d/copyright with new year
+ * Update d/control with new library dependency (libmxml)
+
+ -- Paul Gevers <paul@climbing.nl> Fri, 16 Mar 2012 18:57:47 +0100
+
+daisy-player (7.0.4.1-2) unstable; urgency=low
+
+ [ Samuel Thibault ]
+ * control: Depend on hardening-check.
+ * rules: Set DEB_BUILD_HARDENING=1 to enable hardening.
+ * control: Bump Standards-Version to 3.9.3 (no changes).
+ * patches/buffer-size.patch: Increase buffer size, to cope with long
+ elements (Closes: #642055).
+ * debian/patches/realname.patch: New patch to fix realname to really return
+ a valid string.
+ * debian/patches/attribute.patch: New patch to fix get_attributes
+ (Closes: #658564).
+ * debian/patches/opf.patch: New patch to fix read_opf.
+
+ [ Paul Gevers ]
+ * Update d/copyright file with new format URL and fix errors (lintian)
+
+ -- Paul Gevers <paul@climbing.nl> Fri, 02 Mar 2012 21:06:09 +0100
+
+daisy-player (7.0.4.1-1) unstable; urgency=low
+
+ * New upstream release (two versions of 7.0.4 existed, this source file is the
+ later one, hence the version)
+ - Fixes crash when pressing space bar in viewing key bindings (LP: #818112)
+ - Remove Makefile patch as upstream now includes CFLAGS in Makefile
+
+ -- Paul Gevers <paul@climbing.nl> Wed, 14 Sep 2011 19:58:32 +0200
+
+daisy-player (7.0.3-1) unstable; urgency=low
+
+ * New upstream release
+ - Daisy-player now supports DAISY version 3: update description
+ * Remove libcdio-dev as build dependency
+ * Build with proper flags to let the debugging package contain symbols
+ - Patch upstream Makefile to allow for command line CFLAGS
+ - Update d/rules to get CFLAGS from dpkg-buildflags and pass them on
+
+ -- Paul Gevers <paul@climbing.nl> Fri, 29 Jul 2011 19:55:04 +0200
+
+daisy-player (6.4.0-2) unstable; urgency=low
+
+ [ Samuel Thibault ]
+ * Bump Standards-Version to 3.9.2 (no change needed)
+
+ [ Paul Gevers ]
+ * Dropped dependency on udisks for kfreebsd and add README.Debian describing
+ the situation (udisks is linux specific, daisy-player works without udisks,
+ but CD's aren't automatically mounted)
+ * Bring the maintainer name in d/control in sync with other packages of the
+ team (debian policy section 3.3)
+ * Add madplay to build depends to prevent building on archs were madplay does
+ not build yet due to bug #625649.
+
+ -- Paul Gevers <paul@climbing.nl> Mon, 13 Jun 2011 14:45:38 +0200
+
+daisy-player (6.4.0-1) unstable; urgency=low
+
+ [ Paul Gevers ]
+ * New upstream release (closes: #620519)
+ * Remove old Makefile patch (preventing stripping, now upstream)
+ * Upstream improved code to implement configurable PREFIX parameter
+ so applied PREFIX in d/rules
+ * Added libsox-dev and libidn11-dev to build dependencies
+ * Removed manual sox from dependenies
+ * Updated d/copyright with new files
+
+ [ Samuel Thibault ]
+ * Set daisy-player Multi-Arch: foreign.
+
+ -- Paul Gevers <paul@climbing.nl> Thu, 31 Mar 2011 21:32:27 +0200
+
+daisy-player (6.1.1-1) unstable; urgency=low
+
+ * Initial release (closes: #595292)
+
+ -- Paul Gevers <paul@climbing.nl> Sun, 06 Feb 2011 15:15:00 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..bade676
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+src/madplay/config.status
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c69349e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: daisy-player
+Section: sound
+Priority: optional
+Maintainer: Debian Accessibility Team <pkg-a11y-devel@lists.alioth.debian.org>
+Uploaders: Paul Gevers <elbrus@debian.org>
+Build-Depends: autopoint,
+ debhelper (>= 11~),
+ libpulse-dev,
+ libsndfile1-dev,
+ libncursesw5-dev,
+ libcdio-cdda-dev,
+ libcdio-dev,
+ libcdio-paranoia-dev,
+ libid3tag0-dev,
+ libmad0-dev,
+ libmagic-dev,
+ librsvg2-bin,
+ libsox-dev,
+ libxml2-dev,
+ man2html,
+ txt2man
+Standards-Version: 4.2.0
+Vcs-Browser: https://salsa.debian.org/a11y-team/daisy-player
+Vcs-Git: https://salsa.debian.org/a11y-team/daisy-player
+Homepage: http://jlemmens.nl/
+Rules-Requires-Root: no
+
+Package: daisy-player
+Architecture: any
+Multi-Arch: foreign
+Depends: libsox-fmt-mp3,
+ libsox-fmt-pulse,
+ udisks2 [linux-any],
+ unar,
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: libcddb-get-perl,
+Description: player for DAISY Digital Talking Books
+ Daisy-player is a command-line player for talking books based on the
+ Digital Accessible Information System protocol. It is comparable in
+ functionality, features, and ease of use with commercial players, and
+ has a simple user interface appropriate for Braille terminals.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6f27cb6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,85 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: daisy-player
+Source: http://www.jlemmens.nl/
+Upstream-Contact: Jos Lemmens <jos@jlemmens.nl>
+
+Files: *
+Copyright: © 2003-2018 Jos Lemmens <jos@jlemmens.nl>
+License: GPL-2+
+
+Files: ./debian/*
+Copyright: © 2010-2018 Paul Gevers <elbrus@debian.org>
+License: GPL-2+
+
+Files: ./icons/*
+Copyright: © 2002-2010
+ Ulisse Perusin <uli.peru@gmail.com>
+ Riccardo Buzzotta <raozuzu@yahoo.it>
+ Josef Vybíral <cornelius@vybiral.info>
+ Hylke Bons <h.bons@student.rug.nl>
+ Ricardo González <rick@jinlabs.com>
+ Lapo Calamandrei <calamandrei@gmail.com>
+ Rodney Dawes <dobey@novell.com>
+ Luca Ferretti <elle.uca@libero.it>
+ Tuomas Kuosmanen <tigert@gimp.org>
+ Andreas Nilsson <nisses.mail@home.se>
+ Jakub Steiner <jimmac@novell.com>
+ Ellen Rohaan <ellen.rohaan@esac.climbing.nl>
+Comment: The daisy-player icon is based on the accessories-dictionary.svgz icon
+ from the plasma-widgets-addons package (in Ubuntu version 4:4.5.1-0ubuntu4).
+License: GPL-2
+
+Files: ./src/gettext.h
+Copyright: (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ Modified by the GLib Team and others 1997-2000.
+License: LGPL-2+
+
+Files: ./src/madplay/*
+Copyright: 2000-2004 Robert Leslie <rob@mars.org>
+License: GPL-2+
+
+License: GPL-2
+ 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.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in /usr/share/common-licenses/GPL-2.
+
+License: GPL-2+
+ This program 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; either version 2
+ of the License, or (at your option) any later version.
+ .
+ This program 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.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see
+ <http://www.gnu.org/licenses/>.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU Lesser
+ General Public License, version 2, can be found in
+ /usr/share/common-licenses/GPL-2.
diff --git a/debian/daisy-player.docs b/debian/daisy-player.docs
new file mode 100644
index 0000000..17f1c25
--- /dev/null
+++ b/debian/daisy-player.docs
@@ -0,0 +1,3 @@
+debian/README.testing
+doc/Readme
+doc/TODO
diff --git a/debian/daisy-player.install b/debian/daisy-player.install
new file mode 100644
index 0000000..700998e
--- /dev/null
+++ b/debian/daisy-player.install
@@ -0,0 +1,4 @@
+usr/bin/daisy-player
+doc/daisy-player.desktop usr/share/applications/
+debian/icons/hicolor usr/share/icons/
+usr/share/locale
diff --git a/debian/daisy-player.manpages b/debian/daisy-player.manpages
new file mode 100644
index 0000000..8545ad5
--- /dev/null
+++ b/debian/daisy-player.manpages
@@ -0,0 +1 @@
+man/daisy-player.1
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/patches/cdda b/debian/patches/cdda
new file mode 100644
index 0000000..f3cb3b7
--- /dev/null
+++ b/debian/patches/cdda
@@ -0,0 +1,34 @@
+The path in Debian really is cdio/paranoia/cdda.h only nowadays
+
+---
+ configure.ac | 2 +-
+ src/daisy.h | 13 +++++++------
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -45,7 +45,7 @@ AC_CHECK_LIB([pulse], [main])
+ # Checks for header files.
+ AC_CHECK_HEADERS([fcntl.h libintl.h locale.h stdlib.h string.h strings.h \
+ sys/ioctl.h unistd.h])
+-#AC_CHECK_HEADERS([cdio/paranoia/cdda.h])
++AC_CHECK_HEADERS([cdio/paranoia/cdda.h])
+
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_INLINE
+--- a/src/daisy.h
++++ b/src/daisy.h
+@@ -64,6 +58,13 @@
+ #undef VERSION
+ #include "config.h"
+
++#ifdef HAVE_CDIO_PARANOIA_CDDA_H
++ #include <cdio/paranoia/paranoia.h>
++#else
++ #include <cdio/cdda.h>
++ #include <cdio/paranoia.h>
++#endif
++
+ #define MAX_CMD 512
+ #define MAX_STR 256
+ #define MAX_TAG 1024
diff --git a/debian/patches/nogroup b/debian/patches/nogroup
new file mode 100644
index 0000000..053310f
--- /dev/null
+++ b/debian/patches/nogroup
@@ -0,0 +1,24 @@
+The user really does not have to be in group audio or pulse on Debian.
+
+---
+ src/common.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/src/common.c
++++ b/src/common.c
+@@ -906,6 +906,7 @@ void select_next_output_device (misc_t *
+ int c, n, found;
+ struct group *grp;
+
++#if 0
+ grp = getgrnam ("audio");
+ found = 0;
+ for (n = 0; grp->gr_mem[n]; n++)
+@@ -926,6 +927,7 @@ void select_next_output_device (misc_t *
+ printf ("Logout and login again and you can use daisy-player.\n");
+ _exit (EXIT_FAILURE);
+ } // if
++#endif
+
+ wclear (misc->screenwin);
+ wprintw (misc->screenwin, "\n%s\n\n", gettext ("Select a soundcard:"));
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0b70a39
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+cdda
+nogroup
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3ba38ee
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_CFLAGS_MAINT_APPEND=-Wall $(shell xml2-config --cflags)
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+ICONSDIR=debian/icons/hicolor
+
+%:
+ dh $@ --ddeb-migration='daisy-player-dbg (<< 10.3-2~)'
+
+override_dh_clean:
+ rm -rf $(ICONSDIR)
+ dh_clean
+
+override_dh_auto_build:
+ dh_auto_build
+
+ make -C po fr.gmo
+
+ # Building icons
+ for size in 48 72 ; do \
+ mkdir -p $(ICONSDIR)/$${size}x$${size}/apps ; \
+ rsvg-convert --width $$size --height $$size icons/daisy-player.svg \
+ --output $(ICONSDIR)/$${size}x$${size}/apps/daisy-player.png ; done
+ mkdir -p $(ICONSDIR)/scalable/apps
+ gzip -c9 icons/daisy-player.svg > $(ICONSDIR)/scalable/apps/daisy-player.svgz
+
+override_dh_auto_install:
+ dh_auto_install --destdir=$(CURDIR)/debian/tmp
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..1ffe728
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,4 @@
+# Upstream took the source from madplay and adapted it. Apparently, it contains
+# this config.status file, that is stripped in d/clean. Lintian suggest to
+# override the warning.
+daisy-player source: configure-generated-file-in-source src/madplay/config.status
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..0bcd3d7
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,6 @@
+# Global options for package building
+# Paul Gevers, 13 Feb 2011
+# See http://raphaelhertzog.com/2011/01/28/3-ways-to-not-clutter-your-debian-source-package-with-autogenerated-files/
+
+# Don't store changes on generated files
+extend-diff-ignore = "(^|/)(daisy-player\.(1|h|html|pot)|Makefile(|.in))($|/)"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5d4203d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Test-command: daisy-player -h
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..8846564
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,30 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+
+mQENBFSKw/wBCADCMji2DO1g2FFbplys19OXB+rWcAP0/NVn7eiUunyNK5SjGaBn
+M4YR0t0RIS2QaKhSCAamHocrY8cqwLgfbSJ6gJ/Y5JBXwES1DIjXlkprxZrnN1BV
+VuvqmZPyhUoss/KpzQV0bvcnzgGujsErADOlb63+dbGxfjULIG1cuvorbqMQt3zL
+LUn09D/p20ldP0rxu+tTEAZvgJp82Dn1pa0ZAp+9gs7gMTwMZnLlK8+ToDTHKtKY
+TuCzoi34ol3W4RSMc3JCknD3wSqVU8Lz2oRwScVyckPE8z4c6PvGWXflh8ue70T2
+tsnZHsRFvGMLTywFXAKihdrEdGkVKHbcsfKhABEBAAG0HUpvcyBMZW1tZW5zIDxq
+b3NAamxlbW1lbnMubmw+iQE4BBMBAgAiBQJUisP8AhsDBgsJCAcDAgYVCAIJCgsE
+FgIDAQIeAQIXgAAKCRBimrYuji1BmoVbCACPi9H6reGglFFpCLdAStO3iOR26b0L
+DSXDsphNJ9cEaQbXDC39+VbFbANFnQukZqBS43/4NUv1gitiqGfsjtndkAVs9MYe
+do27ph3y/9e85pCHilHRizwmg2n/XF77tEVNEBORGezeDW5Z6kJ+gXv3pcfcLVnO
+7t/HWKTl4RCzcJC8Kl5TE5pKU85vadDfNMkpVOHghaDDVR0Y/etW/l6+4jeLQoa0
+QAWHPhzxAeRVTT+iiaXeNQA7WWPIK3xH6BD89l7Ck1lgr3RcMkw9khISqnKwpYca
+ZES7pZ/YKL7V8/LiWQSUJvEpiKKuKSlKFHWaUSOAXm5xLc9jQGT4SGNvuQENBFSK
+w/wBCADy8mclPnKhk816pV3YednhoIVjcAM4hAL1x+vgBSJpxDuFoLthfyifirMj
+FixXxsj4L02n9cyFU6BcR9AgK9GiKp6DmIG0LAreMFztXU3kAylUD9oiHheVkh3Z
+HgtvTnsZDjvTXwAFab5lCnzeOrKyFKNCa4jDXPyGR1O0vFCftzrmzu+Qz8ldVhxc
+nvwnmBGE1NyH2yYQtAoszV/Rjn/TRSZq6j1PDyeZHOSBZLNA8En14d9yN9VJrbKK
+WqyA22ErqUnKyhRlQqdnE5WVuDLZIIPF5LaVwKc2ZTdTdVzk7O98Rc70ju7gkJy9
+2oSCHg/CVy166uOARf3LtulTwoiNABEBAAGJAR8EGAECAAkFAlSKw/wCGwwACgkQ
+Ypq2Lo4tQZqgvQf/R7pwTBRcpSF/+C6/JWo+HxlFjBH/J6r5oo1zYljqrAYlCe17
+e7DZcimgGiMBnWVara2oUdr5noqqcQ2hGKMFd7HemIUHox2BD+qHLR7W0Y1MMpg2
+1E+vzqaQ9lRBu8cVYm51vrSi3siCKJClDVpXUeeiH74WmuIu5lpNozFKBVi7HdXw
+fg4QBcDfZjeRZ/aG8D6OVkHNVKE9DdrBkfXXg0JXLqTHKf/re0JjlOIjJsqt8rUs
+metKdTO1+bYUbonzne/nQY/JO9tcZCpBa3NxNcFkW/yYuCo7C8a0ATw5aqMNPIYT
+jBlZ1UbVSssxBB/shKpDbq7dvmomNYS3CF2b5w==
+=QsnM
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b06e1be
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+opts=versionmangle=s/^(\d\.\d)$/$1\.0/,pgpsigurlmangle=s/$/.asc/ \
+ http://jlemmens.nl/homepage/ \
+ (?:.*/)?daisy-player-([\d\.]+)\.(?:zip|tgz|tbz2|txz|tar\.(?:gz|bz2|xz))