--- libmdsp-0.11.orig/debian/install
+++ libmdsp-0.11/debian/install
@@ -0,0 +1,2 @@
+libmetar.a usr/lib/
+metar.h usr/include/
--- libmdsp-0.11.orig/debian/changelog
+++ libmdsp-0.11/debian/changelog
@@ -0,0 +1,81 @@
+libmdsp (0.11-10) unstable; urgency=low
+
+ * Dropped debian/watch - the upstream website is gone
+ * Fixed typo in description (Closes: #571530)
+ * Standards-Version: 3.8.4
+
+ -- Tobias Grimm <etobi@debian.org> Fri, 05 Mar 2010 00:02:10 +0100
+
+libmdsp (0.11-9) unstable; urgency=low
+
+ * Standards-Version: 3.8.3
+ * COMPAT=5
+ * Taken from Ubuntu:
+ - Added ${misc:Depends}
+ - Added gcc-4.4 fix from Alfonso Cepeda Caballos
+ - Added Section field
+ - Added README.source
+
+ -- Tobias Grimm <etobi@debian.org> Mon, 26 Oct 2009 23:15:38 +0100
+
+libmdsp (0.11-8) unstable; urgency=low
+
+ * Bumped Standards-Version to 3.7.2
+ * Added note about the Debian Maintainers to debian/copyright
+
+ -- Thomas Schmidt <tschmidt@debian.org> Mon, 28 Aug 2006 23:21:31 +0200
+
+libmdsp (0.11-7) unstable; urgency=low
+
+ * Thomas Schmidt <tschmidt@debian.org>
+ - Changed my email-address to the debian one
+
+ -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Thu, 17 Mar 2005 20:05:02 +0100
+
+libmdsp (0.11-6) unstable; urgency=low
+
+ * Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+ - Use dpatch, so build-depend on dpatch
+ - Add 01_Makefile-fPIC-fix.dpatch
+
+ -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Tue, 7 Sep 2004 17:06:42 +0200
+
+libmdsp (0.11-5) unstable; urgency=low
+
+ * Tobias Grimm <tg@e-tobi.net>
+ - Added small explanation about METAR to package description
+ (closes: #266558)
+ * Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+ - Added debian/watch
+
+ -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Wed, 18 Aug 2004 19:00:00 +0200
+
+libmdsp (0.11-4) unstable; urgency=low
+
+ * First upload to the archive (closes: #262889)
+ * Tobias Grimm <tg@e-tobi.net>
+ - package taken over by Debian VDR Team from c't VDR
+ - using dh_install now
+ * Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+ - Added myself as Uploader
+
+ -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Sun, 01 Aug 2004 18:20:00 +0200
+
+libmdsp (0.11-3) unstable; urgency=low
+
+ * renamed the package to confirm with Debian policy
+
+ -- Tobias Grimm <tg@e-tobi.net> Sat, 17 Jan 2004 04:30:00 +0100
+
+mdsplib (0.11-2) unstable; urgency=low
+
+ * fixed download site of upstream source in debian/copyright
+
+ -- Tobias Grimm <tg@e-tobi.net> Wed, 7 Jan 2004 21:00:00 +0100
+
+mdsplib (0.11-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Tobias Grimm <tg@e-tobi.net> Tue, 9 Dec 2003 00:48:18 +0200
+
--- libmdsp-0.11.orig/debian/docs
+++ libmdsp-0.11/debian/docs
@@ -0,0 +1,2 @@
+README
+README.MDSP
--- libmdsp-0.11.orig/debian/rules
+++ libmdsp-0.11/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# include dpatch stuff
+include /usr/share/dpatch/dpatch.make
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+# shared library versions, option 1
+version=2.0.5
+major=2
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: patch-stamp build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+
+ touch build-stamp
+
+clean: clean-patched unpatch
+
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ rm -f libmetar.a
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+ # $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+ dh_install
+
+# 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_movefiles
+
+# dh_installdebconf
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+ dh_installcron
+ dh_installman
+ dh_installinfo
+# dh_undocumented
+ dh_installchangelogs HISTORY
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch configure
--- libmdsp-0.11.orig/debian/compat
+++ libmdsp-0.11/debian/compat
@@ -0,0 +1 @@
+5
--- libmdsp-0.11.orig/debian/README.source
+++ libmdsp-0.11/debian/README.source
@@ -0,0 +1,7 @@
+This package uses the dpatch system to save and apply patches to the
+upstream source code of the software that is packaged. For details
+about how to use dpatch read
+
+ /usr/share/doc/dpatch/README.source.gz
+
+from the dpatch package.
--- libmdsp-0.11.orig/debian/copyright
+++ libmdsp-0.11/debian/copyright
@@ -0,0 +1,19 @@
+This package was debianized by Tobias Grimm <tg@e-tobi.net> on
+Tue, 9 Dec 2003 00:48:18 +0200.
+
+It was downloaded from http://limulus.net/mdsplib/
+
+Upstream Author: Eric McCarthy <eric@limulus.net>
+
+Debian Maintainers:
+ Tobias Grimm <tg@e-tobi.net>
+ Thomas Schmidt <tschmidt@debian.org>
+
+Copyright:
+
+ Copyright (C) 2003 Eric McCarthy
+
+License:
+
+It may be redistributed under the terms of the GNU LGPL
+found on Debian systems in the file /usr/share/common-licenses/LGPL .
--- libmdsp-0.11.orig/debian/control
+++ libmdsp-0.11/debian/control
@@ -0,0 +1,18 @@
+Source: libmdsp
+Priority: optional
+Section: devel
+Maintainer: Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org>
+Uploaders: Tobias Grimm <etobi@debian.org>, Thomas Schmidt <tschmidt@debian.org>
+Build-Depends: debhelper (>= 5), dpatch
+Standards-Version: 3.8.4
+
+Package: libmdsp-dev
+Section: devel
+Architecture: any
+Depends: ${misc:Depends}
+Description: METAR Decoder Software Package Library development files
+ METAR (Meteorological Aviation Routine Weather Report) is the standard format
+ for reporting meterological conditions. The MDSP Library provides a programmer
+ with functions to decode and print METAR data.
+ .
+ This is a static only library!
--- libmdsp-0.11.orig/debian/patches/01_Makefile-fPIC-fix.dpatch
+++ libmdsp-0.11/debian/patches/01_Makefile-fPIC-fix.dpatch
@@ -0,0 +1,35 @@
+#! /bin/sh -e
+## 01_Makefile-fPIC-fix.dpatch by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Adds -fPIC to CFLAGS in the Makefile
+
+if [ $# -lt 1 ]; then
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+ -patch) patch -p1 ${patch_opts} < $0;;
+ -unpatch) patch -R -p1 ${patch_opts} < $0;;
+ *)
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+diff -urNad /home/chelli/vdr/cvs/other/libmdsp/Makefile libmdsp/Makefile
+--- /home/chelli/vdr/cvs/other/libmdsp/Makefile 2003-12-10 20:56:23.000000000 +0100
++++ libmdsp/Makefile 2004-09-07 17:10:30.000000000 +0200
+@@ -1,5 +1,5 @@
+ CC = gcc
+-CFLAGS = -O3
++CFLAGS = -fPIC -O3
+ LIBS =
+
+ library: libmetar.a
--- libmdsp-0.11.orig/debian/patches/00list
+++ libmdsp-0.11/debian/patches/00list
@@ -0,0 +1,2 @@
+01_Makefile-fPIC-fix
+02_strndup-fix
--- libmdsp-0.11.orig/debian/patches/02_strndup-fix.dpatch
+++ libmdsp-0.11/debian/patches/02_strndup-fix.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_strndup-fix.dpatch by Alfonso Cepeda Caballos <cepeda@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad libmdsp-0.11~/src/local.h libmdsp-0.11/src/local.h
+--- libmdsp-0.11~/src/local.h 2003-12-10 22:30:56.000000000 +0100
++++ libmdsp-0.11/src/local.h 2009-09-20 11:18:38.000000000 +0200
+@@ -1175,7 +1175,7 @@
+ char *strupr(char *);
+ char *strlwr(char *);
+ /* char *strdup(char *); */
+-char *strndup(char *, int);
++/* char *strndup(char *, int); */
+ int strcmpi(char *, char *);
+
+ /* void *memccpy(void *, void *, int, unsigned); */