--- gnomeradio-1.8.orig/debian/docs
+++ gnomeradio-1.8/debian/docs
@@ -0,0 +1,3 @@
+README
+README.lirc
+README.recording
--- gnomeradio-1.8.orig/debian/rules
+++ gnomeradio-1.8/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/gnome.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+DEB_CONFIGURE_EXTRA_FLAGS := --disable-scrollkeeper
+DEB_INSTALL_MANPAGES_gnomeradio := debian/gnomeradio.1
+
+SAVERESTORE := \
+	data/gnomeradio.desktop \
+	data/gnomeradio.schemas \
+	gnome-doc-utils.make \
+	gnomeradio.spec \
+	help/sv/gnomeradio.xml
+
+update-config::
+	for f in $(SAVERESTORE) ; do [ -e $$f.d-r-orig ] || cp -p -r $$f $$f.d-r-orig ; done
+
+clean::
+	for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done
+
+cleanbuilddir/gnomeradio::
+	rm -f debian/gnomeradio.1
+	rm -f gnomeradio.xpm
+
+makebuilddir/gnomeradio::
+	/usr/bin/docbook-to-man debian/gnomeradio.sgml > debian/gnomeradio.1
+
+build/gnomeradio::
+	convert -resize 32x32 data/icons/32x32/gnomeradio.png gnomeradio.xpm
--- gnomeradio-1.8.orig/debian/watch
+++ gnomeradio-1.8/debian/watch
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://www.wh-hms.uni-ulm.de/~mfcn/gnomeradio/packages/gnomeradio-(.*)\.tar\.gz
--- gnomeradio-1.8.orig/debian/copyright
+++ gnomeradio-1.8/debian/copyright
@@ -0,0 +1,134 @@
+This package was debianized by Moritz Breit <mail@mobr.de> on
+Sun, 31 Jul 2005 16:08:57 +0200.
+
+It was downloaded from http://www.wh-hms.uni-ulm.de/~mfcn/gnomeradio/
+
+Upstream Author: Jörgen Scheibengruber <mfcn@gmx.de>
+
+Copyright (C) 2001,2006 Jörgen Scheibengruber <mfcn@gmx.de>
+Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+Copyright (C) 1996-2005 Free Software Foundation.
+Copyright (C) 1994 X Consortium
+Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
+Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
+Copyright (C) 2000, 2001 Eazel, Inc
+Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
+Copyright (C) 2005 Miloslav Trmac <mitr@volny.cz>
+Copyright (C) 2004-2005 Adam Weinberger and the GNOME Foundation
+Copyright (C) Croatiann team
+Copyright (C) 2002-2006 Gnome i18n Project for Vietnamese.
+
+License:
+
+   Gnomeradio 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.
+
+   Gnomeradio 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.
+
+Some parts of the program are under the GNU General Public License,
+on Debian systems, the complete text of the GNU General Public
+License, can be found in /usr/share/common-licenses/GPL.
+
+The Debian packaging is
+Copyright (C) 2005 Sebastien Bacher <seb128@canonical.com>
+Copyright (C) 2005, 2006 Moritz Breit <mail@mobr.de>
+Copyright (C) 2007 Francesco Namuri <francesco@namuri.it>
+and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+The file intltool-merge.in:
+
+#  Copyright (C) 2000, 2003 Free Software Foundation.
+#  Copyright (C) 2000, 2001 Eazel, Inc
+#
+#  Intltool is free software; you can redistribute it and/or
+#  modify it under the terms of the GNU General Public License
+#  version 2 published by the Free Software Foundation.
+#
+#  Intltool 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 program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+#  MA 02110-1301 USA.
+#
+#  As a special exception to the GNU General Public License, if you
+#  distribute this file as part of a program that contains a
+#  configuration script generated by Autoconf, you may include it under
+#  the same distribution terms that you use for the rest of that program.
+#
+#  Authors:  Maciej Stachowiak <mjs@noisehavoc.org>
+#            Kenneth Christiansen <kenneth@gnu.org>
+#            Darin Adler <darin@bentspoon.com>
+
+The File intltool-update.in:
+
+#  Copyright (C) 2000-2003 Free Software Foundation.
+#
+#  Intltool is free software; you can redistribute it and/or
+#  modify it under the terms of the GNU General Public License
+#  version 2 published by the Free Software Foundation.
+#
+#  Intltool 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 program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+#  MA 02110-1301 USA.
+#
+#  As a special exception to the GNU General Public License, if you
+#  distribute this file as part of a program that contains a
+#  configuration script generated by Autoconf, you may include it under
+#  the same distribution terms that you use for the rest of that program.
+#
+#  Authors: Kenneth Christiansen <kenneth@gnu.org>
+#           Maciej Stachowiak
+#           Darin Adler <darin@bentspoon.com>
+
+Some files in help/* are licensed under the terms of
+the GNU Free Documentation License:
+
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License (GFDL), Version 1.1 or any later version published
+ by the Free Software Foundation with no Invariant Sections,
+ no Front-Cover Texts, and no Back-Cover Texts.
+
+On Debian systems, the complete text of the GNU Free Documentation 
+License, can be found in /usr/share/common-licenses/GFDL
+
+The files src/eggtrayicon.c and src/eggtrayicon.h:
+
+* Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
+*
+* 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, 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 Lesser General Public
+License, can be found in /usr/share/common-licenses/LGPL
--- gnomeradio-1.8.orig/debian/changelog
+++ gnomeradio-1.8/debian/changelog
@@ -0,0 +1,111 @@
+gnomeradio (1.8-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/patches/: removed useless GLib_threading, trayicon.c,
+    fix_missing_description_in_gnomeradio.xml, prefs.c patches; now they
+    are implemented by the author.
+  * debian/control: Standards-Version updated to 3.8.0, no changes needed.
+
+ -- Francesco Namuri <francesco@namuri.it>  Wed, 12 Nov 2008 19:10:25 +0100
+
+gnomeradio (1.7-6) unstable; urgency=low
+
+  * debian/changelog: sync with the one from ubuntu.
+  * debian/patches/prefs.c.patch: fixed. In 1.7-6 I've uploaded a wrong
+    version of the patch, now it's the right one that Cesare Tirabassi
+    has included in the ubuntu's package. (Closes: #468796, #462891)
+
+ -- Francesco Namuri <francesco@namuri.it>  Mon, 12 May 2008 00:36:27 +0200
+
+gnomeradio (1.7-5ubuntu1) intrepid; urgency=low
+
+  * modified debian/patches/prefs.c.patch so that assertion is not
+    failed too. (LP: #197257)
+    Patch from http://bugzilla.gnome.org/attachment.cgi?id=104558
+    by Francesco Namuri.
+  * Modify Maintainer value to match the DebianMaintainerField
+    specification.
+
+ -- Cesare Tirabassi <norsetto@ubuntu.com>  Sat, 03 May 2008 21:33:27 +0200
+
+gnomeradio (1.7-5) unstable; urgency=low
+
+  * added debian/patches/prefs.c.patch to avoid crashes when modifies a preset
+    label. (Closes: #462891)
+  * debian/control: updated to starndards-version 3.7.3.
+  * debian/control: moved project homepage field from description to the
+    correct location.
+
+ -- Francesco Namuri <francesco@namuri.it>  Tue, 05 Feb 2008 22:44:34 +0100
+
+gnomeradio (1.7-4) unstable; urgency=low
+
+  * debian/menu: some style fixes.
+  * debian/patches/fix_missing_description_in_gnomeradio.xml.patch: fixed
+    wrong application entity. (Closes: #445892)
+
+ -- Francesco Namuri <francesco@namuri.it>  Tue, 09 Oct 2007 11:35:03 +0200
+
+gnomeradio (1.7-3) unstable; urgency=low
+
+  * added debian/patches/GLib_threading.patch to fix: GStreamer-WARNING:
+    GLib threading system has not been initialised yet (Closes: #444119)
+  * added debian/patches/gnomeradio.desktop.patch to fix invalid category in
+    desktop file.
+  * debian/menu: updated to fit with new hierarchy.
+  * debian/control: added build-dep on patchutils, fixed typo.
+
+ -- Francesco Namuri <francesco@namuri.it>  Sun, 07 Oct 2007 19:44:40 +0200
+
+gnomeradio (1.7-2) unstable; urgency=low
+
+  * added debian/patches/trayicon.c.patch to fix: egg_tray_icon_new() 
+    implicitly converted to pointer (Closes: #433235)
+
+ -- Francesco Namuri <francesco@namuri.it>  Mon, 16 Jul 2007 00:45:44 +0200
+
+gnomeradio (1.7-1) unstable; urgency=low
+
+  * Initial release. (Closes: #422553: ITP: gnomeradio -- FM-radio tuner
+    for the GNOME desktop - Debian Bug report logs)
+  * debian/control: changed Standards-Version to 3.7.2
+  * debian/control: added build-dep on libgnome-media-dev,
+    libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, gnome-doc-utils,
+    imagemagick
+  * debian/control: updated build-depends on debhelper (>= 5)
+  * debian/compat: changed to 5
+  * removed debian/patches/radio-device-file.patch
+  * added debian/patches/fix_missing_description_in_gnomeradio.xml.patch to
+    fix missing description in help/C/gnomeradio.xml
+  * debian/copyright: added some copyright/license informations
+  * added debian menu entry
+  * debian/rules: added --disable-scrollkeeper to configure flags to avoid
+    inclusion of scroolkeeper XML files in /var/lib/scrollpkeeper in the deb,
+    added a rule to convert icon from png to xpm
+  * added debian/gnomeradio.install to install xpm icon
+  * added debian/watch
+
+ -- Francesco Namuri <francesco@namuri.it>  Mon, 07 May 2007 00:27:11 +0200
+
+gnomeradio (1.6-0ubuntu3) dapper; urgency=low
+
+  * Added homepage url to the description in debian/control
+  * Added debian/patches/radio-device-file.patch:
+    change default location of the radio device file from
+    /dev/radio to /dev/radio0
+  * Changed debian/rules to include simple patchsys
+
+ -- Moritz Breit <mail@mobr.de>  Wed, 18 Jan 2006 17:21:34 +0100
+
+gnomeradio (1.6-0ubuntu2) breezy; urgency=low
+
+  * Rebuild with the new cairo version
+
+ -- Sebastien Bacher <seb128@canonical.com>  Thu, 18 Aug 2005 17:19:18 +0000
+
+gnomeradio (1.6-0ubuntu1) breezy; urgency=low
+
+  * Initial release
+
+ -- Moritz Breit <mail@mobr.de>  Sun, 31 Jul 2005 16:08:57 +0200
+
--- gnomeradio-1.8.orig/debian/control
+++ gnomeradio-1.8/debian/control
@@ -0,0 +1,16 @@
+Source: gnomeradio
+Section: sound
+Priority: optional
+Maintainer: Francesco Namuri <francesco@namuri.it>
+Build-Depends: debhelper (>= 5), libgnome2-dev, liblircclient-dev, cdbs, libxml-sax-expat-perl, libgnomeui-dev, scrollkeeper, docbook-to-man, libgnome-media-dev, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, gnome-doc-utils, imagemagick, patchutils
+Standards-Version: 3.8.0
+Homepage: http://www.wh-hms.uni-ulm.de/~mfcn/gnomeradio
+
+Package: gnomeradio
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: FM-radio tuner for the GNOME desktop
+ Gnomeradio is a FM-radio tuner for the GNOME desktop (version 1 and 2).
+ It should work with every FM tuner card that is supported by video4linux.
+ Remote controls are supported via (optional) LIRC-support.
+ Gnomeradio can also record radio as a Wave, MP3 or Ogg files.
--- gnomeradio-1.8.orig/debian/gnomeradio.sgml
+++ gnomeradio-1.8/debian/gnomeradio.sgml
@@ -0,0 +1,123 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Moritz</firstname>">
+  <!ENTITY dhsurname   "<surname>Breit</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>2005-08-03</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>mail@mobr.de</email>">
+  <!ENTITY dhusername  "Moritz Breit">
+  <!ENTITY dhucpackage "<refentrytitle>GNOMERADIO</refentrytitle>">
+  <!ENTITY dhpackage   "gnomeradio">
+
+  <!ENTITY debian      "<productname>Ubuntu</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2005</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>FM-radio tuner for the GNOME desktop</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>--help</option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      
+    <para><command>&dhpackage;</command> is a FM-radio tuner for
+     the GNOME desktop (version 1 and 2).
+     It should work with every FM tuner card that is supported by
+     video4linux.
+     Remote controls are supported via (optional) LIRC-support.
+     Gnomeradio can also record radio as a Wave, MP3 or Ogg files.
+    </para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-'). 
+      It has only the standard gtk command line parameters which
+      the help option will show you.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-?</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
--- gnomeradio-1.8.orig/debian/menu
+++ gnomeradio-1.8/debian/menu
@@ -0,0 +1,3 @@
+?package(gnomeradio):needs="X11" section="Applications/Sound"\
+  icon="gnomeradio.xpm" title="Gnomeradio"\
+  longtitle="Gnomeradio FM-Radio tuner for the GNOME desktop" command="/usr/bin/gnomeradio"
--- gnomeradio-1.8.orig/debian/compat
+++ gnomeradio-1.8/debian/compat
@@ -0,0 +1 @@
+5
--- gnomeradio-1.8.orig/debian/gnomeradio.install
+++ gnomeradio-1.8/debian/gnomeradio.install
@@ -0,0 +1 @@
+gnomeradio.xpm usr/share/pixmaps/
--- gnomeradio-1.8.orig/debian/patches/gnomeradio.desktop.patch
+++ gnomeradio-1.8/debian/patches/gnomeradio.desktop.patch
@@ -0,0 +1,12 @@
+diff -Nur trunk/data/gnomeradio.desktop.in trunk.new/data/gnomeradio.desktop.in
+--- trunk/data/gnomeradio.desktop.in	2006-11-25 13:06:06.000000000 +0100
++++ trunk.new/data/gnomeradio.desktop.in	2007-10-07 19:14:06.000000000 +0200
+@@ -3,7 +3,7 @@
+ _Comment=Listen to FM-radio
+ Exec=gnomeradio
+ Icon=gnomeradio
+-Categories=Application;AudioVideo;
++Categories=AudioVideo;Audio;Tuner
+ StartupNotify=true
+ Terminal=false
+ Type=Application
