diff -Nru gramophone2-0.8.13a/debian/changelog gramophone2-0.8.13a/debian/changelog --- gramophone2-0.8.13a/debian/changelog 2012-08-14 22:17:02.000000000 +0100 +++ gramophone2-0.8.13a/debian/changelog 2013-05-28 21:13:08.000000000 +0100 @@ -1,3 +1,9 @@ +gramophone2 (0.8.13a-2ubuntu1) saucy; urgency=low + + * Makefile: Fix linking with --as-needed. + + -- Alessandro Losavio Tue, 28 May 2013 21:11:59 +0100 + gramophone2 (0.8.13a-2) unstable; urgency=low * debian/watch: fixed. (Closes: #673379) diff -Nru gramophone2-0.8.13a/debian/control gramophone2-0.8.13a/debian/control --- gramophone2-0.8.13a/debian/control 2012-08-14 22:17:02.000000000 +0100 +++ gramophone2-0.8.13a/debian/control 2013-05-28 21:06:05.000000000 +0100 @@ -1,7 +1,8 @@ Source: gramophone2 Section: sound Priority: optional -Maintainer: Francesco Namuri +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Francesco Namuri Build-Depends: debhelper (>= 5), cdbs, bison, flex, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.3 Homepage: http://gramophone2.sourceforge.net/ diff -Nru gramophone2-0.8.13a/debian/patches/fix-ftbfs-makefile.patch gramophone2-0.8.13a/debian/patches/fix-ftbfs-makefile.patch --- gramophone2-0.8.13a/debian/patches/fix-ftbfs-makefile.patch 1970-01-01 01:00:00.000000000 +0100 +++ gramophone2-0.8.13a/debian/patches/fix-ftbfs-makefile.patch 2013-05-28 21:11:49.000000000 +0100 @@ -0,0 +1,52 @@ +Description: fix ftbfs in makefile for ubuntu + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + gramophone2 (0.8.13a-2) unstable; urgency=low + . + * debian/watch: fixed. (Closes: #673379) + * Switch to dpkg-source 3.0 (quilt) format + * debian/control: added dep on dpkg-dev (>= 1.16.1~) + * added makefile.patch to corectly handle LDFLAGS on Makefile. + * added typoCorrection.patch to fix a typo on source file. +Author: Francesco Namuri +Bug-Debian: http://bugs.debian.org/673379 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- gramophone2-0.8.13a.orig/Makefile ++++ gramophone2-0.8.13a/Makefile +@@ -1,15 +1,15 @@ + CC=gcc +-#CFLAGS+=-O2 ++CFLAGS+=-O2 + #Decomment this line if you use Linux: +-CFLAGS+=-O2 -lm ++LIBS=-lm + + DESTDIR=/usr/local + + default: GRAMophone.tab.c +- $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o gramophone2 GRAMophone.c\ ++ $(CC) $(CFLAGS) -o gramophone2 GRAMophone.c\ + grammyVM.c init.c midicode.c\ + midifile.c expcode.c debug.c errors.c\ +- hash.c GRAMophone.tab.c ++ hash.c GRAMophone.tab.c $(LIBS) + + GRAMophone.tab.c: lex.yy.c + bison -d GRAMophone.y diff -Nru gramophone2-0.8.13a/debian/patches/series gramophone2-0.8.13a/debian/patches/series --- gramophone2-0.8.13a/debian/patches/series 2012-08-14 22:17:02.000000000 +0100 +++ gramophone2-0.8.13a/debian/patches/series 2013-05-28 21:08:08.000000000 +0100 @@ -1,2 +1,3 @@ typoCorrection.patch makefile.patch +fix-ftbfs-makefile.patch