--- libmatio-1.3.4.orig/debian/changelog
+++ libmatio-1.3.4/debian/changelog
@@ -0,0 +1,93 @@
+libmatio (1.3.4-2) unstable; urgency=low
+
+ * Fix FTBFS regarding latex build. Thanks to Julien Cristau (Closes: #590415)
+ * Update autotools code to build against recent versions
+ (autotools-new-version.patch)
+ * Standards-Version updated to version 3.9.1
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Fri, 03 Sep 2010 10:01:39 +0200
+
+libmatio (1.3.4-1) unstable; urgency=low
+
+ * New upstream release
+ * catcherror.diff read-size-issue.diff sparsecomplexmatrices.diff removed
+ (applied upstream)
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Tue, 30 Mar 2010 17:00:24 +0200
+
+libmatio (1.3.3-7) unstable; urgency=low
+
+ * Uses ghostscript-x instead of gs-gpl
+
+ [ Vincent Couvert from Scilab ]
+ * Fix a compression read size issues. read-size-issue.diff (Closes: #556652)
+ * Fix a bug in the sparse complex matrices handling.
+ sparsecomplexmatrices.diff
+ * Improves feedback when cannot read a mat file. catcherror.diff
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Wed, 03 Mar 2010 10:35:05 +0100
+
+libmatio (1.3.3-6) unstable; urgency=low
+
+ * texlive-latex-recommended was missing as a Build-Depends. Thanks to
+ Michael Bienia for providing a fix (Closes: #551250)
+ * Build-Depends gs => gs-gpl
+ * Standards-Version updated to 3.8.4
+ * libmatio-doc moved to section doc and libmatio0-dbg to debug
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Mon, 01 Feb 2010 13:08:00 +0100
+
+libmatio (1.3.3-5) unstable; urgency=low
+
+ * Build the documentation in the new package libmatio-doc (Closes: #545946)
+ * Change of my email address since I am now DD
+ * Removal of Torsten on his request
+ * Standards-Version updated to 3.8.3
+ * DM-Upload-Allowed removed
+
+ -- Sylvestre Ledru <sylvestre@debian.org> Thu, 10 Sep 2009 16:32:05 +0200
+
+libmatio (1.3.3-4) unstable; urgency=low
+
+ * Missing ${misc:Depends} added
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr> Sun, 28 Dec 2008 18:17:06 +0100
+
+libmatio (1.3.3-3) unstable; urgency=low
+
+ * Debian-science added as maintainer
+ * SVN moved to debian-science repository
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr> Tue, 26 Aug 2008 23:46:07 +0200
+
+libmatio (1.3.3-2) unstable; urgency=low
+
+ * Change Standards-Version: 3.8.0
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr> Sun, 29 Jun 2008 20:31:00 +0200
+
+
+libmatio (1.3.3-1) unstable; urgency=low
+
+ * New upstream version
+ * copyright file update since fixed by the upstream.
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr> Tue, 24 Jun 2008 13:09:39 +0200
+
+libmatio (1.3.2-2) unstable; urgency=low
+
+ [ Torsten Werner ]
+ * Add DM-Upload-Allowed: yes to enable uploads by Sylvestre.
+
+ [ Sylvestre Ledru ]
+ * copyright file updated (a few files have a different license. Will be
+ fixed in the next release).
+
+ -- Torsten Werner <twerner@debian.org> Tue, 29 Apr 2008 20:38:40 +0200
+
+libmatio (1.3.2-1) unstable; urgency=low
+
+ * Initial release (Closes: #476346)
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr> Tue, 15 Apr 2008 13:47:14 +0200
+
--- libmatio-1.3.4.orig/debian/copyright
+++ libmatio-1.3.4/debian/copyright
@@ -0,0 +1,23 @@
+This package was debianized by Sylvestre Ledru <sylvestre.ledru@inria.fr> on
+Tue, 15 Apr 2008 13:47:14 +0200.
+
+It was downloaded from <http://sourceforge.net/projects/matio>
+
+Upstream Author:
+
+ Christopher Hulbert <cch@isl-inc.com>
+
+Copyright:
+
+ Copyright (C) 2005-2006 Christopher C. Hulbert
+
+License:
+
+ LGPL
+
+The Debian packaging is (C) 2008, Sylvestre Ledru <sylvestre@gabiniere.inria.fr> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+src/snprintf.c is released under a different license by Patrick Powell <papowell@astart.com>:
+It may be used for any purpose as long as this notice remains intact
+on all source code distributions.
--- libmatio-1.3.4.orig/debian/docs
+++ libmatio-1.3.4/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- libmatio-1.3.4.orig/debian/compat
+++ libmatio-1.3.4/debian/compat
@@ -0,0 +1 @@
+5
--- libmatio-1.3.4.orig/debian/libmatio-doc.docs
+++ libmatio-1.3.4/debian/libmatio-doc.docs
@@ -0,0 +1 @@
+doxygen/latex/libmatio.pdf
--- libmatio-1.3.4.orig/debian/watch
+++ libmatio-1.3.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/matio/matio-(.*)\.tar\.gz debian debian/orig-tar.sh
--- libmatio-1.3.4.orig/debian/rules
+++ libmatio-1.3.4/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+DEB_CONFIGURE_NORMAL_ARGS += --enable-shared
+DEB_MAKE_BUILD_TARGET := libmatio_la_LIBADD=-lz
+DEB_COMPRESS_EXCLUDE := .pdf
+
+install/libmatio-doc::
+ (cd doxygen/; make)
+
+get-orig-source:
+ -uscan --upstream-version=0 --rename
--- libmatio-1.3.4.orig/debian/orig-tar.sh
+++ libmatio-1.3.4/debian/orig-tar.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=matio-*
+
+# clean up the upstream tarball
+tar xzf $3
+tar czf $3 --exclude '*/zlib/*' $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $3 $origDir
+ echo "moved $3 to $origDir"
+fi
+
--- libmatio-1.3.4.orig/debian/libmatio-dev.install
+++ libmatio-1.3.4/debian/libmatio-dev.install
@@ -0,0 +1,5 @@
+debian/tmp/usr/include/*
+debian/tmp/usr/lib/lib*.a
+debian/tmp/usr/lib/lib*.so
+debian/tmp/usr/lib/pkgconfig/*
+debian/tmp/usr/lib/*.la
--- libmatio-1.3.4.orig/debian/libmatio0.install
+++ libmatio-1.3.4/debian/libmatio0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so.*
--- libmatio-1.3.4.orig/debian/control
+++ libmatio-1.3.4/debian/control
@@ -0,0 +1,54 @@
+Source: libmatio
+Section: libs
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Sylvestre Ledru <sylvestre@debian.org>
+Build-Depends: debhelper (>= 5), autotools-dev, cdbs, zlib1g-dev,
+ gfortran, doxygen, texlive-latex-base, ghostscript-x,
+ texlive-latex-recommended, texlive-fonts-recommended
+# quilt
+Standards-Version: 3.9.1
+Homepage: http://sourceforge.net/projects/matio
+Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/libmatio/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/libmatio/trunk
+
+Package: libmatio-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libmatio0 (= ${binary:Version}), zlib1g-dev
+Description: MAT File I/O Library - development files
+ matio is an ISO C library (with a limited Fortran 90 interface) for
+ reading and writing Matlab MAT files.
+ .
+ This package contains the development files needed to compile software to
+ use the libmatio API.
+
+Package: libmatio0
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: A library to read and write Matlab MAT files
+ matio is an ISO C library (with a limited Fortran 90 interface) for
+ reading and writing Matlab MAT files.
+
+Package: libmatio0-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, libmatio0 (= ${binary:Version})
+Description: MAT File I/O Library - development files
+ matio is an ISO C library (with a limited Fortran 90 interface) for
+ reading and writing Matlab MAT files.
+ .
+ This package contains the debugging symbols of the library.
+
+Package: libmatio-doc
+Section: doc
+Priority: extra
+Architecture: all
+Depends: ${misc:Depends}
+Description: MAT File I/O Library - documentation files
+ matio is an ISO C library (with a limited Fortran 90 interface) for
+ reading and writing Matlab MAT files.
+ .
+ This package contains the documentation of the library.
+
--- libmatio-1.3.4.orig/debian/patches/doxygen.patch
+++ libmatio-1.3.4/debian/patches/doxygen.patch
@@ -0,0 +1,10 @@
+--- libmatio-1.3.4./doxygen/format_api.sh 2008-01-01 00:48:29.000000000 +0100
++++ libmatio-1.3.4/doxygen/format_api.sh 2010-09-03 10:30:49.000000000 +0200
+@@ -10,6 +10,7 @@
+ cp refman.tex refman.tex.save
+ cp doxygen.sty doxygen.sty.save
+ cat refman.tex | sed "/File Index/,/input{files}/d" | sed "/File Documentation/,/include/d" | sed "/8c/d" | sed "/8h/d" > refman.sed
++echo "\end{document}" >> refman.sed
+ cat doxygen.sty | sed "s/by Doxygen//g" > doxygen.sed
+ mv refman.sed refman.tex
+ mv doxygen.sed doxygen.sty