--- poe.app-0.5.1.orig/debian/rules
+++ poe.app-0.5.1/debian/rules
@@ -0,0 +1,71 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+include /usr/share/GNUstep/debian/config.mk
+
+export GNUSTEP_MAKEFILES := $(GS_MAKE_DIR)
+d_app := $(CURDIR)/debian/poe.app
+
+LDFLAGS := -Wl,-z,defs -Wl,--as-needed
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+optim := debug=yes
+endif
+
+build: patch build-stamp
+
+build-stamp:
+	dh_testdir
+	$(MAKE) messages=yes $(optim) LDFLAGS="$(LDFLAGS)"
+	convert Resources/GNUstep/Poe.tiff -resize 32x32 Poe.xpm
+	touch $@
+
+clean: clean-patched unpatch
+
+clean-patched:
+	dh_testdir
+	dh_testroot
+	$(MAKE) distclean
+	dh_clean build-stamp Poe.xpm
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	$(MAKE) install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM DESTDIR=$(d_app)
+	dh_install debian/*.desktop usr/share/applications/
+	dh_install Poe.xpm usr/share/pixmaps/
+	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installmenu
+	dh_installman debian/Poe.1
+	dh_strip
+ifeq ($(GS_USE_FHS),yes)
+	gsdh_gnustep
+	dh_installdirs usr/share/GNUstep
+	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/Poe.app/Resources \
+	  $(d_app)/usr/share/GNUstep/Poe.app
+	dh_link usr/share/GNUstep/Poe.app \
+	  $(GNUSTEP_SYSTEM_APPS)/Poe.app/Resources
+endif
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- poe.app-0.5.1.orig/debian/menu
+++ poe.app-0.5.1/debian/menu
@@ -0,0 +1,5 @@
+?package(poe.app):needs="X11" \
+  section="Applications/Sound" \
+  title="Poe" command="/usr/bin/Poe" \
+  longtitle="Vorbis comment editor" \
+  icon="/usr/share/pixmaps/Poe.xpm"
--- poe.app-0.5.1.orig/debian/Poe.desktop
+++ poe.app-0.5.1/debian/Poe.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Categories=AudioVideo;Audio;AudioVideoEditing;
+Name=Poe
+Comment=Vorbis comment editor
+Comment[bg]=Редактор на коментари на файлове във формат Ogg Vorbis
+Icon=/usr/lib/GNUstep/Applications/Poe.app/Resources/Poe.tiff
+Exec=Poe
--- poe.app-0.5.1.orig/debian/watch
+++ poe.app-0.5.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.eskimo.com/~pburns/Poe/files/Poe-(.*)\.tar\.gz
--- poe.app-0.5.1.orig/debian/compat
+++ poe.app-0.5.1/debian/compat
@@ -0,0 +1 @@
+7
--- poe.app-0.5.1.orig/debian/control
+++ poe.app-0.5.1/debian/control
@@ -0,0 +1,23 @@
+Source: poe.app
+Section: gnustep
+Priority: optional
+Maintainer: Debian GNUstep maintainers <pkg-gnustep-maintainers@lists.alioth.debian.org>
+Uploaders: Yavor Doganov <yavor@gnu.org>
+Build-Depends: debhelper (>= 7),
+	       quilt,
+	       libgnustep-gui-dev,
+	       libvorbis-dev,
+	       imagemagick
+Standards-Version: 3.9.0
+Vcs-Arch: http://arch.debian.org/arch/pkg-gnustep/gnustep/poe-app--debian--1.0
+Homepage: http://www.eskimo.com/~pburns/Poe/
+
+Package: poe.app
+Architecture: any
+Depends: ${shlibs:Depends},
+	 ${misc:Depends},
+	 ${gnustep:Depends}
+Description: Vorbis comment editor
+ Poe is a vorbis comment editor for GNUstep. It tries to follow the
+ vorbis comment header specification closely, while being convenient
+ and flexible to use.
--- poe.app-0.5.1.orig/debian/copyright
+++ poe.app-0.5.1/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Gürkan Sengün <gurkan@linuks.mine.nu> on
+Thu, 12 Feb 2004 17:52:19 +0100.
+
+It was downloaded from http://www.eskimo.com/~pburns/Poe/
+
+Upstream Authors: Rob Burns <rburns@softhome.net>
+                  Chad Hardin <cehardin@mac.com> (Icon)
+		  Pierre-Yves Rivaille
+		  Michael Smith
+
+License:
+
+   Copyright (C) 2003-2005 Rob Burns
+
+   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.
+
+   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 St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- poe.app-0.5.1.orig/debian/changelog
+++ poe.app-0.5.1/debian/changelog
@@ -0,0 +1,104 @@
+poe.app (0.5.1-5) unstable; urgency=low
+
+  * debian/compat: Set to 7.
+  * debian/control (Section): Change to `gnustep'.
+    (Maintainer): Adopt for the GNUstep team (Closes: #450489).
+    (Uploaders): Add myself.
+    (Build-Depends): Require debhelper >= 7; remove minimal required
+    version for libgnustep-gui-dev.  Add quilt and imagemagick.  Drop
+    gnustep-make.
+    (Depends): Add ${misc:Depends} and ${gnustep:Depends}.
+    (Conflicts, Replaces): Remove; ancient.
+    (Description): Mention GNUstep.
+    (Standards-Version): Compliant with 3.9.0 as of this release.
+    (Vcs-Arch): New field.
+  * debian/rules: Export GNUSTEP_MAKEFILES and avoid gs_make.  Include
+    /usr/share/quilt/quilt.make and adjust rules for quilt.
+    (d_app, optim, LDFLAGS): New variables.
+    (build-stamp): Pass messages=yes, LDFLAGS and $(optim).  Convert the
+    icon in XPM format.
+    (clean-patched): Make only distclean.  Delete the generated icon.
+    (install): Replace dh_clean -k with dh_prep.  Remove dh_installdirs
+    invocation.  Install the XPM icon.
+    (binary-arch): Don't install the lintian override file.  Explicitly
+    install the manpage via dh_installman.  Move arch-independent
+    resources to /usr/share/GNUstep.
+  * debian/lintian-override:
+  * debian/dirs:
+  * debian/docs:
+  * debian/manpages: Delete.
+  * debian/source/format:
+  * debian/README.source:
+  * debian/watch:
+  * debian/preinst: New file.
+  * debian/patches/link-libs.patch: New; link against libogg, fixes FTBFS
+    with GNU gold (Closes: #556066).
+  * debian/patches/series: Create.
+  * debian/Poe.desktop: Make it valid, adjust some fields.
+  * debian/menu: Add longtitle and icon.
+  * debian/copyright: Add more copyright holders.
+
+ -- Yavor Doganov <yavor@gnu.org>  Thu, 01 Jul 2010 12:59:53 +0300
+
+poe.app (0.5.1-4) unstable; urgency=low
+
+  * QA upload.
+  * Maintainer field set to QA Group. 
+  * Bump standards version.
+
+ -- Emanuele Rocca <ema@debian.org>  Thu, 21 Aug 2008 16:27:28 +0200
+
+poe.app (0.5.1-3) unstable; urgency=low
+
+  * GNUstep transition.
+    + Updated debian/rules.
+  * Added a desktop file.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Fri, 26 Oct 2007 08:33:47 +0200
+
+poe.app (0.5.1-2) unstable; urgency=low
+
+  * Rebuild against latest libgnustep-gui-dev.
+  * Bump standards version.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Thu, 21 Sep 2006 20:55:58 +0200
+
+poe.app (0.5.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * Rebuild against latest libgnustep-gui.
+  * Update manual page.
+  * Bump standards version.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Tue, 31 Jan 2006 11:20:21 +0100
+
+poe.app (0.5-4) unstable; urgency=low
+
+  * Updated debian/control build-depends for GNUstep 0.9.4.
+  * Removed some old and unused stuff from debian/.
+  * Fixed debian/copyright.
+  * Renamed source package to poe.app.
+  * Updated manual page.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Sun, 21 Nov 2004 19:36:57 +0100
+
+poe (0.5-3) unstable; urgency=low
+
+  * Updated debian/{menu,control,rules} and the manual page
+  * Renamed binary package name to poe.app
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Mon, 26 Jul 2004 00:03:47 +0200
+
+poe (0.5-2) unstable; urgency=low
+
+  * Fixed GNUstep.sh paths in debian{poe.sh,rules}.
+  * Dropped ".app" from debian/menu.
+  * Added gnustep-make to build-depends in debian/control.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Thu,  1 Apr 2004 00:13:04 +0200
+
+poe (0.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Thu, 12 Feb 2004 17:52:19 +0100
--- poe.app-0.5.1.orig/debian/preinst
+++ poe.app-0.5.1/debian/preinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+# dpkg will not replace a real directory with a symlink.
+# FIXME: Remove during the squeeze+1 cycle.
+
+set -e
+set -u
+
+RESDIR=/usr/lib/GNUstep/Applications/Poe.app/Resources
+
+case "$1" in
+    install | upgrade)
+	if [ -d $RESDIR ] && [ ! -L $RESDIR ]; then
+	    rm -rf $RESDIR
+	fi
+    ;;
+    
+    abort-upgrade)
+    ;;
+
+    *)
+	echo "preinst called with unknown argument \`$1'" >&2
+	exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- poe.app-0.5.1.orig/debian/README.source
+++ poe.app-0.5.1/debian/README.source
@@ -0,0 +1,8 @@
+This package uses quilt (in a fairly standard/straightforward way) to
+manage all modifications to the upstream source.  Please see
+
+  /usr/share/doc/quilt/README.source and quilt(1)
+
+for further instructions.
+
+ -- Yavor Doganov <yavor@gnu.org>, Thu,  1 Jul 2010 13:01:27 +0300
--- poe.app-0.5.1.orig/debian/Poe.1
+++ poe.app-0.5.1/debian/Poe.1
@@ -0,0 +1,23 @@
+.TH POE 1 "February 12, 2004"
+.SH NAME
+Poe \- a vorbis comment editor
+.SH SYNOPSIS
+.B Poe
+.SH DESCRIPTION
+This manual page documents briefly the
+.B Poe
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fBPoe\fP is a vorbis comment editor. It tries to follow the vorbis comment
+header specification closely, while being convenient and flexible to use.
+Towards that end, it doesn't have a static 'form' style interface. Instead,
+it has an editable table of comments. The contents of the table change
+dependent upon preference settings, and what comments are in the ogg file you
+are editing.
+.SH SEE ALSO
+.BR GNUstep (7).
+.SH AUTHOR
+This manual page was written by G\[:u]rkan Seng\[:u]n <gurkan@linuks.mine.nu>,
+for the Debian project (but may be used by others).
--- poe.app-0.5.1.orig/debian/source/format
+++ poe.app-0.5.1/debian/source/format
@@ -0,0 +1 @@
+1.0
--- poe.app-0.5.1.orig/debian/patches/link-libs.patch
+++ poe.app-0.5.1/debian/patches/link-libs.patch
@@ -0,0 +1,15 @@
+2010-07-01  Yavor Doganov  <yavor@gnu.org>
+
+	* GNUmakefile (ADDITIONAL_GUI_LIBS): Add -logg.
+
+--- poe.app-0.5.1.orig/GNUmakefile
++++ poe.app-0.5.1/GNUmakefile
+@@ -30,7 +30,7 @@
+   $(NAME)_RESOURCE_FILES = Resources/Shared/* Resources/GNUstep/*
+ endif
+     
+-ADDITIONAL_GUI_LIBS += -lvorbis -lvorbisfile
++ADDITIONAL_GUI_LIBS += -lvorbis -lvorbisfile -logg
+ ADDITIONAL_OBJCFLAGS = -Wall
+ 
+ -include GNUmakefile.preamble
--- poe.app-0.5.1.orig/debian/patches/series
+++ poe.app-0.5.1/debian/patches/series
@@ -0,0 +1 @@
+link-libs.patch
