--- flac-1.2.1.orig/debian/rules
+++ flac-1.2.1/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+# debian/rules for flac
+
+include /usr/share/dpatch/dpatch.make
+
+top_srcdir:=$(shell pwd)
+tmp:=debian/tmp
+tmp_absolute:=$(top_srcdir)/$(tmp)
+
+DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+ifeq ($(DEB_HOST_ARCH),m68k)
+CFLAGS += -fno-inline-functions
+endif
+
+CONFIGURE_ARGS = --build=$(DEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+CONFIGURE_ARGS += --host=$(DEB_HOST_GNU_TYPE)
+endif
+
+configure: patch configure-stamp
+configure-stamp: patch-stamp
+ dh_testdir
+
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp -f /usr/share/misc/config.guess .
+endif
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp -f /usr/share/misc/config.sub .
+endif
+
+ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" ./configure $(CONFIGURE_ARGS) \
+ --prefix=/usr --mandir=/usr/share/man --disable-rpath \
+ --disable-xmms-plugin \
+ --disable-asm-optimizations
+ sh debian/fixrpath
+ touch $@
+
+build: patch configure-stamp build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) DESTDIR=$(tmp_absolute) install
+
+ dh_install --sourcedir=$(tmp)
+
+ mv debian/libflac-doc/usr/share/doc/flac-1.2.1 \
+ debian/libflac-doc/usr/share/doc/libflac-doc
+
+binary-indep: build install
+ dh_testdir -i
+ dh_testroot -i
+ dh_installdocs -i
+ dh_installchangelogs -i
+ dh_compress -i -X.html
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdebconf -a
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_makeshlibs -plibflac8 -V "libflac8 (>= 1.2.1)"
+ dh_makeshlibs -plibflac++6 -V "libflac++6 (>= 1.2.1)"
+ dh_link -a
+ dh_installdeb -a
+ dh_shlibdeps -a -ldebian/libflac8/usr/lib:debian/libflac++6/usr/lib
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- flac-1.2.1.orig/debian/fixrpath
+++ flac-1.2.1/debian/fixrpath
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $Id: fixrpath,v 1.1 2004/05/27 10:48:25 kobras Exp $
+# libtool -rpath workaround based on a suggestion by Yann Dirson
+# <dirson@debian.org>
+#
+# It is supposed to be inserted in configure.in, but I didn't want
+# to re-run autoconf (since that bloats the Debian diff unnecessarily),
+# so I just patch libtool after running configure. -- Richard Braakman
+# <dark@xs4all.nl>
+#
+# The version of libtool included with LessTif unfortunately insists on
+# linking with -rpath, i.e. hardwiring locations. This is not desirable.
+#
+# The dummy define is improbable enough not to conflict with anything; it is
+# just here to fool libtool by making it believe it gave some useful info to
+# gcc.
+#
+# This will also patch the generated libtool to explicitly
+# link libraries against the libraries they depend on. (particularly libc)
+
+for i in libtool libtool-disable-static; do
+sed < $i > $i-2 \
+ -e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
+ -e '/^archive_cmds="/s/"$/ \$deplibs"/'
+mv $i-2 $i
+chmod 755 $i
+done
+
--- flac-1.2.1.orig/debian/libflac++-dev.install
+++ flac-1.2.1/debian/libflac++-dev.install
@@ -0,0 +1,6 @@
+usr/lib/libFLAC++.a
+usr/lib/libFLAC++.so
+usr/lib/libFLAC++.la
+usr/lib/pkgconfig/flac++.pc
+usr/include/FLAC++
+usr/share/aclocal/libFLAC++.m4
--- flac-1.2.1.orig/debian/watch
+++ flac-1.2.1/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/flac/flac-([0-9\.]*)\.tar\.gz
--- flac-1.2.1.orig/debian/libflac-doc.doc-base.ru
+++ flac-1.2.1/debian/libflac-doc.doc-base.ru
@@ -0,0 +1,15 @@
+Document: libflac-doc-ru
+Title: FLAC Project Documentation (Russian)
+Author: Josh Coalson
+Abstract: This is the HTML version of the FLAC documentation,
+ which is more or less a mirror of the FLAC homepage. It provides instructions
+ for using the command-line flac and metaflac programs, descriptions of the
+ internal format of FLAC files, the goals of the FLAC project, Frequently Asked
+ Questions about FLAC, useful information for FLAC developers, and links to
+ other applications with FLAC support. This particular version is in Russian,
+ and it has only been updated to reflect changes since FLAC version 1.1.0.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/libflac-doc/html/ru/index.html
+Files: /usr/share/doc/libflac-doc/html/ru/*.html
--- flac-1.2.1.orig/debian/changelog
+++ flac-1.2.1/debian/changelog
@@ -0,0 +1,566 @@
+flac (1.2.1-2) unstable; urgency=high
+
+ * New maintainer (Closes: #539565).
+ * Acknowledge NMUs (Closes: #456726, #455304, #525826, #525829).
+ * Urgency high, because of fixed RC bugs.
+
+ * Set Maintainer to Debian multimedia packages maintainers and added
+ myself to Uploaders.
+ * Wrapped and sorted Build-Depends.
+ * Added ${misc:Depends} to all packages and wrapped Depends fields.
+ * Bumped debhelper compat to 7.
+ * Removed versioned dependency on g++ and libid3-3.8.3-dev, the
+ required versions are already in oldstable.
+ * Bumped Standards-Version to 3.8.2.
+ * Removed Conflicts and Replaces against packages that aren't even in
+ oldstable anymore.
+ * Point to versioned license file (GPL-2).
+ * Use dh_prep instead of dh_clean -k.
+ * Update config.sub and config.guess in the configure rule and remove
+ them in the clean target.
+ * Fixed doc-base-uses-applications-section.
+ * debian/patches/09_noexec-stack.dpatch: New patch to indicate that
+ libFLAC.so doesn't need an executable stack (Closes: #467544),
+ Thanks Russell Coker <russell@coker.com.au>.
+ * Added shlibs information for libflac8 and libflac++6 (Closes:
+ #481428, #508293).
+ * Fixed binary-control-field-duplicates-source.
+ * Added patch description to debian/patches/02_doc_path.dpatch.
+ * Added patch description to debian/patches/08_gcc-4.3_fixes.dpatch.
+ * Regenerate manpages at compile time: Add docbook-to-man to Build-
+ Depends, change debian/patches/02_doc_path.dpatch to modify
+ man/flac.sgml, stop touching man/flac.1 in debian/rules and remove
+ the manpages in the clean target.
+
+ -- Fabian Greffrath <fabian@debian-unofficial.org> Tue, 04 Aug 2009 08:54:15 +0200
+
+flac (1.2.1-1.3) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * Disable use of asembler optimizations. (closes: #525826)
+ * Provide proper architecture information to build system. (closes: #525829)
+
+ -- Bastian Blank <waldi@debian.org> Mon, 27 Apr 2009 13:09:23 +0000
+
+flac (1.2.1-1.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix gcc-4.3 FTBFS, patch by KiBi (Closes: #455304)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 16 Mar 2008 18:02:56 +0100
+
+flac (1.2.1-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Drop xmms-flac as xmms is being dropped (Closes: #456726).
+
+ -- Luk Claes <luk@debian.org> Mon, 21 Jan 2008 18:23:12 +0000
+
+flac (1.2.1-1) unstable; urgency=low
+
+ * New upstream release. closes: #434701
+ * Updated the versioned build-dependency on nasm. closes: #439277
+ * Patch work:
+ - (REMOVED) 01_ldpath_fix.dpatch: fixed upstream
+
+ -- Joshua Kwan <joshk@triplehelix.org> Mon, 24 Sep 2007 10:48:12 -0700
+
+flac (1.1.4-3) unstable; urgency=low
+
+ * The "It's Never Too Late to Mend" release.
+ * Finally, since liboggflac and libflac have been merged, make libflac-dev
+ depend on libogg-dev. closes: #427742
+
+ -- Joshua Kwan <joshk@triplehelix.org> Wed, 06 Jun 2007 08:32:47 -0700
+
+flac (1.1.4-2) unstable; urgency=low
+
+ * Provide flac.pc and flac++.pc. closes: #427651
+ * Fix typo in libFLAC.m4 that messes up LD_LIBRARY_PATH by mistake if it's
+ previously set. closes: #427473
+ * Correct path to documentation. closes: #413411
+ * Updated ${Source-Version} usage to ${binary:Version} all around.
+
+ -- Joshua Kwan <joshk@triplehelix.org> Wed, 06 Jun 2007 01:09:18 -0700
+
+flac (1.1.4-1) unstable; urgency=low
+
+ * New upstream release. closes: #405167, #411311
+ - libOggFLAC and libOggFLAC++ have been merged into libFLAC, so
+ remove their corresponding packages.
+ - Because of the API changes required to effect the above, there has
+ been yet another soname bump. libflac7 -> libflac8 and
+ libflac++5 -> libflac++6. Emails have been dispatched to the
+ maintainers of dependent packages.
+ * Some notes on patches that were removed:
+ - 02_stdin_stdout, 06_manpage_mention_utf8_convert: merged upstream
+ - 08_manpage_warnings: Upstream has changed the manpage so it defintely
+ can't fit in in 80 cols, so just forget about it. We'll live.
+ - 05_eof_warnings_are_errors: Upstream decided to add a -w option to
+ flac to treat all warnings as errors. I am going to defer to that
+ for now, but if people think it's stupid let me know and I'll port
+ the patch forward.
+ - 04_stack_smasher: was a backport from 1.1.3, so it's obsolete.
+
+ -- Joshua Kwan <joshk@triplehelix.org> Tue, 29 May 2007 22:56:36 -0700
+
+flac (1.1.2-6) unstable; urgency=high
+
+ * Update 04_stack_smasher.dpatch, a more complete fix backported from
+ 1.1.3. This should fix the XMMS crash issue, thanks Jan Luebbe.
+ closes: #401774
+
+ -- Joshua Kwan <joshk@triplehelix.org> Fri, 12 Jan 2007 01:12:14 -0800
+
+flac (1.1.2-5) unstable; urgency=low
+
+ * Add description for --no-utf8-convert option in metaflac.1.
+ closes: #345785
+ * Don't exit 0 when a wrong option to flac is entered. closes: #329979
+
+ -- Joshua Kwan <joshk@triplehelix.org> Sat, 27 May 2006 23:07:10 -0600
+
+flac (1.1.2-4) unstable; urgency=low
+
+ * Acknowledge NMU, now that it's snugly in testing. closes: #340960
+ * Fix the watch file.
+ * Make symlinks for /usr/lib/bmp in xmms-flac to 'provide' bmp-flac,
+ since input plugins between the two players are interchangeable.
+ closes: #327108, #356788
+ * Bump Standards-Version.
+ * Fix a goof in the rules that prevented ldconfig from happening in the
+ postinst of all the library packages.
+
+ -- Joshua Kwan <joshk@triplehelix.org> Tue, 23 May 2006 21:17:41 -0700
+
+flac (1.1.2-3.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Turn EOF warnings into errors (Closes: #340960).
+
+ -- Luk Claes <luk@debian.org> Tue, 28 Feb 2006 23:28:02 +0100
+
+flac (1.1.2-3) unstable; urgency=medium
+
+ * Brown paper bag release.
+ * Patch work:
+ - 03_cosmetic_flac_stats.dpatch: It actually did mess with some features.
+ Add *one* conditional to fix the bug. Thanks Rodney Gordon II
+ <meff@pobox.com> for helping debug. closes: #325078
+
+ -- Joshua Kwan <joshk@triplehelix.org> Sat, 27 Aug 2005 00:09:06 -0700
+
+flac (1.1.2-2) unstable; urgency=medium
+
+ * The "GO BEARS" release
+ * Patch work:
+ - 04_stack_smasher.dpatch: Fix a really dumb stack smasher that's been
+ fixed in CVS for several months but a maintenance release hasn't been
+ made for. closes: #324783
+
+ -- Joshua Kwan <joshk@triplehelix.org> Wed, 24 Aug 2005 00:20:17 -0700
+
+flac (1.1.2-1) unstable; urgency=low
+
+ * New maintainer.
+ * Acknowledge NMU, thanks Steve; closes: #319235
+ * New upstream release, closes: #297331
+ * Clean up all the Conflicts/Replaces that no longer apply at all.
+ * Remove dependencies on debconf.
+ * Move documentation to new package libflac-doc, closes: #212645, #289737
+ * Tighten libid3-3.8.3-dev dependencies because of C++ transition. Just
+ in case.
+ * SONAMEs once again changed upstream, rebuild your packages!
+ By virtue of being a SONAME change, this upload invalidates and thus
+ closes: #301037, #297964, #298035
+ - libflac6 -> libflac7
+ - liboggflac1 -> liboggflac3
+ - libflac++4c2 -> libflac++5
+ - liboggflac++0c2 -> liboggflac++2
+ * Patch work (now using dpatch):
+ - 01_relibtoolize.dpatch: Autotools Suck.
+ - 02_stdin_stdout.dpatch: Fix a reference in documentation to 'stdin' that
+ really means 'stdout', thanks dann frazier. closes: #207084
+ - 03_cosmetic_flac_stats.dpatch: Fix progress display with long filenames
+ (Not intensively tested, but never fear: no actual features were harmed
+ in the development of this bugfix.) closes: #138828
+ * Bump Standards-Version to 3.6.2, no changes necessary.
+ * Bump debhelper compatibility level to 4 and use debian/compat instead
+ of DH_COMPAT.
+ * Amend the description of flac to mention metaflac as well as flac.
+
+ -- Joshua Kwan <joshk@triplehelix.org> Thu, 18 Aug 2005 02:53:09 -0700
+
+flac (1.1.1-5) unstable; urgency=low
+
+ * libflac++4 Conflicts: libflac++2c102 (= 1.1.1-1) for the same reasons
+ as in 1.1.1-3 (Closes: #290353)
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 14 Jan 2005 09:37:44 -0800
+
+flac (1.1.1-4) unstable; urgency=low
+
+ * Re-libtoolize to fix various build weirdnesses and a broken xmms-flac
+ on amd64 (Closes: #289243)
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 8 Jan 2005 15:08:22 -0800
+
+flac (1.1.1-3) unstable; urgency=low
+
+ * libflac6 conflicts with the broken version of libflac4 (Closes: #289077)
+ * Disable asm optimizations on powerpc, fixing FTBFS (Closes: #289130)
+ - Apply patch from Eric Wong to fix compilation when asm
+ optimizations are disabled
+ * Update to new package names in argument to dh_shlibdeps -l
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 6 Jan 2005 20:23:08 -0800
+
+flac (1.1.1-2) unstable; urgency=low
+
+ * Fix -dev dependencies for soname transition (oops)
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 5 Jan 2005 10:13:34 -0800
+
+flac (1.1.1-1) unstable; urgency=low
+
+ * New upstream release (Closes: #275324)
+ - Merges all of our patches to common code
+ - Fixes handling of long filenames (Closes: #213172)
+ - Properly quotes AM_PATH_LIBFLAC (Closes: #254127)
+ - Uses a much newer version of autotools (Closes: #263837)
+ - Should fix problems with 8-bit audio samples (Closes: #179764)
+ - Fixes segfault on some invalid files (Closes: #274301)
+ - Fixes problems with very long files (Closes: #200435)
+ - Fixes FLAC__STREAM_ENCODER_NOT_STREAMABLE error (Closes: #196556)
+ - Man page is improved (Closes: #196812)
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 5 Jan 2005 08:29:18 -0800
+
+flac (1.1.0-11) unstable; urgency=low
+
+ * Ensure that libFLAC is linked with -lm on all architectures, and
+ regardless of whether nasm is present
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 16 Apr 2004 15:14:31 -0700
+
+flac (1.1.0-10) unstable; urgency=low
+
+ * Touch man/flac.1, to avoid trying to build it even if the timestamp is
+ skewed (Closes: #203580)
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 30 Jul 2003 22:41:51 -0400
+
+flac (1.1.0-9) unstable; urgency=low
+
+ * Re-run automake so that the fix for #202694 actually takes effect
+ (why is this working for me on i386 every time?)
+
+ -- Matt Zimmerman <mdz@debian.org> Tue, 29 Jul 2003 19:53:17 -0400
+
+flac (1.1.0-8) unstable; urgency=low
+
+ * Pregenerate the flac.1 man page (Closes: #203024)
+
+ -- Matt Zimmerman <mdz@debian.org> Tue, 29 Jul 2003 08:13:50 -0400
+
+flac (1.1.0-7) unstable; urgency=low
+
+ * Link flac itself with -lm, in addition to libFLAC (why did this work
+ for me?) (Closes: #202964)
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 26 Jul 2003 11:58:14 -0400
+
+flac (1.1.0-6) unstable; urgency=low
+
+ * Run automake so that library linking changes take effect.
+ (Closes: #194718)
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 26 Jul 2003 00:09:32 -0400
+
+flac (1.1.0-5) unstable; urgency=low
+
+ * Long-overdue policy check
+ - Build with -g always, and omit -O2 for debug builds
+ - Pull in changes from upstream CVS to link all shared libraries
+ against dependent libraries (Closes: #194718)
+ - Standards-Version: 3.6.0
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 17 Jul 2003 22:43:01 -0400
+
+flac (1.1.0-4) unstable; urgency=low
+
+ * Clean up diff
+ * Move -dev packages to Section: libdevel
+ * Build-Depend on libid3-3.8.3-dev (Closes: #196285)
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 7 Jun 2003 00:54:50 -0400
+
+flac (1.1.0-3) unstable; urgency=low
+
+ * Build various libraries used in the build tree using libtool rather
+ than plain .a archives, in order to get PIC code for linking into
+ shared libraries (Closes: #179434)
+ * Metaflac manpage was included upstream in 1.1.0 (Closes: #170598)
+ * Versioned build-dependency on nasm was added in 1.1.0-1
+ (Closes: #175944)
+ * 1.1.0 was uploaded (Closes: #178620)
+
+ -- Matt Zimmerman <mdz@debian.org> Sun, 2 Feb 2003 18:02:34 -0500
+
+flac (1.1.0-2) unstable; urgency=low
+
+ * Clean up -dev package dependencies
+ - libflac++-dev depends: libflac-dev (Closes: #179422)
+ - liboggflac-dev depends: libflac-dev
+ - liboggflac++-dev depends: liboggflac-dev, libflac++-dev
+
+ -- Matt Zimmerman <mdz@debian.org> Sun, 2 Feb 2003 01:32:28 -0500
+
+flac (1.1.0-1) unstable; urgency=low
+
+ * New upstream release
+ * liboggflac0 -> liboggflac1
+ * liboggflac1 unfortunately conflicts with liboggflac0 due to an
+ accidental file overlap
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 31 Jan 2003 16:26:37 -0500
+
+flac (1.0.4-5) unstable; urgency=low
+
+ * Build with g++ 3.2
+ * Build-depends: g++ (>= 2:3.2)
+ * libflac++2 -> libflac++2c102
+ * liboggflac++0 -> liboggflac++0c102
+
+ -- Matt Zimmerman <mdz@debian.org> Tue, 7 Jan 2003 20:26:25 -0500
+
+flac (1.0.4-4) unstable; urgency=low
+
+ * Build libplugin-common as PIC (Closes: #162718)
+ * Remove libflac-dev's relation with itself (thanks, lintian)
+
+ -- Matt Zimmerman <mdz@debian.org> Sun, 17 Nov 2002 01:34:23 -0500
+
+flac (1.0.4-3) unstable; urgency=low
+
+ * A file which belonged in libflac-dev ended up in flac 1.0.4-1, so
+ libflac-dev Replaces: libflac-dev (= 1.0.4-1) (Closes: #163847)
+
+ -- Matt Zimmerman <mdz@debian.org> Tue, 8 Oct 2002 16:39:28 -0400
+
+flac (1.0.4-2) unstable; urgency=medium
+
+ * Fix libflac and libflac++ shared library package names, which were
+ invalidated by an unexpected soname change (Closes: #162907)
+ * Split liboggflac and liboggflac++ into separate packages
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 5 Oct 2002 22:42:56 -0400
+
+flac (1.0.4-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 26 Sep 2002 10:32:24 -0400
+
+flac (1.0.3-3) unstable; urgency=low
+
+ * Tidy up installation of documentation (Closes: #159676)
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 5 Sep 2002 08:15:58 -0400
+
+flac (1.0.3-2) unstable; urgency=low
+
+ * Change libflac++-dev to Section: devel
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 13 Jul 2002 11:45:28 -0400
+
+flac (1.0.3-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 4 Jul 2002 20:14:59 -0400
+
+flac (1.0.2+1.0.3beta-1) experimental; urgency=low
+
+ * New upstream pre-release
+ * Now provides a C++ library as well
+ * Use dh_makeshlibs to create shlibs control files
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 15 Jun 2002 11:59:46 -0400
+
+flac (1.0.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Fixes a bug which crashed the input plugins after playing a few files
+ (Closes: #123210)
+ * Fixes issues with the assembler optimizations, so that they can be
+ re-enabled for better performance on i386
+
+ -- Matt Zimmerman <mdz@debian.org> Mon, 10 Dec 2001 03:09:22 -0500
+
+flac (1.0.1-2) unstable; urgency=low
+
+ * Pre-generate man page, since something has changed upstream (Closes:
+ #120463)
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 21 Nov 2001 14:19:29 -0500
+
+flac (1.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Raw encoding bug is fixed upstream (Closes: #119396)
+ * Manpage is fixed upstream (Closes: #107207)
+
+ -- Matt Zimmerman <mdz@debian.org> Mon, 19 Nov 2001 15:33:42 -0500
+
+flac (1.0-3) unstable; urgency=low
+
+ * Tighten build-dependency on debconf, since we use DH_COMPAT=3
+ (Closes: #115663)
+ * Disable assembler optimizations, as they seem to cause problems on
+ some systems.
+
+ -- Matt Zimmerman <mdz@debian.org> Tue, 16 Oct 2001 07:38:13 -0400
+
+flac (1.0-2) unstable; urgency=low
+
+ * Fix shlibs file (it was trying to use a substitution variable)
+ (Closes: #107614)
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 3 Aug 2001 16:54:20 -0400
+
+flac (1.0-1) unstable; urgency=low
+
+ * New upstream version.
+ * debian/control: Upstream now ships our man page, so there's no need to
+ build-depend on docbook-to-man. Build-dependency removed.
+ * debian/rules: Let upstream makefiles install headers and man page
+ * debian/control: Upstream library soname version has changed, modified
+ accordingly
+ * debian/rules: shlibs hackery is apparently no longer necessary, as
+ dpkg-shlibdeps will find shlibs files in package/DEBIAN
+ * Build-Depend on nasm on i386 to take advantage of optimized assembly
+ routines
+ * debian/rules, debian/control: Move the .la libtool widget from the
+ runtime package to the development package, and add Replaces
+ * ltmain.sh: Hack up to get things to work with libtool 1.4
+ <http://lists.debian.org/debian-devel-0105/msg02160.html>
+ * debian/rules: DH_COMPAT=3
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 25 Jul 2001 15:57:29 -0400
+
+flac (0.10-2) unstable; urgency=low
+
+ * Fix a build error with the xmms plugin that resulted in a broken
+ xmms-flac. Patch forwarded upstream. (Closes: #101827)
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 21 Jun 2001 15:43:39 -0400
+
+flac (0.10-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 14 Jun 2001 16:05:29 -0400
+
+flac (0.9-1) unstable; urgency=low
+
+ * New upstream version.
+ * From the upstream changelog:
+ * FLAC 0.9 released. There were some format changes that broke backwards
+ compatibility but these should be the last (see below). Also, there have
+ been several bug fixes and some new features:
+ + FLAC's sync code has been lengthened to 14 bits from 9 bits. This
+ should enable a faster and more robust synchronization mechanism.
+ + Two reserved bits were added to the frame header.
+ + A CRC-16 was added to the FLAC frame footer, and the decoder now does
+ frame integrity checking based on the CRC.
+ + The format now includes a new subframe field to indicate when a
+ subblock has one or more 0 LSBs for all samples. This increases
+ compression on some kinds of data.
+ + Added two options to the analysis mode, one for including the residual
+ signal in the analysis file, and one for generating gnuplot files of
+ each subframe's residual distribution with some statistics. See the
+ latest documentation.
+ + XMMS plugin now supports 8-bit files.
+ FLAC is on track for an official 1.0 release soon.
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 6 Apr 2001 07:41:30 -0400
+
+flac (0.8-1) unstable; urgency=low
+
+ * New upstream version.
+ * From the upstream changelog:
+ * This release is a result of extensive testing and fixes several bugs
+ encountered when pushing the encoder to the limit. I'm pretty
+ confident in the stability of the encoder/decoder now for all kinds of
+ input. There have also been several features added. Here is a complete
+ list of the changes since 0.7:
+ + Created a new utility called metaflac. It is a metadata editor for
+ .flac files. Right now it just lists the contents of the metadata
+ blocks but eventually it will allow update/insertion/deletion.
+ + Added two new metadata blocks: PADDING which has an obvious function,
+ and APPLICATION, which is meant to be open to third party applications.
+ See the latest format docs for more info, or the new id registration
+ page.
+ + Added a -P option to flac to reserve a PADDING block when encoding.
+ + Added support for 24-bit files to flac (the FLAC format always
+ supported it).
+ + Started the Winamp3 plugin.
+ + Greatly expanded the test suite, adding more streams (24-bit streams,
+ noise streams, non-audio streams, more patterns) and more option
+ combinations to the encoder. The test suite runs about 30 streams and
+ over 5000 encodings now.
+ * This version includes a patch to configure.in from upstream CVS (an
+ omitted AC_OUTPUT file).
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 9 Mar 2001 03:58:56 -0500
+
+flac (0.7-1) unstable; urgency=low
+
+ * New upstream version.
+ * Note that this version contains a known bug that, according to the
+ author, is revealed when encoding more than 2 channels using a large
+ blocksize (>32k samples). See
+ http://flac.sourceforge.net/news.html#20010212 for more information.
+
+ -- Matt Zimmerman <mdz@debian.org> Fri, 23 Feb 2001 01:14:10 -0500
+
+flac (0.6-2) unstable; urgency=low
+
+ * Display a note about backward compatibility
+ * Warn users of pre-0.6 versions about upgrading, as 0.6 cannot read
+ files encoded with previous versions (Closes: #84630)
+
+ -- Matt Zimmerman <mdz@debian.org> Sat, 3 Feb 2001 20:46:22 -0500
+
+flac (0.6-1) unstable; urgency=low
+
+ * New upstream version:
+ - encoding speed in default mode (-6) is at least 3x faster
+ - a new "loose mid-side" adaptive algorithm should help -1 and -5 modes
+ - a new analyze mode for developers
+ - bug fixes related to pipes
+ * Our automake patches have been incorporated upstream, so we no longer
+ need them in the Debian diff
+ * Added manpage for flac
+ * Run ldconfig in postinst (oops)
+ * Cleaned up debian/ directory
+
+ -- Matt Zimmerman <mdz@debian.org> Mon, 29 Jan 2001 14:50:11 -0500
+
+flac (0.5-2) unstable; urgency=low
+
+ * Fixed binary package sections to match override file (oops)
+ * debian/rules: Set execute permissions on autoconf scripts created in the
+ debian diff (Closes: #83105)
+ * Honor DEB_BUILD_OPTIONS (nostrip, debug)
+
+ -- Matt Zimmerman <mdz@debian.org> Mon, 22 Jan 2001 14:57:31 -0500
+
+flac (0.5-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Matt Zimmerman <mdz@debian.org> Wed, 17 Jan 2001 14:52:43 -0500
+
+
--- flac-1.2.1.orig/debian/libflac++6.install
+++ flac-1.2.1/debian/libflac++6.install
@@ -0,0 +1 @@
+usr/lib/libFLAC++.so.*
--- flac-1.2.1.orig/debian/flac.install
+++ flac-1.2.1/debian/flac.install
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1
--- flac-1.2.1.orig/debian/copyright
+++ flac-1.2.1/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Matt Zimmerman <mdz@debian.org> on
+Wed, 17 Jan 2001 14:52:43 -0500.
+
+It was downloaded from http://flac.sourceforge.net/
+
+Upstream Author: Josh Coalson
+
+Copyright (from src/flac/main.c):
+
+/* flac - Command-line FLAC encoder/decoder
+ * Copyright (C) 2000 Josh Coalson
+ *
+ * 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 program; 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-2'.
--- flac-1.2.1.orig/debian/docs
+++ flac-1.2.1/debian/docs
@@ -0,0 +1 @@
+README
--- flac-1.2.1.orig/debian/control
+++ flac-1.2.1/debian/control
@@ -0,0 +1,130 @@
+Source: flac
+Section: sound
+Priority: optional
+Maintainer: Debian multimedia packages maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
+Uploaders: Fabian Greffrath <fabian@debian-unofficial.org>
+Build-Depends: autotools-dev,
+ debhelper (>= 7),
+ docbook-to-man,
+ doxygen,
+ dpatch,
+ libid3-3.8.3-dev,
+ libogg-dev
+Standards-Version: 3.8.2
+
+Package: flac
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: Free Lossless Audio Codec - command line tools
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the command-line tools flac (used for encoding and
+ decoding FLACs) and metaflac (used for manipulating FLAC metadata.)
+
+Package: libflac8
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: Free Lossless Audio Codec - runtime C library
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the runtime library libFLAC.
+
+Package: libflac-doc
+Section: doc
+Architecture: all
+Suggests: libflac-dev
+Recommends: doc-base
+Depends: ${misc:Depends}
+Description: Free Lossless Audio Codec - library documentation
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the API documentation for all the FLAC libraries.
+
+Package: libflac-dev
+Section: libdevel
+Architecture: any
+Depends: libflac8 (= ${binary:Version}),
+ libogg-dev,
+ ${misc:Depends}
+Description: Free Lossless Audio Codec - C development library
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the development library libFLAC.
+
+Package: libflac++6
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: Free Lossless Audio Codec - C++ runtime library
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the runtime library libFLAC++.
+
+Package: libflac++-dev
+Section: libdevel
+Architecture: any
+Depends: libflac++6 (= ${binary:Version}),
+ libflac-dev,
+ ${misc:Depends}
+Description: Free Lossless Audio Codec - C++ development library
+ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
+ similar to MP3, but lossless. The FLAC project consists of:
+ .
+ * The stream format
+ * libFLAC, which implements a reference encoder, stream decoder, and file
+ decoder
+ * flac, which is a command-line wrapper around libFLAC to encode and decode
+ .flac files
+ * Input plugins for various music players (Winamp, XMMS, and more in the
+ works)
+ .
+ This package contains the development library libFLAC++.
--- flac-1.2.1.orig/debian/libflac-doc.doc-base.api
+++ flac-1.2.1/debian/libflac-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libflac-doc-api
+Title: FLAC Library API Reference
+Author: Josh Coalson
+Abstract: This is the online API reference for the libFLAC, libFLAC++,
+ libOggFLAC, and libOggFLAC++ libraries, generated by Doxygen.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libflac-doc/html/api/index.html
+Files: /usr/share/doc/libflac-doc/html/api/*.html
--- flac-1.2.1.orig/debian/libflac-doc.install
+++ flac-1.2.1/debian/libflac-doc.install
@@ -0,0 +1 @@
+usr/share/doc/flac-1.2.1/html
--- flac-1.2.1.orig/debian/clean
+++ flac-1.2.1/debian/clean
@@ -0,0 +1,4 @@
+config.guess
+config.sub
+man/flac.1
+man/metaflac.1
--- flac-1.2.1.orig/debian/libflac8.install
+++ flac-1.2.1/debian/libflac8.install
@@ -0,0 +1 @@
+usr/lib/libFLAC.so.*
--- flac-1.2.1.orig/debian/libflac-doc.doc-base.web
+++ flac-1.2.1/debian/libflac-doc.doc-base.web
@@ -0,0 +1,14 @@
+Document: libflac-doc-web
+Title: FLAC Project Documentation
+Author: Josh Coalson
+Abstract: This is the HTML version of the FLAC documentation,
+ which is more or less a mirror of the FLAC homepage. It provides instructions
+ for using the command-line flac and metaflac programs, descriptions of the
+ internal format of FLAC files, the goals of the FLAC project, Frequently Asked
+ Questions about FLAC, useful information for FLAC developers, and links to
+ other applications with FLAC support.
+Section: Sound
+
+Format: HTML
+Index: /usr/share/doc/libflac-doc/html/index.html
+Files: /usr/share/doc/libflac-doc/html/*.html
--- flac-1.2.1.orig/debian/compat
+++ flac-1.2.1/debian/compat
@@ -0,0 +1 @@
+7
--- flac-1.2.1.orig/debian/libflac-dev.install
+++ flac-1.2.1/debian/libflac-dev.install
@@ -0,0 +1,6 @@
+usr/lib/libFLAC.a
+usr/lib/libFLAC.so
+usr/lib/libFLAC.la
+usr/include/FLAC
+usr/lib/pkgconfig/flac.pc
+usr/share/aclocal/libFLAC.m4
--- flac-1.2.1.orig/debian/patches/08_gcc-4.3_fixes.dpatch
+++ flac-1.2.1/debian/patches/08_gcc-4.3_fixes.dpatch
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 08_gcc-4.3_fixes.dpatch by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix gcc-4.3 FTBFS, patch by KiBi (Closes: #455304).
+
+--- a/examples/cpp/encode/file/main.cpp
++++ b/examples/cpp/encode/file/main.cpp
+@@ -33,6 +33,8 @@
+ #include "FLAC++/metadata.h"
+ #include "FLAC++/encoder.h"
+
++#include <cstring>
++
+ class OurEncoder: public FLAC::Encoder::File {
+ public:
+ OurEncoder(): FLAC::Encoder::File() { }
--- flac-1.2.1.orig/debian/patches/00list
+++ flac-1.2.1/debian/patches/00list
@@ -0,0 +1,4 @@
+02_doc_path
+03_cosmetic_flac_stats
+07_metaflac_error_exit
+08_gcc-4.3_fixes.dpatch
--- flac-1.2.1.orig/debian/patches/09_noexec-stack.dpatch
+++ flac-1.2.1/debian/patches/09_noexec-stack.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_noexec-stack.dpatch by Russell Coker <russell@coker.com.au>
+##
+## DP: The following patch adds a section to the libFLAC.so file to indicate that
+## DP: it doesn't need an executable stack. This allows programs using it to run
+## DP: correctly on SE Linux systems, and with exec-shield.
+
+@DPATCH@
+diff -urNad flac~/src/libFLAC/ia32/nasm.h flac/src/libFLAC/ia32/nasm.h
+--- flac~/src/libFLAC/ia32/nasm.h 2009-08-03 16:37:33.000000000 +0200
++++ flac/src/libFLAC/ia32/nasm.h 2009-08-03 16:38:29.000000000 +0200
+@@ -73,3 +73,6 @@
+ _%1:
+ %1:
+ %endmacro
++
++section .note.GNU-stack progbits noalloc noexec nowrite align=1
++
--- flac-1.2.1.orig/debian/patches/07_metaflac_error_exit.dpatch
+++ flac-1.2.1/debian/patches/07_metaflac_error_exit.dpatch
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_metaflac_error_exit.dpatch by Joshua Kwan <joshk@triplehelix.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Exit with error if invalid option is passed. #329979
+
+--- flac-1.1.2/src/metaflac/options.c~ 2006-05-27 23:13:33.000000000 -0600
++++ flac-1.1.2/src/metaflac/options.c 2006-05-27 23:15:07.000000000 -0600
+@@ -229,7 +229,7 @@
+ }
+ }
+
+- return !had_error;
++ return had_error;
+ }
+
+ void free_options(CommandLineOptions *options)
+--- flac-1.1.2/src/metaflac/main.c~ 2006-05-27 23:07:51.000000000 -0600
++++ flac-1.1.2/src/metaflac/main.c 2006-05-27 23:14:47.000000000 -0600
+@@ -32,7 +32,7 @@
+ setlocale(LC_ALL, "");
+ init_options(&options);
+
+- if(parse_options(argc, argv, &options))
++ if ((ret = parse_options(argc, argv, &options)) == 0)
+ ret = !do_operations(&options);
+
+ free_options(&options);
--- flac-1.2.1.orig/debian/patches/03_cosmetic_flac_stats.dpatch
+++ flac-1.2.1/debian/patches/03_cosmetic_flac_stats.dpatch
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_cosmetic_flac_stats.dpatch by Joshua Kwan <joshk@triplehelix.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix misuse of \r (potentially) in flac -d or -t output, closes: #138828
+
+@DPATCH@
+--- flac-1.1.2/src/flac/decode.c~ 2005-08-18 02:16:46.000000000 -0700
++++ flac-1.1.2/src/flac/decode.c 2005-08-18 02:14:59.000000000 -0700
+@@ -1182,6 +1182,7 @@
+
+ void print_stats(const DecoderSession *decoder_session)
+ {
++ static int count = 0;
+ if(flac__utils_verbosity_ >= 2) {
+ #if defined _MSC_VER || defined __MINGW32__
+ /* with MSVC you have to spoon feed it the casting */
+@@ -1190,7 +1191,13 @@
+ const double progress = (double)decoder_session->samples_processed / (double)decoder_session->total_samples * 100.0;
+ #endif
+ if(decoder_session->total_samples > 0) {
+- fprintf(stderr, "\r%s: %s%u%% complete",
++ while (count > 0 && count--)
++ fprintf(stderr, "\b");
++
++ if ((unsigned)floor(progress + 0.5) == 100)
++ return;
++
++ count = fprintf(stderr, "%s: %s%u%% complete",
+ decoder_session->inbasefilename,
+ decoder_session->test_only? "testing, " : decoder_session->analysis_mode? "analyzing, " : "",
+ (unsigned)floor(progress + 0.5)
--- flac-1.2.1.orig/debian/patches/02_doc_path.dpatch
+++ flac-1.2.1/debian/patches/02_doc_path.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_doc_path.dpatch by Joshua Kwan <joshk@triplehelix.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct path to documentation. closes: #413411.
+
+@DPATCH@
+diff -urNad flac~/man/flac.sgml flac/man/flac.sgml
+--- flac~/man/flac.sgml 2009-08-04 08:44:05.000000000 +0200
++++ flac/man/flac.sgml 2009-08-04 08:49:17.000000000 +0200
+@@ -697,7 +697,7 @@
+
+ <para>metaflac(1).</para>
+
+- <para>The programs are documented fully by HTML format documentation, available in <filename>/usr/share/doc/flac/html</filename> on &debian; systems.</para>
++ <para>The programs are documented fully by HTML format documentation, available in <filename>/usr/share/doc/libflac-doc/html</filename> on &debian; systems.</para>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>