--- octave-xraylib-1.0.8.orig/debian/compat
+++ octave-xraylib-1.0.8/debian/compat
@@ -0,0 +1 @@
+6
--- octave-xraylib-1.0.8.orig/debian/copyright
+++ octave-xraylib-1.0.8/debian/copyright
@@ -0,0 +1,50 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=48
+Upstream-Name: Xraylib package for Octave
+Upstream-Maintainer: Teemu Ikonen <tpikonen@gmail.com>
+Upstream-Source: http://octave.sourceforge.net/xraylib/index.html
+
+Files: debian/*
+Copyright: © 2008 Olafur Jens Sigurdsson <ojsbug@gmail.com>
+License: GPL-3+
+
+Files: src/xraylib.cc
+Copyright: © 2009 Teemu Ikonen
+License: GPL-2+
+
+Files: src/xraylib/*
+Copyright: © 2009 Manuel Sanchez del Rio
+License: "GNU-like"
+ The xraylib library does not com with proper Copyright notices and
+ licensing terms.  However, the author of the Octave binding, Teemu
+ Ikonen contact the upstream author and got the following response:
+ .
+ Date: Fri, 26 May 2006 10:53:52 +0200
+ From: Manuel Sanchez Del Rio <srio@esrf.fr>
+ To: Teemu Ikonen <tpikonen@pcu.helsinki.fi>
+ Subject:  Re: XRAYLIB
+ .
+ Dear Teemu,
+ .
+ thanks for your email and your nice projects regarding XrayLib. You are
+ welcome to modify and redistribute the code, considering that you cite
+ the reference and sources. Thus, you can assume a GNU-type license. We
+ would also be interested in your applications for our users.
+ .
+ Best regards,
+ .
+ ____
+ Manuel Sanchez del Rio
+ European Synchrotron Radiation Facility
+ BP 220
+ 38043 Grenoble-Cedex 9 (France)
+ Tel +33-476 882513 Fax +33-476 882542 http://www.esrf.fr
+
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public
+ License, version 2, can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public
+ License, version 3, can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
--- octave-xraylib-1.0.8.orig/debian/changelog
+++ octave-xraylib-1.0.8/debian/changelog
@@ -0,0 +1,16 @@
+octave-xraylib (1.0.8-2) unstable; urgency=low
+
+  [ Rafael Laboissiere ]
+  * debian/control: Build-depend on octave-pkg-dev >= 0.7.0, such that the
+    package is built against octave3.2
+
+  [ Thomas Weber ]
+  * Use debian/clean for cleaning up after build instead of debian/rules
+
+ -- Thomas Weber <thomas.weber.mail@gmail.com>  Thu, 31 Dec 2009 00:22:42 +0100
+
+octave-xraylib (1.0.8-1) unstable; urgency=low
+
+  * Initial release. (Closes: #482596)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 24 May 2009 23:20:20 +0200
--- octave-xraylib-1.0.8.orig/debian/README.source
+++ octave-xraylib-1.0.8/debian/README.source
@@ -0,0 +1,8 @@
+README.source for octave-xraylib
+================================
+
+This package uses quilt to manage all modifications to the upstream sources.
+See `/usr/share/doc/quilt/README.source' to get more information on how to
+use it.
+
+ -- Rafael Laboissiere <rafael@debian.org>, Sat, 23 May 2009 17:56:36 +0200
--- octave-xraylib-1.0.8.orig/debian/clean
+++ octave-xraylib-1.0.8/debian/clean
@@ -0,0 +1 @@
+src/Makeconf src/config.log src/config.status
--- octave-xraylib-1.0.8.orig/debian/control
+++ octave-xraylib-1.0.8/debian/control
@@ -0,0 +1,29 @@
+Source: octave-xraylib
+Section: math
+Priority: optional
+Maintainer: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
+Uploaders: Ólafur Jens Sigurðsson <ojsbug@gmail.com>,
+ Rafael Laboissiere <rafael@debian.org>,
+ Thomas Weber <thomas.weber.mail@gmail.com>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 6), cdbs, octave-pkg-dev (>= 0.7.0), quilt
+Standards-Version: 3.8.1
+Homepage: http://octave.sourceforge.net/xraylib
+Vcs-Git: git://git.debian.org/git/pkg-octave/octave-xraylib.git
+Vcs-Browser: http://git.debian.org/?p=pkg-octave/octave-xraylib.git
+
+Package: octave-xraylib
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${octave:Depends}
+Description: Octave bindings to the xraylib functions
+ Xraylib is a library to provide access to data sets from different
+ published works on spectroscopic and imaging techniques using X-ray
+ fluorescence.  Although the target applications are on X-ray
+ fluorescence, cross sections of interactions like photoionization,
+ coherent scattering and Compton scattering, as well as form factors
+ and anomalous scattering functions, are also available.
+ .
+ This package contains the binding to access the xraylib functions
+ from Octave, a scientific computation software.
+ .
+ This Octave add-on package is part of the Octave-Forge project.
--- octave-xraylib-1.0.8.orig/debian/watch
+++ octave-xraylib-1.0.8/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://octave.sourceforge.net/packages.html \
+    http://downloads\.sourceforge\.net/octave/xraylib-([\d.]+)\.tar\.gz\?download
--- octave-xraylib-1.0.8.orig/debian/rules
+++ octave-xraylib-1.0.8/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+include /usr/share/cdbs/1/class/octave-pkg.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+debdir = $(CURDIR)/debian/octave-xraylib
+debusr = $(debdir)/usr
+deblib = $(debusr)/lib/octave/packages/*/xraylib-*/*
+debshr = $(debdir)/usr/share/octave/packages/*/xraylib-*/packinfo
+
+install/octave-xraylib::
+	cd $(deblib) ;					\
+	for i in $$(grep "^  " $(debshr)/INDEX) ; do	\
+		ln -s xraylib.oct $$i.oct ;		\
+	done
--- octave-xraylib-1.0.8.orig/debian/patches/autoload-yes.diff
+++ octave-xraylib-1.0.8/debian/patches/autoload-yes.diff
@@ -0,0 +1,11 @@
+Autoload the package when starting Octave.
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri, 22 May 2009 21:08:51 +0200
+
+--- a/DESCRIPTION
++++ b/DESCRIPTION
+@@ -8,3 +8,4 @@
+ Categories: X-raydata
+ License: GPL version 2
+ Url: http://ftp.esrf.fr/pub/scisoft/xraylib/
++Autoload: yes
--- octave-xraylib-1.0.8.orig/debian/patches/series
+++ octave-xraylib-1.0.8/debian/patches/series
@@ -0,0 +1 @@
+autoload-yes.diff
