--- slcfitsio-0.3.8+nosvn.orig/debian/copyright
+++ slcfitsio-0.3.8+nosvn/debian/copyright
@@ -0,0 +1,57 @@
+This package was debianized by Rafael Laboissiere <rafael@debian.org> on
+Fri Oct 28 12:58:08 CEST 2005
+
+It was downloaded from
+
+    http://space.mit.edu/CXC/software/slang/modules/cfitsio/src/
+
+Author: John E. Davis  <davis@space.mit.edu>
+
+Copyright Holder: Massachusetts Institute of Technology
+
+License:
+
+  Copyright (c) 2003 Massachusetts Institute of Technology
+
+  This software was developed by the MIT Center for Space Research
+  under contract SV1-61010 from the Smithsonian Institution.
+
+  Permission to use, copy, modify, distribute, and sell this software
+  and its documentation for any purpose is hereby granted without fee,
+  provided that the above copyright notice appear in all copies and
+  that both that copyright notice and this permission notice appear in
+  the supporting documentation, and that the name of the Massachusetts
+  Institute of Technology not be used in advertising or publicity
+  pertaining to distribution of the software without specific, written
+  prior permission.  The Massachusetts Institute of Technology makes
+  no representations about the suitability of this software for any
+  purpose.  It is provided "as is" without express or implied warranty.
+
+  THE MASSACHUSETTS INSTITUTE OF TECHNOLOGY DISCLAIMS ALL WARRANTIES
+  WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
+  MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL THE MASSACHUSETTS
+  INSTITUTE OF TECHNOLOGY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+  NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+  WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Files src/fits.sl and src/fitswcs.el are authored by John E. Davis
+<davis@space.mit.edu> and are released under the following conditions:
+
+  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 systems, the complete text of the GNU General Public License,
+version 2, can be found in `/usr/share/common-licenses/GPL-2'.
--- slcfitsio-0.3.8+nosvn.orig/debian/control
+++ slcfitsio-0.3.8+nosvn/debian/control
@@ -0,0 +1,21 @@
+Source: slcfitsio
+Section: interpreters
+Priority: optional
+Maintainer: Debian JED Group <pkg-jed-sl-modules@lists.alioth.debian.org>
+Uploaders: Rafael Laboissiere <rafael@debian.org>
+Build-Depends: debhelper (>= 7.0.0), libslang2-dev (>= 2.1.0),
+ libcfitsio3-dev, cdbs, slsh, autotools-dev
+Standards-Version: 3.8.1
+Homepage: http://space.mit.edu/cxc/software/slang/modules/cfitsio/
+Vcs-Git: git://git.debian.org/git/pkg-jed/slcfitsio.git
+Vcs-Browser: http://git.debian.org/?p=pkg-jed/slcfitsio.git
+
+Package: slang-cfitsio
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Suggests: slsh (>= 2.0) | jed (>= 0.99.17) | slrn (>= 0.9.8.1pl1-4)
+Description: read and write FITS files from S-Lang
+ The CFITSIO library consists of a set of functions for reading and
+ writing FITS (Flexible Image Transport System) files. The S-Lang
+ CFITSIO module wraps many of the functions of the CFITSIO library and
+ permits one to easily manipulate FITS files from the S-Lang interpreter.
--- slcfitsio-0.3.8+nosvn.orig/debian/watch
+++ slcfitsio-0.3.8+nosvn/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=dversionmangle=s/\+nosvn// \
+	http://space.mit.edu/CXC/software/slang/modules/cfitsio/src/slcfitsio-([a-z\d\.]+)\.tar\.gz \
+	debian /bin/sh debian/orig-tar.sh
--- slcfitsio-0.3.8+nosvn.orig/debian/rules
+++ slcfitsio-0.3.8+nosvn/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_MAKE_BUILD_TARGET := all RPATH=
+DEB_MAKE_CHECK_TARGET := -C src test
--- slcfitsio-0.3.8+nosvn.orig/debian/changelog
+++ slcfitsio-0.3.8+nosvn/debian/changelog
@@ -0,0 +1,146 @@
+slcfitsio (0.3.8+nosvn-4) unstable; urgency=low
+
+  * debian/control:
+    + Build-Depend on autotools-dev, avoiding the Lintian warning
+      outdated-autotools-helper-file.
+    + Constrain the build-dependency on libslang2-dev to be >= 2.1.0
+  * debian/patches/01_define-fneqs.patch: Drop patch, since libslang2,
+    version 2.1.0, contains the fneqs function
+  * debian/rules: Drop inclusion of simple-patchsys.mk
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 07 Jun 2009 02:54:30 +0200
+
+slcfitsio (0.3.8+nosvn-3) unstable; urgency=low
+
+  * debian/control:
+    + The package is now maintained with Git at alioth.debian.org.  Add
+      Vcs-Git field and change Vcs-Browser accordingly.
+    + Fix Lintian warning debhelper-but-no-misc-depends
+    + Bump Standards-Version to 3.8.1 (add debian/README.source file
+      explaining the stripping of the .svn directory from the pristine
+      tarball)
+  * debian/orig-tar.sh: Add script for building the Debian "upstream"
+    tarball
+  * debian/rules: Use debian/clean instead of manually cleaning files
+  * debian/compat, debian/control: Bump build-dependency on debhelper to
+    >= 7.0.0, otherwise debian/clean is moot
+  * debian/clean: New file
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 26 Apr 2009 12:02:33 +0200
+
+slcfitsio (0.3.8+nosvn-2) unstable; urgency=low
+
+  * debian/control:
+    + Append trunk/ to the path in Vcs-Svn:, such that
+      debcheckout works
+    + Bump Standards-Version to 3.8.0 (no changes needed)
+  * debian/watch: Remove "+nosvn" from the upstream version number
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 03 Jul 2008 22:16:08 +0200
+
+slcfitsio (0.3.8+nosvn-1) unstable; urgency=low
+
+  * New upstream tarball for version 0.3.8, this time without the .svn
+    directories
+  * debian/copyright: Add author name and fix the GPL-2 file name
+  * debian/rules: Use DEB_MAKE_CHECK_TARGET to run the tests instead of
+    using an explicit build rule
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 16 Mar 2008 14:58:05 +0100
+
+slcfitsio (0.3.8-2) unstable; urgency=low
+
+  * debian/control:
+    + Added Homepage field
+    + Use the now official Vcs-* fields instead of the obsolete XS-Vcs-*
+    + Dropped the Homepage pseudo-header from the extended description
+    + Bumped Standards-Version to 3.7.3
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed, 05 Dec 2007 12:59:18 +0100
+
+slcfitsio (0.3.8-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Added XS-Vcs-Svn and XS-Vcs-Browser fields
+  * debian/patches/01_define-fneqs.patch: Added patch containing the
+    definition of the fneqs function.  This patch will be removed in the
+    future, when slang2 will be released containing this function in its
+    core (not yet present in 2.0.7, but already in SVN)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Tue,  1 May 2007 22:32:11 +0200
+
+slcfitsio (0.3.2b-7) unstable; urgency=low
+
+  * debian/control: Build-depends on libcfitsio3-dev (closes: #413125)
+  * debian/rules: Clean config.status and config.log, otherwise successive
+    calls to debuild or dpkg-buildpackage won't work
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri,  2 Mar 2007 17:43:37 +0100
+
+slcfitsio (0.3.2b-6) unstable; urgency=low
+
+  [Jörg Sommer]
+  * debian/copyright: Updated FSF address.
+  * debian/control: Increase Standards-Version. No changes needed.
+
+ -- Rafael Laboissiere <rafael@debian.org>  Mon, 18 Dec 2006 10:46:35 +0100
+
+slcfitsio (0.3.2b-5) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * debian/watch: Added file
+  * debian/patches/slsh-debug-option.patch: Removed patch, which was
+    introduced in the last release for testing purposes
+  * debian/rules: No inclusion of CDBS' simple-patchsys.mk
+
+ -- Debian JED Group <pkg-jed-sl-modules@lists.alioth.debian.org>  Tue, 22 Nov 2005 09:28:30 +0100
+
+slcfitsio (0.3.2b-4) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * With this release I am trying to understand why the pacakge FTBFS for
+    the arm and mipsel architectures when running the test/test_fits.sl
+    example
+  * debian/rules: Include CDBS' simple-patchsys.mk
+  * debian/patches/slsh-debug-option.patch: Patch for calling slsh with
+    option -g in src/Makefile.in
+
+ -- Debian JED Group <pkg-jed-sl-modules@lists.alioth.debian.org>  Thu, 17 Nov 2005 18:14:37 +0100
+
+slcfitsio (0.3.2b-3) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * debian/control:
+    - Changed the maintainer to pkg-jed-sl-modules@lists.alioth.debian.org
+    - Build-depends on slsh (closes: #336254)
+
+ -- Debian JED Group <pkg-jed-sl-modules@lists.alioth.debian.org>  Tue, 15 Nov 2005 02:36:05 +0100
+
+slcfitsio (0.3.2b-2) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * debian/copyright: Added missing information about the files
+    src/fits.sl and src/fitswcs.el (released under the GPL).  Hopefully
+    the package will be approved this tiem, hence still closes: #336254.
+
+ -- Debian JED Group <pkg-jed-devel@lists.alioth.debian.org>  Sun,  6 Nov 2005 20:06:55 +0100
+
+slcfitsio (0.3.2b-1) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * First official release (closes: #336254)
+
+ -- Debian JED Group <pkg-jed-devel@lists.alioth.debian.org>  Sat, 29 Oct 2005 18:17:48 +0200
+
+slcfitsio (0.3.2b-0.1) unstable; urgency=low
+
+   +++ Changes by Rafael Laboissiere
+
+  * Initial release
+
+ -- Debian JED Group <pkg-jed-devel@lists.alioth.debian.org>  Wed, 26 Oct 2005 15:43:11 +0200
--- slcfitsio-0.3.8+nosvn.orig/debian/README.source
+++ slcfitsio-0.3.8+nosvn/debian/README.source
@@ -0,0 +1,9 @@
+README.source for slcfitsio
+===========================
+
+The original upstream tarball for version 0.3.8 contained a spurious
+.svn directory, which has been removed.  Hence the package version
+number in Debian contains the "+nosvn" string.
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 26 Apr 2009 11:59:09 +0200
+
--- slcfitsio-0.3.8+nosvn.orig/debian/clean
+++ slcfitsio-0.3.8+nosvn/debian/clean
@@ -0,0 +1 @@
+Makefile config.log config.status
--- slcfitsio-0.3.8+nosvn.orig/debian/examples
+++ slcfitsio-0.3.8+nosvn/debian/examples
@@ -0,0 +1 @@
+src/tests/*.sl
--- slcfitsio-0.3.8+nosvn.orig/debian/compat
+++ slcfitsio-0.3.8+nosvn/debian/compat
@@ -0,0 +1 @@
+7
--- slcfitsio-0.3.8+nosvn.orig/debian/orig-tar.sh
+++ slcfitsio-0.3.8+nosvn/debian/orig-tar.sh
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+PKG=slcfitsio
+DIR=$PKG-$2
+TAR=../${PKG}_$2+nosvn.orig.tar.gz
+
+# clean up the upstream tarball
+tar xfz $3
+rm -rf $DIR/.svn
+tar cfz $TAR $DIR
+rm -rf $DIR
