[Debian-astro-commits] [cspice] 01/01: Add debian folder

Rock Storm rockstorm-guest at moszumanska.debian.org
Mon Mar 20 19:14:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

rockstorm-guest pushed a commit to branch debian
in repository cspice.

commit 43d642eb7359d0e494813bfb7dbd4e84492ddfc3
Author: Rock Storm <rockstorm at gmx.com>
Date:   Mon Mar 20 20:06:41 2017 +0100

    Add debian folder
---
 debian/Makefile                                    |  80 ++++++++++++
 debian/README.Debian                               |  63 ++++++++++
 debian/README.source                               |  29 +++++
 debian/SpiceZplDeb.in                              |   3 +
 debian/changelog                                   |   5 +
 debian/clean                                       |   1 +
 debian/compat                                      |   1 +
 debian/configure                                   | 112 +++++++++++++++++
 debian/control                                     |  69 +++++++++++
 debian/copyright                                   |  47 +++++++
 debian/cspice-doc.doc-base                         |  22 ++++
 debian/cspice-doc.install                          |   1 +
 debian/cspice.docs                                 |   2 +
 debian/cspice.examples                             |   5 +
 debian/cspice.install                              |  14 +++
 debian/cspice.manpages                             |   2 +
 debian/libcspice-dev.docs                          |   2 +
 debian/libcspice-dev.install                       |   4 +
 debian/libcspice1.docs                             |   2 +
 debian/libcspice1.install                          |   1 +
 debian/man/cspice-brief.1                          | 111 +++++++++++++++++
 debian/man/cspice-chronos.1                        | 105 ++++++++++++++++
 debian/man/cspice-ckbrief.1                        |  89 ++++++++++++++
 debian/man/cspice-commnt.1                         |  50 ++++++++
 debian/man/cspice-frmdiff.1                        | 135 +++++++++++++++++++++
 debian/man/cspice-inspekt.1                        |  22 ++++
 debian/man/cspice-mkspk.1                          |  57 +++++++++
 debian/man/cspice-msopck.1                         |  41 +++++++
 debian/man/cspice-spacit.1                         |  24 ++++
 debian/man/cspice-spkdiff.1                        |  99 +++++++++++++++
 debian/man/cspice-spkmerge.1                       |  26 ++++
 debian/man/cspice-tobin.1                          |  25 ++++
 debian/man/cspice-toxfr.1                          |  25 ++++
 debian/man/cspice-version.1                        |  34 ++++++
 debian/man/cspice.7                                |  81 +++++++++++++
 .../create-and-link-to-shared-libraries.patch      |  76 ++++++++++++
 debian/patches/series                              |   2 +
 .../patches/support-multiple-architectures.patch   | 103 ++++++++++++++++
 debian/rules                                       |  47 +++++++
 debian/source/format                               |   1 +
 debian/tests/brief-utc                             |  40 ++++++
 debian/tests/control                               |   1 +
 debian/tests/devtest                               |  34 ++++++
 debian/translate                                   |  38 ++++++
 debian/watch                                       |   8 ++
 45 files changed, 1739 insertions(+)

diff --git a/debian/Makefile b/debian/Makefile
new file mode 100644
index 0000000..11dd06d
--- /dev/null
+++ b/debian/Makefile
@@ -0,0 +1,80 @@
+#! /bin/sh
+# This makefile "only" invokes the upstream building sequence. It does not
+# install anything itself.
+CC=gcc
+
+### Upstream File Structure ###
+# This Makefile was intended to be placed in the debian folder, which in turn 
+# is placed under the upstream's tree root.
+ROOT_DIR=$(shell cd .; pwd)
+
+# Build directories are hardcoded by upstream. Therefore the following
+# variables shouldn't be changed nor customised.
+INCLUDE_DIR=$(ROOT_DIR)/include
+LIB_DIR=$(ROOT_DIR)/lib
+EXE_DIR=$(ROOT_DIR)/exe
+SOURCES_DIR=$(ROOT_DIR)/src
+EXE_SRCS=brief chrnos ckbref commnt frmdif inspkt mkspk msopck spacit \
+         spkdif spkmrg tobin toxfr versn
+LIB_SRCS=cspice csupport
+
+# Upstream ships individual build scripts for each executable. However, a
+# common file is used in case modifing upstream's script is needed.
+COMMON_EXE=$(SOURCES_DIR)/brief_c/mkprodct.csh
+EXECUTABLES=brief chronos ckbrief commnt frmdiff inspekt mkspk msopck \
+            spacit spkdiff spkmerge tobin toxfr version
+COOK=simple states subpt tictoc
+LIBRARIES=cspice.a csupport.a
+
+### Compiler Flags ###
+# Compiler flags are harcoded by upstream. This Makefile allows for some
+# custimization and accepts standard CC and CFLAGS
+COMMON_CFLAGS=-ansi -O2 -DNON_UNIX_STDIO -I$(INCLUDE_DIR) \
+              -I$(ROOT_DIR)/debian $(CFLAGS) $(CPPFLAGS)
+COMMON_LFLAGS=$(CFLAGS) $(LDFLAGS) -lm
+
+build: build-exe build-cook
+build-lib: builddirs $(addprefix $(LIB_DIR)/,$(LIBRARIES))
+build-exe: build-lib $(addprefix $(EXE_DIR)/,$(EXECUTABLES))
+build-cook: build-lib $(addprefix $(EXE_DIR)/,$(COOK))
+
+$(addprefix $(LIB_DIR)/,$(LIBRARIES)):
+	@for idir in $(LIB_SRCS) ; do \
+		export TKCOMPILER="$(CC)"; \
+		export TKCOMPILEOPTIONS="-c -fPIC -DUIOLEN_int $(COMMON_CFLAGS)"; \
+		export TKLINKOPTIONS="$(COMMON_LFLAGS)"; \
+		cd $(SOURCES_DIR)/$$idir; \
+		csh mkprodct.csh; \
+	done 
+
+$(addprefix $(EXE_DIR)/,$(EXECUTABLES)):
+	@for idir in $(EXE_SRCS) ; do \
+		export TKCOMPILER="$(CC)"; \
+		export TKCOMPILEOPTIONS="-c $(COMMON_CFLAGS)"; \
+		export TKLINKOPTIONS="$(COMMON_LFLAGS)"; \
+		echo "$(SOURCES_DIR)/"$$idir"_c"; \
+		cd "$(SOURCES_DIR)/"$$idir"_c"; \
+		csh $(COMMON_EXE); \
+	done 
+
+$(addprefix $(EXE_DIR)/,$(COOK)):
+	@for idir in cook ; do \
+		export TKCOMPILER="$(CC)"; \
+		export TKCOMPILEOPTIONS="-c $(COMMON_CFLAGS)"; \
+		export TKLINKOPTIONS="$(COMMON_LFLAGS)"; \
+		echo "$(SOURCES_DIR)/"$$idir"_c"; \
+		cd "$(SOURCES_DIR)/"$$idir"_c"; \
+		csh mkprodct.csh; \
+	done 
+
+builddirs:
+	@if [ ! -d $(EXE_DIR) ] ; then \
+		mkdir $(EXE_DIR); \
+	fi
+	@if [ ! -d $(LIB_DIR) ] ; then \
+		mkdir $(LIB_DIR); \
+	fi
+
+distclean:
+	@rm -f $(EXE_DIR)/*
+	@rm -f $(LIB_DIR)/*
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..e7e31f5
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,63 @@
+General Information
+===================
+
+The contents of the CSPICE package are split into four packages in the
+following manner:
+
+ * libcspice1: only contains the SPICE library, distributed as a shared library
+   so it can be linked against.
+
+ * libcspice-dev: contains all the necessary tools to develop applications
+   using the SPICE library. The latter is now distributed as a static library,
+   along with the header files and libcspice.so.
+
+ * cspice: contains mainly the utilities for which upstream has released the
+   source code, a.k.a. the SPICE Toolkit. Also, some example or "cookbook"
+   programs to demonstrate the capabilities of the spice library along with
+   example data can be found in the directory /usr/share/doc/cspice/examples.
+
+ * cspice-doc: contains all the documentation for the library and the Toolkit
+   utilities, in both text and html format. This documentation can be found in
+   the directory /usr/share/doc/cspice once this package is installed. Upstream
+   provides numerous additional tutorials and training lessons that can be
+   found at http://naif.jpl.nasa.gov/naif/tutorials.html.
+
+
+Toolkit Modules' Renaming
+=========================
+
+The toolkit modules are renamed as depicted below because some of them are too generic and in order not to flood the '/usr/bin' folder:
+ 
+ * brief    ->  cspice-brief
+ * chronos  ->  cspice-chronos
+ * ckbrief  ->  cspice-ckbrief
+ * commnt   ->  cspice-commnt
+ * frmdifff ->  cspice-frmdiff
+ * inspekt	->	cspice-inspekt
+ * mkspk	->	cspice-mkspk
+ * msopck	->	cspice-msopck
+ * spacit	->	cspice-spacit
+ * spkdiff	->	cspice-spkdiff
+ * spkmerge	->	cspice-spkmerge
+ * tobin	->	cspice-tobin
+ * toxfr	->	cspice-toxfr
+ * version	->	cspice-version
+
+
+Header Files' Location
+======================
+
+The header files and the static libraries are placed in '/usr/include/cspice'
+instead of simply '/usr/include' due to name conflicts such as f2c.h. This
+implies that code developed using this headers must include i.e.
+'<cspice/SpiceUsr.h>' instead of just '<SpiceUsr.h>'.
+
+
+Why is csupport not distributed? Where is "libcsupport"?
+========================================================
+
+While upstream guarantees backwards compatibility for the SPICE library, that
+won't be the case for the csupport library. Also, users are kindly asked not to
+use this library. See /usr/share/doc/cspice/dscriptn.txt.
+
+ -- Rock Storm <rockstorm at gmx.com>  Sun, 19 Mar 2017 11:12:22 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..220f4a5
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,29 @@
+Source Code Procurement
+=======================
+
+The package's source code is actually constructed from two different upstream
+sources:
+
+ * The C toolkit: http://naif.jpl.nasa.gov/pub/naif/toolkit//C/PC_Linux_GCC_32bit/packages/cspice.tar.Z
+
+ * The FORTRAN toolkit: http://naif.jpl.nasa.gov/pub/naif/toolkit//FORTRAN/PC_Linux_gfortran_32bit/packages/toolkit.tar.Z
+
+The first link corresponds to the C implementation of the library, which is the
+one intended to package. However much of the C code distributed is produced by
+translating FORTRAN files through f2c. Therefore the translated C files are
+substituted by its corresponding FORTRAN counterparts, which are of course
+obtained from the second link. Nevertheless there are 4 files which are not
+produced by direct translation and are left as is:
+
+ * rdker.c
+ * zzldker.c
+ * zzxlated.c
+ * zzxlatei.c
+
+Moreover upstream distributes source code and compiled binaries, all together.
+This binaries are removed for compliance with the DFSG. Besides, upstream
+replicates the very same header files through different subfolder, these are
+also removed for the sake of simplicity.
+
+ -- Rock Storm <rockstorm at gmx.com>  Mon, 20 Mar 2017 18:48:04 +0100
+
diff --git a/debian/SpiceZplDeb.in b/debian/SpiceZplDeb.in
new file mode 100644
index 0000000..645ccfb
--- /dev/null
+++ b/debian/SpiceZplDeb.in
@@ -0,0 +1,3 @@
+#ifndef HAVE_DEBIAN_PLATFORM_SPECIFICATION_H
+#define HAVE_DEBIAN_PLATFORM_SPECIFICATION_H
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6bed36c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cspice (65+dfsg-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #841104)
+
+ -- Rock Storm <rockstorm at gmx.com>  Tue, 01 Nov 2016 09:30:45 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f23ec62
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+debian/SpiceZplDeb.h
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/configure b/debian/configure
new file mode 100755
index 0000000..b24c5c7
--- /dev/null
+++ b/debian/configure
@@ -0,0 +1,112 @@
+#! /bin/sh
+# configuration script: Generate two files (one the be included by FORTRAN
+# files and a C header file) which will deal with the architecture-related
+# differences in upstream code.
+#
+# Author: Rock Storm <rockstorm at gmx.com>
+
+# Set tag names
+zpl_tag="ZPL_TAG"
+system_tag="SYSTEM_TAG"
+os_tag="OS_TAG"
+compiler_tag="COMPILER_TAG"
+endianness_tag="ENDIANNESS_TAG"
+maxopn="MAX_OPN"
+maxlun="MAX_LUN"
+trunc="_TRUNC"
+
+
+# Test whether input file exists
+input_file="debian/SpiceZplDeb.in"
+header_file="debian/SpiceZplDeb.h"
+include_file="debian/splicezpldeb.inc"
+if test -f "$input_file"; then :
+else
+    echo "Error in: $0"
+    echo "Cannot find input file: $input_file . Aborting configuration." 1>&2
+    exit 2
+fi
+
+cp "$input_file" "$header_file"
+
+
+
+#
+# DETECT WORD SIZE
+#
+if test "$DEB_TARGET_ARCH_BITS" = "64" ; then
+
+    echo "    #define CSPICE_PC_LINUX_64BIT_GCC"    		>> $header_file
+    echo "      CHARACTER*(*)	$compiler_tag"				>> $include_file
+    echo "      PARAMETER	( $compiler_tag = 'GCC/64BIT')"	>> $include_file
+
+elif test "$DEB_TARGET_ARCH_BITS" = "32" ; then
+
+    echo "    #define CSPICE_PC_LINUX"              		>> $header_file
+    echo "      CHARACTER*(*)	$compiler_tag"				>> $include_file
+    echo "      PARAMETER	( $compiler_tag = 'GCC')"		>> $include_file
+
+else
+
+    echo "ERROR: Word size could not be determined." 1>&2
+    echo "DEB_TARGET_ARCH_BITS = $DEB_TARGET_ARCH_BITS" 1>&2
+    echo "Aborting configuration." 1>&2
+    exit 1
+    
+fi
+echo ""														>> $include_file
+
+#
+# DETECT ENDIANNESS
+#
+if test "$DEB_TARGET_ARCH_ENDIAN" = "little" ; then
+
+    echo "      CHARACTER*(*)	$endianness_tag"			>> $include_file
+    echo "      PARAMETER	( $endianness_tag = 'LTL-IEEE')">> $include_file
+
+elif test "$DEB_TARGET_ARCH_ENDIAN" = "big" ; then
+
+    echo "      CHARACTER*(*)	$endianness_tag"			>> $include_file
+    echo "      PARAMETER	( $endianness_tag = 'BIG-IEEE')">> $include_file
+
+else
+
+    echo "ERROR: Endianness could not be determined." 1>&2
+    echo "DEB_TARGET_ARCH_ENDIAN = $DEB_TARGET_ARCH_ENDIAN" 1>&2
+    echo "Aborting configuration." 1>&2
+    exit 1
+
+fi
+echo ""														>> $include_file
+
+#
+# DETECT ARCHITECTURE
+#
+if test "$DEB_TARGET_ARCH" = "sparc"   ||
+   test "$DEB_TARGET_ARCH" = "sparc64" ; then
+
+    echo "      INTEGER	$maxopn"							>> $include_file
+    echo "      PARAMETER	( $maxopn = 64)"				>> $include_file
+    echo ""													>> $include_file
+    echo "      INTEGER	$maxlun"							>> $include_file
+    echo "      PARAMETER	( $maxlun = 63)"				>> $include_file
+    echo ""													>> $include_file
+    echo "      INTEGER	$trunc"							    >> $include_file
+    echo "      PARAMETER	( $trunc = 10)"				    >> $include_file
+
+else
+
+    echo "      INTEGER	$maxopn"							>> $include_file
+    echo "      PARAMETER	( $maxopn = 96)"				>> $include_file
+    echo ""													>> $include_file
+    echo "      INTEGER	$maxlun"							>> $include_file
+    echo "      PARAMETER	( $maxlun = 99)"				>> $include_file
+    echo ""													>> $include_file
+    echo "      INTEGER	$trunc"							    >> $include_file
+    echo "      PARAMETER	( $trunc = 11)"				    >> $include_file
+
+fi
+
+
+echo ""       >> $header_file
+echo "#endif" >> $header_file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4842264
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,69 @@
+Source: cspice
+Maintainer: Debian Astronomy Team <debian-astro-maintainers at lists.alioth.debian.org>
+Uploaders: Rock Storm <rockstorm at gmx.com>
+Section: science
+Priority: extra
+Build-Depends: debhelper (>= 9),
+               csh,
+               f2c
+Standards-Version: 3.9.8
+Homepage: http://naif.jpl.nasa.gov/naif/
+Vcs-Git: https://anonscm.debian.org/git/debian-astro/packages/cspice.git
+Vcs-Browser: https://anonscm.debian.org/git/debian-astro/packages/cspice.git
+
+Package: cspice
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: cspice-doc
+Description: Observation geometry system for planetary science missions
+ SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary
+ information system used to compute geometric and event information in
+ analyzing and planning science observations obtained from spacecraft. It is
+ also used in planning missions and conducting numerous engineering functions
+ needed to carry out those missions.
+ .
+ This package provides the different utilities comprising the CSPICE toolkit.
+
+Package: libcspice-dev
+Architecture: any
+Section: libdevel
+Depends: libcspice1 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Development files for the CSPICE library
+ SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary
+ information system used to compute geometric and event information in
+ analyzing and planning science observations obtained from spacecraft. It is
+ also used in planning missions and conducting numerous engineering functions
+ needed to carry out those missions.
+ .
+ This package provides header files and the CSPICE library in static form.
+
+Package: libcspice1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: CSPICE shared library
+ SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary
+ information system used to compute geometric and event information in
+ analyzing and planning science observations obtained from spacecraft. It is
+ also used in planning missions and conducting numerous engineering functions
+ needed to carry out those missions.
+ .
+ This package provides the shared libraries comprising the CSPICE library.
+
+
+Package: cspice-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: Documentation for the CSPICE library and toolkit
+ SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary
+ information system used to compute geometric and event information in
+ analyzing and planning science observations obtained from spacecraft. It is
+ also used in planning missions and conducting numerous engineering functions
+ needed to carry out those missions.
+ .
+ This package provides user guides and module's documentation, in plain text
+ and HTML formats, for both the CSPICE library and toolkit.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..34bf280
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CSPICE
+Source: https://naif.jpl.nasa.gov/naif/toolkit.html
+
+Files: *
+Copyright: none
+License: public-domain
+ This software and any related materials were created by the California
+ Institute of Technology (Caltech) under a U.S. government contract with the
+ National Aeronautics and Space Administration (NASA). The software is
+ Technology and Software Publicly Available under U.S. export laws and is
+ provided "as-is" to the recipient without warranty of any kind, including any
+ warranties of performance or merchantability or fitness for a particular use
+ or purpose (as set forth in United States UCC§2312-§2313) or for any purpose
+ whatsoever, for the software and related materials, however used.
+ .
+ In no event shall Caltech, its Jet Propulsion Laboratory, or NASA be liable
+ for any damages and/or costs, including, but not limited to, incidental or
+ consequential damages of any kind, including economic damage or injury to
+ property and lost profits, regardless of whether Caltech, JPL, or NASA be
+ advised, have reason to know, or, in fact, shall know of the possibility.
+ .
+ Recipient bears all risk relating to quality and performance of the software
+ and any related materials, and agrees to indemnify Caltech and NASA for all
+ third-party claims resulting from the actions of recipient in the use of the
+ software.
+
+Files: debian/*
+Copyright: 2016-2017 Rock Storm <rockstorm at gmx.com>
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/cspice-doc.doc-base b/debian/cspice-doc.doc-base
new file mode 100644
index 0000000..4dd9f94
--- /dev/null
+++ b/debian/cspice-doc.doc-base
@@ -0,0 +1,22 @@
+Document: cspice
+Title: CSPICE Documentation 
+Author: NASA's Navigation and Ancillary Information Facility (NAIF)
+Abstract: This manual contains
+ - Introduction to the SPICE system.
+ - Overview of the C language version of SPICE, CSPICE.
+ - Brief description of the CSPICE Toolkit layout and contents.
+ - A list of most frequently used CSPICE APIs grouped by category.
+ - A list of all CSPICE APIs with hyperlinks to API specific documentation.
+ - An index that helps identify the proper routine based on functional
+   requirements.
+ - Reference documents describing the various SPICE subsystems.
+ - User's Guides, the set of manuals for those applications included in the
+   CSPICE Toolkit.
+Section: Science/Astronomy
+
+Format: text
+Files: /usr/share/doc/cspice/*
+
+Format: HTML
+Index: /usr/share/doc/cspice/html/index.html
+Files: /usr/share/doc/cspice/html/*
diff --git a/debian/cspice-doc.install b/debian/cspice-doc.install
new file mode 100644
index 0000000..dabe78d
--- /dev/null
+++ b/debian/cspice-doc.install
@@ -0,0 +1 @@
+doc/* usr/share/doc/cspice
diff --git a/debian/cspice.docs b/debian/cspice.docs
new file mode 100644
index 0000000..312dba4
--- /dev/null
+++ b/debian/cspice.docs
@@ -0,0 +1,2 @@
+debian/README.Debian
+debian/README.source
diff --git a/debian/cspice.examples b/debian/cspice.examples
new file mode 100644
index 0000000..fb7e925
--- /dev/null
+++ b/debian/cspice.examples
@@ -0,0 +1,5 @@
+exe/simple
+exe/states
+exe/subpt
+exe/tictoc
+data/*
diff --git a/debian/cspice.install b/debian/cspice.install
new file mode 100644
index 0000000..f16c524
--- /dev/null
+++ b/debian/cspice.install
@@ -0,0 +1,14 @@
+exe/cspice-brief usr/bin
+exe/cspice-chronos usr/bin
+exe/cspice-ckbrief usr/bin
+exe/cspice-commnt usr/bin
+exe/cspice-frmdiff usr/bin
+exe/cspice-inspekt usr/bin
+exe/cspice-mkspk usr/bin
+exe/cspice-msopck usr/bin
+exe/cspice-spacit usr/bin
+exe/cspice-spkdiff usr/bin
+exe/cspice-spkmerge usr/bin
+exe/cspice-tobin usr/bin
+exe/cspice-toxfr usr/bin
+exe/cspice-version usr/bin
diff --git a/debian/cspice.manpages b/debian/cspice.manpages
new file mode 100644
index 0000000..971fba8
--- /dev/null
+++ b/debian/cspice.manpages
@@ -0,0 +1,2 @@
+debian/man/cspice.7
+debian/man/cspice-*.1
diff --git a/debian/libcspice-dev.docs b/debian/libcspice-dev.docs
new file mode 100644
index 0000000..312dba4
--- /dev/null
+++ b/debian/libcspice-dev.docs
@@ -0,0 +1,2 @@
+debian/README.Debian
+debian/README.source
diff --git a/debian/libcspice-dev.install b/debian/libcspice-dev.install
new file mode 100644
index 0000000..e6e58f9
--- /dev/null
+++ b/debian/libcspice-dev.install
@@ -0,0 +1,4 @@
+include/*.h usr/include/cspice
+debian/SpiceZplDeb.h usr/include/cspice
+lib/lib*.so usr/lib
+lib/lib*.a usr/lib
diff --git a/debian/libcspice1.docs b/debian/libcspice1.docs
new file mode 100644
index 0000000..312dba4
--- /dev/null
+++ b/debian/libcspice1.docs
@@ -0,0 +1,2 @@
+debian/README.Debian
+debian/README.source
diff --git a/debian/libcspice1.install b/debian/libcspice1.install
new file mode 100644
index 0000000..807b7d5
--- /dev/null
+++ b/debian/libcspice1.install
@@ -0,0 +1 @@
+lib/lib*.so.* usr/lib
diff --git a/debian/man/cspice-brief.1 b/debian/man/cspice-brief.1
new file mode 100644
index 0000000..e8f6351
--- /dev/null
+++ b/debian/man/cspice-brief.1
@@ -0,0 +1,111 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-BRIEF 1
+.SH NAME
+cspice-brief \- displays a summary for binary SPK or binary PCK files
+.SH SYNOPSIS
+.B cspice-brief
+.RI [OPTIONS]
+.RI FILE
+[\fIFILE\fR ...]
+.SH DESCRIPTION
+.B cspice-brief
+displays a contents and time coverage summary for one or more binary SPK or  binary PCK files.
+It can display a summary for each individual file listed on the command line, in a list file, and/or a meta-kernel, or for all files as if they were combined into a single file. It can display coverage boundaries as Ephemeris Times (ET) in calendar format, if requested rounded to the nearest second, minute, hour, or day, as ET seconds past J2000, as UTC times in "year-month-day" format , or as UTC times in "day-of-year" format. The program can restrict summary display to only specified b [...]
+.PP
+An LSK file must be provided on the command line to display times in UTC  formats. FK file(s) must be provided on the command line to display names of any frames that are not built into the Toolkit.
+.PP
+.B cspice-brief
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.SS Options Controlling Output Summary Format
+.TP
+.BR \-c
+Display bodies/frames in the format that shows their centers-of-motion (for SPKs) or relative-to-frames (for binary PCKs).
+.TP
+.BR \-a
+Treat all files as a single file. Display combined summary for all files as if all data from these files were merged into a single file.
+.TP
+.BR \-t
+Display summary in a tabular format.
+.TP
+.BR \-s
+Re-order records in the tables of the tabular output in such way that the records for a particular body or frame are grouped together and sorted by the start time within each group. This option supersedes \fB\-g\fR and has no effect without \fB\-t\fR. This option re-sorts tabular display tables already ordered by \fB\-o\fR.
+.TP
+.BR \-g
+Re-order records in the tables of the tabular output such that all records with the same coverage are grouped together. This option has no effect  without \fB\-t\fR and it regroups tables already ordered by \fB\-o\fR.
+.TP
+.BR \-n
+Display bodies/frames using numeric IDs ("ID") rather than the default  name/ID combinations ("NAME (ID)").
+.TP
+.BR \-o
+Order bodies/frames in the table headers in the default display, or in the left columns in the tabular display, by name rather than by numeric ID. This option is ignored when \fB\-n\fR is specified.
+\br
+.SS Options Controlling Output Time Format
+.TP
+.BR \-etsec
+Display time tags as ET seconds past J2000 in the "SSSSSSSSSSSS.DDDDDD" format.
+.TP
+.BR \-utc
+Display time tags as UTC in the "YYYY-MON-DD HR:MN:SC.DDD" format (needs LSK).
+.TP
+.BR \-utcdoy
+Display time tags as UTC times in the "YYYY-DOY // HR:MN:SC.DDD" format (needs LSK).
+.TP
+.BR \-sec
+Display default calendar ET time tags "rounded inward" to the nearest second.
+This option has no effect when either \fB\-etsec\fR, \fB\-utc\fR or \fB\-utcdoy\fR is used.
+If more than one of the \fB\-sec\fR, \fB\-min\fR, \fB\-hour\fR, and \fB\-day\fR options is specified, the one providing the "highest" time resolution takes precedence, namely \fB\-sec\fR > \fB\-min\fR > \fB\-hour\fR > \fB\-day\fR.
+.TP
+.BR \-min
+Display default calendar ET time tags "rounded inward" to the nearest minute.
+Effectiveness and precedence rules for the \fB\-sec\fR apply to this option as well.
+.TP
+.BR \-hour
+Display default calendar ET time tags "rounded inward" to the nearest hour.
+Effectiveness and precedence rules for the \fB\-sec\fR apply to this option as well.
+.TP
+.BR \-day
+Display default calendar ET time tags "rounded inward" to the nearest day.
+Effectiveness and precedence rules for the \fB\-sec\fR apply to this option as well.
+.SS Options Filtering Summary
+.TP
+\fB\-sb\fR\fIBODY\fR, \fB\-sb\fR\fI[MIN,MAX]\fR, \fB\-\fR\fIBODY\fR
+Display summary information only for the specified body/frame name or numeric ID \fIBODY\fR. The use of just \fB\-\fR followed by the body/frame name or numeric ID is deprecated.
+If the body/frame name contains spaces, these spaces must be replaced with underscores ("_").
+A range of numeric IDs in the form \fI[MIN,MAX]\fR may be used instead of a single name or numeric ID. The range can be open on either end, producing a summary for all numeric IDs greater than the specified value (\fI[MIN,:]\fR) or less than the specified value (\fI[:,MAX]\fR).
+Up to 100 individual \fB\-sb\fR and \fB\-sc\fR constraints can be specified at the same time, they will be combined using logical "OR".
+.TP
+\fB\-sc\fR\fICENTER\fR, \fB\-sc\fR\fI[MIN,MAX]\fR
+Display summary information only for the specified center-of-motion/relative-to-frame name or numeric ID \fICENTER\fR.
+Formatting rules for the \fB\-sb\fR option apply to this option as well.
+.TP
+\fB\-at\fR \fITIME\fR
+Display summary information only for the bodies/frames whose coverage intervals contains the specified \fITIME\fR.
+The time can be provided in any format supported by SPICE's TPARSE routine  as long as it doesn't contain spaces.
+This option overrides \fB\-from\fR/\fB\-to\fR.
+.TP
+\fB\-from\fR \fITIME\fR \fB\-to\fR \fITIME\fR
+Display summary information only for the bodies/frames whose coverages contain the specified time interval.
+Formatting rules for the \fB\-at\fR option apply to this option as well.
+If either \fB\-from\fR or \fB\-to\fR is specified by itself it has the same effect as the \fB\-at\fR option.
+If the time provided with \fB\-from\fR is later than the time provided with \fB\-to\fR they will be re-ordered internally.
+.SS Miscellaneous Options
+.TP
+\fB\-f\fR \fILIST_FILE\fR
+Display a summary for the files whose names are listed in the text file \fILIST_FILE\fR.
+The file names can be provided one-per-line or a few-per-line separated by one or more spaces.
+.TP
+\fB\-h\fR
+Display a complete usage message listing all options and exit.
+.TP
+\fB\-v\fR
+Display just the version line and exit.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-chronos.1 b/debian/man/cspice-chronos.1
new file mode 100644
index 0000000..e53043f
--- /dev/null
+++ b/debian/man/cspice-chronos.1
@@ -0,0 +1,105 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-CHRONOS 1
+.SH NAME
+cspice-chronos \- convert time from one supported system/type to another
+.SH SYNOPSIS
+.B cspice-chronos
+\fB\-setup\fR \fIFILE\fR
+.br
+.RS 15
+\fB\-from\fR \fITIME_SYSTEM\fR
+.br
+\fB\-to\fR \fITIME_SYSTEM\fR
+.br
+\fB\-time\fR \fITIME\fR | \fB-batch\fR
+.br
+[\fIOPTIONS\fR]
+
+.SH DESCRIPTION
+\fBcspice-chronos\fR
+is a time conversion tool capable of converting times between the following time systems:
+.br
+.RS 4
+UTC: Universal Time Coordinated (types: SCET, ERT, ETT, LT)
+.br
+ET: Ephemeris Time (types: SCET, ERT, ETT, LT, SECONDS)
+.br
+SCLK: Spacecraft On-board Clock Time (types: SCLK, HEX, TICKS)
+.br
+ST: Local True Solar Time (types: LST, LSU)
+.RE
+.PP
+.B cspice-chronos
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-setup\fR \fISETUP_FILE\fR
+Specify a setup file name or directly list the names of the SPICE kernels to be used.
+If \fISETUP_FILE\fR is not present or is blank, it tries to obtain it from the environment variable CHRONOS_SETUP_FILE.
+.TP
+\fB\-from\fR \fITIME_SYSTEM\fR
+Specify the time system of the input time.
+.TP
+\fB\-fromtype\fR \fITIME_TYPE\fR
+Specify the time type of the input time.
+If it's not present or is blank, it is assumed the default time type for the input time system (SCET for UTC and ET, SCLK for SCLK, and LST for LST).
+.TP
+\fB\-to\fR \fITIME_SYSTEM\fR
+Specify the time system of the output time.
+.TP
+\fB\-totype\fR \fITIME_TYPE\fR
+Specify the time type of the output time.
+If it's not present or is blank, it is assumed the default time type for the output time system (SCET for UTC and ET, SCLK for SCLK and LST for LST).
+.TP
+\fB\-format\fR \fIOUTPUT_FORMAT\fR
+Specify a custom format for the output time.
+If a format specification is not present or is blank, it looks for a specification in the setup file and, if such is also not available, it uses the default format.
+.TP
+\fB\-time\fR \fITIME\fR
+Specify the input time.
+Most time types of UTC and ET systems require input time to be in a form of a time string recognized by TIME subsystem of SPICE.
+.TP
+\fB\-batch\fR
+Tell the program to take input time(s) from standard input instead of the command line.
+If it's present, the program ignores any input time provided after the \fB-time\fR option.
+.TP
+\fB\-sc\fR \fISC_ID\fR
+Specify the NAIF ID for the spacecraft.
+If \fISC_ID\fR is not present, the program looks for it in the setup file.
+.TP
+\fB\-center\fR \fIBODY_ID\fR
+Specify the NAIF ID for the center body.
+If \fIBODY_ID\fR is not present, the program looks for it in the setup file.
+.TP
+\fB\-landingtime\fR \fITIME\fR
+Specify the UTC time of the landing.
+If \fITIME\Fr is not present, the program looks for it in the setup file.
+.TP
+\fB\-sol1index\fR \fIINDEX\fR
+Specify the SOL index for the first day on surface.
+If \fIINDEX\fR is not present, the program looks for it in the setup file.
+.TP
+\fB\-nolabel\fR
+Tell the program to not display [SYSTEM]/[TYPE] following the output time string.
+.TP
+\fB\-trace\fR
+Tell the program to display trace information including, complete command line, names of the loaded SPICE kernel files, all relevant setup information, etc.
+This option overrules the \fB-nolabel\fR option.
+.TP
+\fB\-template\fR
+Display setup file template.
+.TP
+\fB\-h\fR, \fB\-help\fR
+Display help information.
+.TP
+\fB\-u\fR, \fB\-usage\fR
+Display usage information.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-ckbrief.1 b/debian/man/cspice-ckbrief.1
new file mode 100644
index 0000000..f3e1e2e
--- /dev/null
+++ b/debian/man/cspice-ckbrief.1
@@ -0,0 +1,89 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-CKBRIEF 1
+.SH NAME
+cspice-ckbrief \- displays a summary for binary CK files
+.SH SYNOPSIS
+.B cspice-ckbrief
+.RI [OPTIONS]
+.RI FILE
+[\fIFILE\fR ...]
+
+
+.SH DESCRIPTION
+.PP
+.B cspice-ckbrief
+displays a summary of the contents and time coverage for one or more binary CK files.
+It displays a summary for each CK file listed on the command line, in a list file, and/or a meta-kernel. It can display coverage boundaries as ephemeris time (ET) in calendar format, as UTC time in "year-month-day" or "day-of-year" format, or as on-board clock (SCLK) time in string or encoded format. It can display the summary in a variety of formats, with or without showing the names of the frames associated with spacecraft or structure IDs or the names/IDs of the frames with respect to [...]
+.PP
+In order for the program to display times in the default format or any other format (except encoded SCLK), both an LSK file and an SCLK file containing required time correlation data must be provided on the command line, in a list file (specified with the option \fB\-f\fR described later in this document), or in a meta-kernel file given on the command line or in the list file.
+.PP
+.B cspice-ckbrief
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+
+.SH OPTIONS
+.SS Options Controlling Output Summary Format
+.TP
+.BR \-dump
+Display a summary of interpolation interval boundaries, the actual time periods for which the file provides data, for each of the segments in the file.
+.TP
+.BR \-nm
+Display a summary of segment boundaries for each of the structures in the file.
+This option is ignored when \fB\-dump\fR is specified.
+.TP
+.BR \-rel
+Display, in the additional right-hand column, frames with respect to which the orientation is given in the CK segments. For frames known to SPICE, built-in or defined in the FK files provided to the program along with CK, LSK, and SCLK files, the program displays names; for unrecognized frames, the program displays IDs.
+This option is ignored when \fB\-g\fR is specified.
+.TP
+.BR \-n
+Display frame names associated with the structure IDs instead of the numeric structure IDs. For frames known to SPICE, defined in the FK files provided to the program, the program displays names; for unrecognized frames, the program displays IDs with the prefix "NO FRAME FOR <id>".
+.TP
+.BR \-t
+Use the tabular display format in which coverage information for all structures from each file is presented in a single table with the structure IDs provided in the left column rather than in the table headers.
+.TP
+.BR \-g
+Use the grouping display format, in which information for structures with the same coverage is grouped together into blocks with the coverage begin and end time shown first, and the list of structure IDs shown below them.
+This option is ignored when \fB\-dump\fR or \fB\-t\fR are specified.
+
+.SS Options Controlling Output Time Format
+In order for the program to display times in the default format or any other format (except encoded SCLK), both an LSK file and an SCLK file containing required time correlation data must be provided.
+.PP
+When multiple options controlling the output time format are given at the same time, the option specified last on the command line takes precedence.
+.TP
+.BR \-utc
+Display time tags as UTC in the "YYYY-MON-DD HR:MN:SC.DDD" format (needs LSK and SCLK).
+.TP
+.BR \-utcdoy
+Display time tags as UTC times in the "YYYY-DOY // HR:MN:SC.DDD" format (needs LSK and SCLK).
+.TP
+.BR \-sclk
+Display time tags as SCLK strings (needs LSK and SCLK).
+.TP
+.BR \-dpsclk
+Display time tags as encoded SCLKs (ticks).
+
+.SS Miscellaneous Options
+.TP
+\fB\-a\fR
+Display a summary for multiple CKs listed on the command line and/or provided in meta-kernels and/or a list file as if all data from these CKs were provided in a single CK file.
+.TP
+\fIID\fR
+One or more (up to 100) structure IDs may be listed on the command line to tell BRIEF to display summary information only for the specified structure(s).
+.TP
+\fB\-f\fR \fILIST_FILE\fR
+Display a summary for the files whose names are listed in the text file \fILIST_FILE\fR.
+The file names can be provided one-per-line or a few-per-line separated by one or more spaces.
+.TP
+\fB\-h\fR
+Display a complete usage message listing all options and exit.
+.TP
+\fB\-v\fR
+Display just the version line and exit.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-commnt.1 b/debian/man/cspice-commnt.1
new file mode 100644
index 0000000..0fe037b
--- /dev/null
+++ b/debian/man/cspice-commnt.1
@@ -0,0 +1,50 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-COMMNT 1
+.SH NAME
+cspice-commnt \- manipulate comments from SPICE binary kernel files
+.SH SYNOPSIS
+.B cspice-commnt
+.br
+.B cspice-commnt
+[\fIOPTIONS\fR]
+.br
+.B cspice-commnt
+\fB\-a\fR | \fB\-e\fR \fIKERNEL_FILE\fR \fICOMMENT_FILE\fR
+.br
+.B cspice-commnt
+\fB\-r\fR | \fB\-d\fR \fIKERNEL_FILE\fR
+
+.SH DESCRIPTION
+\fBcspice-commnt\fR
+is a program that reads, adds, extracts, or deletes comments from SPICE binary kernel files.
+.PP
+.B cspice-commnt
+can be used as a menu driven interactive program or as a command line utility.
+.PP
+.B cspice-commnt
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-a\fR \fIKERNEL_FILE\fR \fICOMMENT_FILE\fR
+Add comments to a kernel file from a text file.
+.TP
+\fB\-e\fR \fIKERNEL_FILE\fR \fICOMMENT_FILE\fR
+Extract comments from a kernel file to a text file.
+.TP
+\fB\-r\fR \fIKERNEL_FILE\fR
+Read the comments in a kernel file, displaying the results on the Standard Output.
+.TP
+\fB\-d\fR \fIKERNEL_FILE\fR
+Delete all of the comments in a kernel file.
+.TP
+\fB\-h\fR
+Display usage information.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-frmdiff.1 b/debian/man/cspice-frmdiff.1
new file mode 100644
index 0000000..cc2f1ed
--- /dev/null
+++ b/debian/man/cspice-frmdiff.1
@@ -0,0 +1,135 @@
+.TH CSPICE-FRMDIFF 1
+.SH NAME
+cspice-frmdiff \- compute differences between two reference frames
+.SH SYNOPSIS
+\fBcspice-frmdiff\fR [\fIOPTIONS\fR] \fIFIRST_KERNEL\fR \fISECOND_KERNEL\fR
+.br
+\fBcspice-frmdiff\fR [\fIOPTIONS\fR] \fIKERNEL\fR
+.br
+\fBcspice-frmdiff\fR [\fIOPTIONS\fR]
+
+.SH DESCRIPTION
+.B cspice-frmdiff
+provides means for sampling orientation of a single reference frame, or for comparing orientations of two reference frames known to SPICE and supported by data from SPICE kernels.
+.PP
+To sample orientation of a single frame the program computes a set of transformations from one frame (the "from" frame) to another frame (the "to" frame) over an interval of time with fixed or variable time step, using a given set of kernel files. Then, depending on the requested type of output report, it prints to the screen a table containing these transformations expressed as total rotation angles and axes, quaternions, matrices or Euler angles and angular velocities, or only magnitud [...]
+.PP
+To compare orientations of two frames the program computes a set of transformations from one frame (the "from" frame) to another frame (the "to" frame) over an interval of time with a fixed or variable time step using one set of kernels, computes a set of transformations for the same or a different "from"-"to" frame combination at the same times using the same or a different set of kernels, and then computes the difference in rotation and angular velocity between the corresponding transf [...]
+.PP
+.B cspice-frmdiff
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-k\fR \fIKERNEL\fR ...
+Specify the list of additional kernels that should be used for both frame transformations to be computed.
+Kernel names must be separated by spaces.
+.TP
+\fB\-f1\fR \fIFRAME\fR
+Specify the "from" frame for the first (or only) frame transformation to be computed. This frame must be known to SPICE and can be specified using the frame name, ID, or class ID.
+.TP
+\fB\-t1\fR \fIFRAME\fR
+Specify the "to" frame for the first (or only) frame transformation to be computed. This frame must be known to SPICE and can be specified using the frame name, ID, or class ID.
+.TP
+\fB\-c1\fR \fIFRAME\fR
+Specify the "coverage" frame to be used to look up the first coverage window. This frame must be known to SPICE and must be either a PCK-based (Class 2) or CK-based (Class 3) frame. It can be specified using the frame name, frame ID, or, if the first (or only) primary kernel is a CK or a binary PCK, class ID. If the first (or only) primary kernel file is a CK or a binary PCK, it must contain data for this frame.
+.TP
+\fB\-k1\fR \fIKERNEL\fR ...
+Specify the list of additional kernels that should be used only for the first frame transformation to be computed. Kernel names must be separated by spaces.
+.TP
+\fB\-f2\fR \fIFRAME\fR
+Specify the "from" frame for the second (or only) frame transformation to be  computed. This frame must be known to SPICE and can be specified using the frame name, ID, or class ID.
+.TP
+\fB\-t2\fR \fIFRAME\fR
+Specify the "to" frame for the second (or only) frame transformation to be computed. This frame must be known to SPICE and can be specified using the name, ID, or class ID.
+.TP
+\fB\-c2\fR \fIFRAME\fR
+Specify the "coverage" frame to be used to look up the second coverage window. This frame must be known to SPICE and must be either a PCK-based (Class 2) or CK-based (Class 3) frame. It can be specified using the frame name, frame ID, or, if the second (or only) primary kernel is a CK or a binary PCK, class ID. If the second (or only) primary kernel file is a CK or a binary PCK, it must contain data for this frame.
+.TP
+\fB\-k2\fR \fIKERNEL\fR ...
+Specify the list of additional kernels that should be used only for the second frame transformation to be computed. Kernel names must be separated by spaces.
+.TP
+\fB\-b\fR \fITIME\fR
+Specify the coverage window begin time. This option must be provided when no primary kernels and "coverage" frames are specified. The time string provided using this option can be in any form accepted by SPICE.
+.TP
+\fB\-e\fR \fITIME\fR
+Specify the coverage window end time. This option must be provided when no primary kernels and "coverage" frames are specified. The time string provided using this option can be in any form accepted by SPICE.
+.TP
+\fB\-n\fR \fINUMBER\fR
+Specify the number of points within the coverage window, for which the frame transformation(s) must be computed. The number must be an integer between 1 and 1,000,000. The default value is 1000.
+.TP
+\fB\-s\fR \fISTEP\fR
+specify the step, in seconds, for determining points within the coverage window, for which the frame transformation(s) must be computed. The step must be greater than 1E-8.
+This option supersedes \fB\-n\fR.
+.TP
+\fB\-t\fR \fIREPORT_TYPE\fR
+Specify the type of report that the program should display.
+.br
+By default, \fIREPORT_TYPE\fR is \fBbasic\fR, which means it will display only the maximum rotation angle and angular velocity (AV) magnitude.
+.br
+If \fIREPORT_TYPE\fR is \fBstats\fR, it will display statistics on rotation angles and AVs.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpaa\fR, it will display a table of rotation angles and axes.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpm\fR, it will display a table of matrices.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpqs\fR, it will display a table of SPICE-style quaternions.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpqo\fR, it will display a table of "other"-style quaternions.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpea\fR, it will display a table of Euler angles.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpc\fR, it will display a table of coverage intervals.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpg\fR, it will display a table of coverage gaps.
+.TP
+\fB\-a\fR \fIAV_FLAG\fR
+Tell the program whether angular velocities should be computed along with rotations.
+.br
+By default, \fIAV_FLAG\fR is \fBno\fR, which means that only rotations are computed.
+.br
+If \fIAV_FLAG\fR is \fByes\fR, rotations and angular velocities are computed.
+.TP
+\fB\-m\fR \fIAV_FRAME\fR
+Tell the program in which frame angular velocities should be reported.
+.br
+By default, \fIAV_FRAME\fR is \fBfrom\fR, which means it will output angular velocities in "from" frame.
+.br
+If \fIAV_FRAME\fR is \fBto\fR, it will output angular velocities in "to" frame.
+.TP
+\fB\-f\fR \fITIME_TYPE\fR
+Specify the type of time tag to be used in tabular reports.
+.br
+By default, \fITIME_TYPE\fR is \fBet\fR, which means it will display times as TDB seconds past J2000.
+.br
+If \fITIME_TYPE\fR is \fBsclk\fR, it will display times as string SCLKs.
+.br
+If \fITIME_TYPE\fR is \fBsclkd\fR, it will display times as decimal SCLKs.
+.br
+If \fITIME_TYPE\fR is \fBticks\fR, it will display times as encoded SCLK ticks.
+.br
+If \fITIME_TYPE\fR is \fIPICT\fR, it will display times in any time format picture accepted by SPICE (for example "YYYY-MM-DDTHR:MN:SC.### ::RND" for time tags for be displayed as UTCs in ISO date format)
+.TP
+\fB\-o\fR \fIAXE\fR ...
+Specify the list of axes determining the order of rotations used for converting rotation matrices to Euler angles. The value must be a space-delimited list of three axes from the set of "X", "Y", "Z" (case-insensitive). The second axis must differ from the first and third axes. The default order is "Z Y X".
+.TP
+\fB\-x\fR \fIUNIT\fR
+Specify the units for the angles in the rotation angle and axis dump (\fB\-t dumpaa\fR) and Euler angle dump (\fB\-t dumpea\fR) reports; ignored for all other report types. Supported units are: \fBradians\fR (by default), \fBdegrees\fR, \fBarcminutes\fR, \fBarcseconds\fR, \fBhourangle\fR, \fBminuteangle\fR and \fBsecondangle\fR.
+.TP
+\fB\-d\fR \fINUMBER\fR
+Specify the number of significant digits in the output numeric times (TDB seconds past J2000, decimal SCLKs and encoded SCLK ticks) and rotation component values or rotation difference component values included in the dump, coverage and coverage gap reports. The number must be an integer between 6 and 17. The default value is 14.
+.TP
+\fB\-v\fR
+Display only the version line. This option overrides all other options.
+.TP
+\fB\-u\fR
+Display the usage message. This option overrides all other options except \fB\-v\fR.
+.TP
+\fB\-h\fR
+Display a brief help message. This option overrides all other options except \fB\-v\fR and \fB\-u\fR.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-inspekt.1 b/debian/man/cspice-inspekt.1
new file mode 100644
index 0000000..bd6525c
--- /dev/null
+++ b/debian/man/cspice-inspekt.1
@@ -0,0 +1,22 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-INSPEKT 1
+.SH NAME
+cspice-inspekt \- interactively examine the contents of an E-Kernel
+
+.SH SYNOPSIS
+.B cspice-inspekt
+
+.SH DESCRIPTION
+.B cspice-inspekt
+is an interactive command-line program that examines the contents of an events component (ESQ) of an E-kernel. To access the built-in help please type "help;" (or "HELP;"), a menu will be displayed and at the prompt "Option: " type the number or letter shown in parentheses to the left of the topic of interest and hit RETURN. You will be presented with a screen of text that describes the topic.
+.PP
+.B cspice-inspekt
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-mkspk.1 b/debian/man/cspice-mkspk.1
new file mode 100644
index 0000000..f8ecc13
--- /dev/null
+++ b/debian/man/cspice-mkspk.1
@@ -0,0 +1,57 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-MKSPK 1
+.SH NAME
+cspice-mkspk \- creates an SPK file from trajectory information.
+
+.SH SYNOPSIS
+\fBcspice-mkspk\fR \fB\-setup\fR \fISETUP_FILE\fR [\fIOPTIONS\fR]
+.br
+\fBcspice-mkspk\fR \fB\-u\fR | \fB\-h\fR
+.br
+\fBcspice-mkspk\fR \fB\-template\fR [\fIIMPUT_TYPE\fR \fIOUTPUT_TYPE\fR]
+
+.SH DESCRIPTION
+.B cspice-mkspk
+generates a new, or appends data to an existing, spacecraft or target body's ephemeris file in SPICE SPK format using one of the following SPK types: 5, 8, 9, 10, 12, 13, 15, 17. This SPK file is a binary file constructed according to the SPICE DAF (Double Precision Array File) architecture, containing one or more SPK data segments.
+.PP
+The program accepts one ASCII text file containing descriptions of input data (setup file) and a second ASCII text file (input file) containing the source ephemeris data to be processed.
+.PP
+Source ephemeris data can be time ordered lists of states (positions and velocities), sets of conic elements, sets of two-line elements, or a single set of equinoctial elements. All input data must be defined in a reference frame and relative to a body center both of which are specified in the setup file.
+.PP
+.B cspice-mkspk
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-setup\fR \fISETUP_FILE\fR
+Provide the setup file name. If input and output file names are provided, any file names assigned using setup file keywords are ignored.
+.TP
+\fB\-input\fR \fIIMPUT_FILE\fR
+Provide the input data file name. The input file must already exist.
+.TP
+\fB\-output\fR \fIOUTPUT_FILE\fR
+Provide the output SPK file name. The output must not exist unless the \fB\-append\fR option or the corresponding setup file keyword tells the program to run in the append mode.
+.TP
+\fB\-append\fR
+Append new data to the specified output SPK file. If the SPK file specified after the \fB-output\fR option doesn't exist, then a new SPK file with the name specified will be created.
+.br
+Caution: if the program fails for any reason, it, in most cases, deletes the output file, even if it was appending data to an existing SPK file.
+.TP
+\fB\-u\fR, \fB\-usage\fR
+Display usage information.
+.TP
+\fB\-h\fR, \fB\-help\fR
+Display a brief summary of the program's functionality.
+.TP
+\fB\-t\fR, \fB\-template\fR [\fIIMPUT_TYPE\fR \fIOUTPUT_TYPE\fR]
+Display either the complete setup file template or a type-specific setup file template and exit.
+If specified by itself, the program displays the complete setup file template including all required, optional, and conditional setup file keywords.
+To display a more concise, type-specific template, the \fIIMPUT_TYPE\fR (\fBstates\fR, \fBelements\fR, \fBeq_elements\fR, or \fBtl_elements\fR) and the \fIOUTPUT_TYPE\fR (\fB5\fR, \fB8\fR, \fB9\fR, \fB10\fR, \fB12\fR, \fB13\fR, \fB15\fR or \fB17\fR) can be specified. Such templates will include only keywords applicable for the specified type combination.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-msopck.1 b/debian/man/cspice-msopck.1
new file mode 100644
index 0000000..f1b4513
--- /dev/null
+++ b/debian/man/cspice-msopck.1
@@ -0,0 +1,41 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-MSOPCK 1
+.SH NAME
+cspice-msopck \- converts attitude data into a SPICE C-kernel.
+
+.SH SYNOPSIS
+\fBcspice-msopck\fR \fISETUP_FILE\fR \fIINPUT_DATA_FILE\fR \fIOUTPUT_CK_FILE\fR
+.br
+\fBcspice-msopck\fR [\fIOPTIONS\fR]
+
+.SH DESCRIPTION
+.B cspice-msopck
+generates a new, or appends data to an existing, attitude data file in SPICE CK format using one of the following CK types: 1, 2, 3. This CK file is a binary file constructed according to the SPICE DAF (Double Precision Array File) architecture, containing one or more CK data segments.
+.PP
+The program accepts one ASCII text file containing descriptions of input data (setup file) and a second ASCII text file (input file) containing the source attitude data to be processed.
+.PP
+Source attitude data can be time ordered lists of quaternions, Euler angles, or matrices tagged with UTC, spacecraft on-board clock (SCLK), or Ephemeris Time (ET) times. All input data must provide attitude for a structure relative to a reference frame, both of which are specified in the setup file.
+.PP
+The program buffers the input data by chunks of 100,000 records and writes each chunk into a separate CK segment. It uses the same point as the end of the previous and the start of the next chunk to provide continuity at the segment boundary.
+.PP
+.B cspice-msopck
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-u\fR, \fB\-usage\fR
+Display a brief usage message. This is the default behaviour if the command line has too few or too many arguments.
+.TP
+\fB\-h\fR, \fB\-help\fR
+Display a brief help message.
+.TP
+\fB\-t\fR, \fB\-template\fR
+Display the complete setup file template.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-spacit.1 b/debian/man/cspice-spacit.1
new file mode 100644
index 0000000..7a09728
--- /dev/null
+++ b/debian/man/cspice-spacit.1
@@ -0,0 +1,24 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-SPACIT 1
+.SH NAME
+cspice-spacit \- manipulate and examine SPICE binary kernels
+
+.SH SYNOPSIS
+.B cspice-spacit
+
+.SH DESCRIPTION
+.B cspice-spacit
+is an interactive menu driven program which provides a collection of services useful for manipulating and examining SPICE binary kernel files. The program may be used to convert SPICE binary kernel files into equivalent ASCII files, called SPICE transfer files, and to convert the SPICE transfer files back to binary. SPACIT may also be used to summarize the information contained in SPICE binary kernel files and to read the comments contained in the comment area of a SPICE binary kernel file.
+.PP
+The program currently supports the CK, EK, PCK, and SPK SPICE binary kernel file formats.
+.PP
+.B cspice-spacit
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-spkdiff.1 b/debian/man/cspice-spkdiff.1
new file mode 100644
index 0000000..44326ff
--- /dev/null
+++ b/debian/man/cspice-spkdiff.1
@@ -0,0 +1,99 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-SPKDIFF 1
+.SH NAME
+cspice-spkdiff \- compare or sample trajectories of two bodies
+
+.SH SYNOPSIS
+\fBcspice-spkdiff\fR [\fIOPTIONS\fR] \fIFIRST_SPK\fR \fISECOND_SPK\fR
+\fBcspice-spkdiff\fR [\fIOPTIONS\fR] \fISPK_FILE\fR
+\fBcspice-spkdiff\fR [\fIOPTIONS\fR]
+
+.SH DESCRIPTION
+.B cspice-spkdiff
+provides means for comparing the trajectories of two bodies or sampling the trajectory of a single body known to SPICE and supported by data from SPICE kernels.
+.PP
+To compare trajectories the program computes a set of geometric states of a body as seen from a center in a reference frame over an interval of time with a fixed or variable time step using one SPK file, computes a set of geometric states for the same or different body-center-frame combination at the same times using the other SPK file, and then subtracts the corresponding states from each other. Depending on the type of output report requested the program prints to the screen only the m [...]
+.PP
+To sample trajectory of a body the program computes a set of geometric states of a body as seen from a center in a reference frame over an interval of time with fixed or variable time step, using a given set of kernel files, and prints to the screen a table containing these states.
+.PP
+.B cspice-spkdiff
+is part of the SPICE Toolkit. See \fBcspice\fR(7).
+
+.SH OPTIONS
+.TP
+\fB\-k\fR \fIKERNEL\fR ...
+Specify the list of additional kernels or meta-kernels that are needed for both trajectories to be computed.
+.TP
+\fB\-b1\fR \fIBODY\fR
+Specify the body for the first trajectory to be computed. This body can be specified using its NAIF ID or name. If the name is used, it must be either built into SPICE or defined by kernels provided using the \fB\-k\fR and \fB\-k1\fR options.
+.TP
+\fB\-c1\fR \fIBODY\fR
+Specify the center for the first trajectory to be computed. This center can be specified using its NAIF ID or name. If the name is used, it must be either built into SPICE or defined by kernels provided using the \fB\-k\fR and \fB\-k1\fR options.
+.TP
+\fB\-r1\fR \fIFRAME\fR
+Specify the name of the reference frame for the first trajectory to be computed. The frame can be any of the frames built into SPICE or frames defined by kernels provided using the \fB\-k\fR and \fB\-k1\fR options.
+.TP
+\fB\-k1\fR \fIKERNEL\fR ...
+Specify the list of additional kernels or meta-kernels that are needed only for the first trajectory to be computed.
+.TP
+\fB\-b2\fR \fIBODY\fR
+Specify the body for the second trajectory to be computed. This body can be specified using its NAIF ID or name. If the name is used, it must be either built into SPICE or defined by kernels provided using the \fB\-k\fR and \fB\-k2\fR options.
+.TP
+\fB\-c2\fR \fIBODY\fR
+Specify the center for the second trajectory to be computed. This center can be specified using its NAIF ID or name. If the name is used, it must be either built into SPICE or defined by kernels provided using the \fB\-k\fR and \fB\-k2\fR options.
+.TP
+\fB\-r2\fR \fIFRAME\fR
+Specify the name of the reference frame for the second trajectory to be computed. The frame can be any of the frames built into SPICE or frames defined by kernels provided using the \fB\-k\fR and \fB\-k2\fR options.
+.TP
+\fB\-k2\fR \fIKERNEL\fR ...
+Specify the list of additional kernels or meta-kernels that are needed only for the second trajectory to be computed.
+.TP
+\fB\-b\fR \fITIME\fR
+Specify the coverage window begin time. The time string provided using this option can be in any form accepted by SPICE. If this option is provided, the name of an LSK file must be provided with the \fB\-k\fR, \fB\-k1\fR, or \fB\-k2\fR option.
+.TP
+\fB\-e\fR \fITIME\fR
+Specify the coverage window end time. The time string provided using this option can be in any form accepted by SPICE. If this option is provided, the name of an LSK file must be provided with the \fB\-k\fR, \fB\-k1\fR, or \fB\-k2\fR option.
+.TP
+\fB\-s\fR \fISTEP\fR
+Specify the step, in TDB seconds, for determining points within the coverage window, for which the trajectory(ies) are to be computed. The step must be greater than 1E-8. This option supersedes \fB\-n\fR.
+.TP
+\fB\-n\fR \fINUMBER\fR
+Specify the number of points within the coverage window, for which the trajectory(ies) are to be computed. The number must be an integer between 2 and 1,000,000. The default value is 1000.
+.TP
+\fB\-f\fR \fITIME_TYPE\fR ...
+Specify the output time format other than the default TDB seconds past J2000. The value can be any time format picture accepted by SPICE. For example to display time tags as UTCs in ISO date format use 'YYYY-MM-DDTHR:MN:SC.### ::RND', to display time tags as TDB Julian days use 'JULIAND.######### ::TDB'.
+.TP
+\fB\-d\fR \fINUMBER\fR
+Specify the number of significant digits in the output numeric times (TDB seconds past J2000) and state component values or state component difference values included in the dump, coverage and coverage gap reports. The number must be an integer between 6 and 17. The default value is 14.
+.TP
+\fB\-t\fR \fIREPORT_TYPE\fR
+Specify the type of report that the program should display.
+.br
+If \fIREPORT_TYPE\fR is \fBbasic\fR, it will display only the absolute and relative maximum and average differences in magnitude of position and velocity vectors. This is the default type for comparison runs.
+.br
+If \fIREPORT_TYPE\fR is \fBstats\fR, it will display statistics on position differences rotated into the view frame.
+.br
+If \fIREPORT_TYPE\fR is \fBdump\fR, it will display a table of positions and velocities or their differences.  This is the default type for sampling runs.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpvf\fR, it will display a table of position and velocity differences rotated into the view frame.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpc\fR, it will display a table of coverage intervals.
+.br
+If \fIREPORT_TYPE\fR is \fBdumpg\fR, it will display a table of gaps in coverage.
+.TP
+\fB\-v\fR
+Display only the version line. This option overrides all other options.
+.TP
+\fB\-u\fR
+Display the usage message. This option overrides all other options except \fB\-v\fR.
+.TP
+\fB\-h\fR
+Display a brief help message. This option overrides all other options except \fB\-v\fR and \fB\-u\fR.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-spkmerge.1 b/debian/man/cspice-spkmerge.1
new file mode 100644
index 0000000..f394a6c
--- /dev/null
+++ b/debian/man/cspice-spkmerge.1
@@ -0,0 +1,26 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-SPKMERGE 1
+.SH NAME
+cspice-spkmerge \- subset or merge one or more SPICE SPK files
+
+.SH SYNOPSIS
+\fBcspice-spkmerge\fR \fICOMMAND_FILE\fR
+
+.SH DESCRIPTION
+.B cspice-spkmerge
+builds new SPK files by merging entire or subsets of one or more existing SPK files. It creates SPK kernels that have no overlapping ephemeris; the order in which source files are specified determines the precedence when source files contain overlapping data.
+.PP
+.B cspice-spkmerge
+reads all its instructions from a command file. A command file is an ASCII formatted file containing 'KEYWORD = value' assignments.
+.PP
+.B cspice-spkmerge
+is part of the SPICE Toolkit. See
+.BR cspice (7).
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-tobin.1 b/debian/man/cspice-tobin.1
new file mode 100644
index 0000000..c13f455
--- /dev/null
+++ b/debian/man/cspice-tobin.1
@@ -0,0 +1,25 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-TOBIN 1
+.SH NAME
+cspice-tobin \- converts transfer format SPICE files to binary format
+
+.SH SYNOPSIS
+\fBcspice-tobin\fR \fITRANSFER_FORMAT_FILE\fR [\fIBINARY_FORMAT_FILE\fR]
+
+.SH DESCRIPTION
+.B cspice-tobin
+is a command-line program that converts transfer format SPK, CK and EK files into it's binary format for use in a particular computing environment. It requires at least the name of the input transfer file, which is the first argument on the command line. Optionally, a name for the output binary file may be specified as the second argument on the command line. If a name for the output file is provided it overrides the automatic naming conventions used by the program.
+.PP
+If only the name of the input transfer file is provided on the command line, the program will generate a name for the output binary kernel file that has the same base name as the input transfer file and an appropriate filename extension, based on the filename extension of the transfer file. If it does not recognize the filename extension of the input transfer file, or there is no filename extension on the input transfer file, a filename extension of '.bin' will be used as the filename ex [...]
+.PP
+.B cspice-tobin
+is part of the SPICE Toolkit. See
+.BR cspice (7).
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-toxfr.1 b/debian/man/cspice-toxfr.1
new file mode 100644
index 0000000..001e9ce
--- /dev/null
+++ b/debian/man/cspice-toxfr.1
@@ -0,0 +1,25 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-TOXFR 1
+.SH NAME
+cspice-toxfr \- converts binary format SPICE files to transfer format
+
+.SH SYNOPSIS
+\fBcspice-toxfr\fR \fIBINARY_FORMAT_FILE\fR [\fITRANSFER_FORMAT_FILE\fR]
+
+.SH DESCRIPTION
+.B cspice-toxfr
+is a command-line program that converts binary format SPK, CK and EK files into a transfer file format that is used to transfer, or port, the binary data to a different computing environment. It requires at least the name of the input binary file, which is the first argument on the command line. Optionally, a name for the output transfer file may be specified as the second argument on the command line. If a name for the output file is provided on the command line it overrides the automat [...]
+.PP
+If only the name of the input binary file is provided on the command line, the program will generate a name for the output transfer file that has the same base name as the input binary file and an appropriate filename extension, based on the filename extension of the binary file. If it does not recognize the filename extension of the input binary file, or there is no filename extension on the input binary file, a filename extension of '.xfr' will be used as the filename extension of the  [...]
+.PP
+.B cspice-toxfr
+is part of the SPICE Toolkit. See
+.BR cspice (7).
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice-version.1 b/debian/man/cspice-version.1
new file mode 100644
index 0000000..b17b798
--- /dev/null
+++ b/debian/man/cspice-version.1
@@ -0,0 +1,34 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE-VERSION 1
+.SH NAME
+cspice-version \- prints the current version number of the SPICE Toolkit
+
+.SH SYNOPSIS
+\fBcspice-version\fR [\fIOPTIONS\fR]
+
+.SH DESCRIPTION
+.B cspice-version
+is a command-line program that prints the current version number of the SPICE Toolkit.
+.PP
+.B cspice-version
+is part of the SPICE Toolkit. See
+.BR cspice (7).
+
+.SH OPTIONS
+.TP
+\fB\-a\fR, \fB\-all\fR
+Display all parameters for the environment for which the toolkit package was prepared, including SPICE toolkit version, system ID, operating system, compiler, and binary file format, max and min values for double precision and integer numbers.
+.TP
+\fB\-v\fR, \fB\-version\fR
+Display the version of the version program.
+.TP
+\fB\-h\fR, \fB\-help\fR
+Display usage information.
+
+.SH SEE ALSO
+.BR cspice (7).
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/man/cspice.7 b/debian/man/cspice.7
new file mode 100644
index 0000000..6488123
--- /dev/null
+++ b/debian/man/cspice.7
@@ -0,0 +1,81 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" (C) Copyright 2016 Rock Storm <rockstorm at gmx.com>,
+.\"
+.TH CSPICE 7
+.SH NAME
+cspice \- contents summary of the SPICE Toolkit utilities
+
+.SH DESCRIPTION
+This documentation summarizes the different utilities comprising the SPICE Toolkit and a brief description of the various files where SPICE stores its data, often called "kernels" or "kernel files".
+
+.SH TOOLKIT UTILITIES
+.TP
+.B cspice-brief
+A command line utility used to summarize the information within an SPK file. See
+.BR cspice-brief (1).
+.TP
+.B cspice-chronos
+A utility used to convert time values between various formats, e.g. UTC to ET, Et to SCLK, etc.  See
+.BR cspice-chronos (1).
+.TP
+.B cspice-ckbrief
+A command line utility used to summarize the pointing data within a CK file. See
+.BR cspice-ckbrief (1).
+.TP
+.B cspice-commnt
+A utility, usable in either interactive or command line mode, used to examine and manipulate the comment area of a SPICE binary kernel. See
+.BR cspice-commnt (1).
+.TP
+.B cspice-inspekt
+An interactive program used to examine and query to contents of an E-kernel. See
+.BR cspice-inspekt (1).
+.TP
+.B cspice-mkspk
+An application used to create, or append to, SPK files. See
+.BR cspice-mkspk (1).
+.TP
+.B cspice-spacit
+An interactive application used to manipulate and examine SPK files. See
+.BR cspice-spacit (1).
+.TP
+.B cspice-spkmerge
+An application used to merge several SPK files or subsets of SPK files into a single SPK file. See
+.BR cspice-spkmerge (1).
+.TP
+.B cspice-tobin
+A command line utility used to convert SPICE ASCII transfer files to architecture native binary kernels. See
+.BR cspice-tobin (1).
+.TP
+.B cspice-toxfr
+A command line utility used to convert SPICE binary kernels to ASCII transfer format. See
+.BR cspice-toxfr (1).
+.TP
+.B cspice-version
+A command line utility used to display the current version number of the SPICE Toolkit. See
+.BR cspice-version (1).
+
+.SH SPICE KERNELS
+SPICE kernels are composed of navigation and other ancillary information that has been structured and formatted for easy access and correct use by the planetary science and engineering communities. A kernel may store data in either text (ASCII) or binary format. SPICE kernel file contents are summarized below:
+.RS
+.PP
+\fISpacecraft and Planet Kernel\fR (\fBSPK\fR): spacecraft, planet, satellite, comet, or asteroid ephemerides, or more generally, location of any target body, given as a function of time.
+.PP
+\fIPlanetary Constants Kernel\fR (\fBPCK\fR): physical, dynamical and cartographic constants for target bodies, such as size and shape specifications, and orientation of the spin axis and prime meridian.
+.PP
+\fIInstrument Kernel\fR (\fBIK\fR): description kernel, containing descriptive data peculiar to a particular scientific instrument, such as field-of-view size, shape and orientation parameters.
+.PP
+\fIC-matrix Kernel\fR (\fBCK\fR): pointing kernel, containing a transformation, traditionally called the "C-matrix," which provides time-tagged pointing (orientation) angles for a spacecraft bus or a spacecraft structure upon which science instruments are mounted. A C-kernel may also include angular rate data for that structure.
+.PP
+\fIEvents Kernel\fR (\fBEK\fR): kernel summarizing mission activities - both planned and unanticipated. Events data consists of three components: science plans, sequences, and notes.
+.PP
+\fIFrames Kernel\fR (\fBFK\fR): contains specifications for the assortment of reference frames that are typically used by flight projects. This file also includes mounting alignment information for instruments, antennas and perhaps other structures of interest.
+.PP
+\fISpacecraft CLock Kernel\fR (\fBSCLK\fR): spacecraft's clock correlation data.
+.PP
+\fILeap Seconds Kernel\fR (\fBLSK\fR)
+.PP
+\fIDigital Shape Kernel\fR (\fBDSK\fR): digital shape model for both small, irregularly shaped bodies such as asteroids and comet nuclei, and for large, more uniformly shaped bodies such as the moon, earth and Mars.
+.RE
+
+.SH AUTHOR
+This manual page was written by Rock Storm <rockstorm at gmx.com> based on the official SPICE documentation. See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/index.html for more information.
diff --git a/debian/patches/create-and-link-to-shared-libraries.patch b/debian/patches/create-and-link-to-shared-libraries.patch
new file mode 100644
index 0000000..d1c6301
--- /dev/null
+++ b/debian/patches/create-and-link-to-shared-libraries.patch
@@ -0,0 +1,76 @@
+Subject: Add creation and linking to shared libraries
+ Modify the building sequence to generate shared libraries apart from
+ the static ones and link the executables to them.
+From: Rock Storm <rockstorm at gmx.com>
+
+--- a/src/brief_c/mkprodct.csh
++++ b/src/brief_c/mkprodct.csh
+@@ -255,7 +255,8 @@
+          $TKCOMPILER -o $EXECUT           $MAINOBJ             \
+                                           locallib.a           \
+                                           ../../lib/csupport.a \
+-                                          ../../lib/cspice.a   \
++                                          -L../../lib          \
++                                          -lcspice             \
+                                           $TKLINKOPTIONS    
+ 
+          \rm $TARGET
+@@ -268,7 +269,8 @@
+          $TKCOMPILER    $TKCOMPILEOPTIONS $TARGET
+          $TKCOMPILER -o $EXECUT           $MAINOBJ             \
+                                           ../../lib/csupport.a \
+-                                          ../../lib/cspice.a   \
++                                          -L../../lib          \
++                                          -lcspice             \
+                                          $TKLINKOPTIONS
+  
+          \rm $TARGET
+--- a/src/cook_c/mkprodct.csh
++++ b/src/cook_c/mkprodct.csh
+@@ -201,7 +201,8 @@
+          $TKCOMPILER -o $EXECUT           $MAINOBJ             \
+                                           locallib.a           \
+                                           ../../lib/csupport.a \
+-                                          ../../lib/cspice.a   \
++                                          -L../../lib          \
++                                          -lcspice             \
+                                           $TKLINKOPTIONS    
+ 
+          \rm $TARGET
+@@ -214,7 +215,8 @@
+          $TKCOMPILER    $TKCOMPILEOPTIONS $TARGET
+          $TKCOMPILER -o $EXECUT           $MAINOBJ             \
+                                           ../../lib/csupport.a \
+-                                          ../../lib/cspice.a   \
++                                          -L../../lib          \
++                                          -lcspice             \
+                                          $TKLINKOPTIONS
+  
+          \rm $TARGET
+--- a/src/cspice/mkprodct.csh
++++ b/src/cspice/mkprodct.csh
+@@ -189,7 +189,11 @@
+ #   Determine a provisional LIBRARY name.
+ #
+    foreach item ( `pwd` )
++      set LIBDIR = "../../lib/"
+       set LIBRARY = "../../lib/"$item:t
++      set SL_REALNAME = "lib"$item:t".so.1.0.0"
++      set SL_SONAME = "lib"$item:t".so.1"
++      set SL_LINKERNAME = "lib"$item:t".so"
+    end
+ 
+ #
+@@ -223,6 +227,12 @@
+ 
+ if ( $status == 0 ) then
+ 
++   echo "      Inserting objects in the shared library $SL_REALNAME ..."
++   $TKCOMPILER -shared -Wl,-soname,$SL_SONAME -o $SL_REALNAME *.o $TKLINKOPTIONS
++   mv $SL_REALNAME $LIBDIR
++   ln -sf $SL_REALNAME $LIBDIR$SL_SONAME
++   ln -sf $SL_REALNAME $LIBDIR$SL_LINKERNAME
++
+    echo "      Inserting objects in the library $LIBRARY ..."
+    ar  crv $LIBRARY.a *.o
+    ranlib  $LIBRARY.a
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..292791b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+support-multiple-architectures.patch
+create-and-link-to-shared-libraries.patch
diff --git a/debian/patches/support-multiple-architectures.patch b/debian/patches/support-multiple-architectures.patch
new file mode 100644
index 0000000..c7ec156
--- /dev/null
+++ b/debian/patches/support-multiple-architectures.patch
@@ -0,0 +1,103 @@
+Description: Add support for multiple architectures
+Author: Rock Storm <rockstorm at gmx.com>
+
+--- a/include/SpiceZpl.h
++++ b/include/SpiceZpl.h
+@@ -109,9 +109,10 @@
+  
+ #ifndef HAVE_PLATFORM_MACROS_H
+ #define HAVE_PLATFORM_MACROS_H
+- 
+- 
+-   #define   CSPICE_PC_LINUX
++
++    #ifndef HAVE_DEBIAN_PLATFORM_SPECIFICATION_H
++        #include "SpiceZplDeb.h"
++    #endif
+  
+ #endif
+  
+--- a/src/cspice/zzplatfm.f
++++ b/src/cspice/zzplatfm.f
+@@ -43,6 +43,8 @@
+ C$ Declarations
+  
+       IMPLICIT NONE
++      
++      INCLUDE              'splicezpldeb.inc'      
+  
+       CHARACTER*(*)         KEY
+       CHARACTER*(*)         VALUE
+@@ -387,11 +389,11 @@
+  
+  
+  
+-         ATTCPY (IDXCMP) = 'GFORTRAN'
++         ATTCPY (IDXCMP) = COMPILER_TAG
+  
+  
+  
+-         ATTCPY (IDXFMT) = 'LTL-IEEE'
++         ATTCPY (IDXFMT) = ENDIANNESS_TAG
+  
+  
+  
+--- a/src/cspice/fndlun.f
++++ b/src/cspice/fndlun.f
+@@ -41,13 +41,15 @@
+ C
+ C$ Declarations
+  
++      INCLUDE              'splicezpldeb.inc'
++      
+       INTEGER          UNIT
+  
+       INTEGER          MINLUN
+       PARAMETER      ( MINLUN =  1 )
+  
+       INTEGER          MAXLUN
+-      PARAMETER      ( MAXLUN = 99 )
++      PARAMETER      ( MAXLUN = MAX_LUN )
+  
+ C$ Brief_I/O
+ C
+--- a/src/cspice/rdtext.f
++++ b/src/cspice/rdtext.f
+@@ -42,6 +42,8 @@
+ C
+ C$ Declarations
+  
++      INCLUDE              'splicezpldeb.inc'
++      
+       CHARACTER*(*)       FILE
+       CHARACTER*(*)       LINE
+       LOGICAL             EOF
+@@ -50,7 +52,7 @@
+       PARAMETER         ( MAXLEN = 255 )
+  
+       INTEGER             MAXOPN
+-      PARAMETER         ( MAXOPN =  96 )
++      PARAMETER         ( MAXOPN =  MAX_OPN )
+  
+ C$ Brief_I/O
+ C
+--- a/src/cspice/stmp03.f
++++ b/src/cspice/stmp03.f
+@@ -44,6 +44,8 @@
+ C
+ C$ Declarations
+  
++      INCLUDE              'splicezpldeb.inc'
++ 
+       DOUBLE PRECISION      X
+       DOUBLE PRECISION      C0
+       DOUBLE PRECISION      C1
+@@ -52,7 +54,7 @@
+  
+  
+       INTEGER               TRUNC
+-      PARAMETER           ( TRUNC = 11   )
++      PARAMETER           ( TRUNC = _TRUNC   )
+  
+ C$ Brief_I/O
+ C
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3733afe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+
+# group the toolkit binaries for renaming
+exes=brief \
+     chronos \
+     ckbrief \
+     commnt \
+     frmdiff \
+     inspekt \
+     mkspk \
+     msopck \
+     spacit \
+     spkdiff \
+     spkmerge \
+     tobin \
+     toxfr \
+     version
+
+%:
+	dh $@
+
+
+override_dh_auto_configure:
+# Configure the architecture dependant files
+	/bin/sh debian/configure
+	
+# Translate the FORTRAN files to C
+	/bin/sh debian/translate
+
+override_dh_auto_build:
+	make -f debian/Makefile build
+
+override_dh_install:
+# Rename cspice binaries from % to cspice-%
+	@for exe in $(exes) ; do \
+		mv exe/$$exe exe/cspice-$$exe ; \
+	done
+	
+# Rename static library with a more library-like name
+	@mv lib/cspice.a lib/libcspice.a
+	
+	dh_install --exclude=whats.new
+
+override_dh_installchangelogs:
+	dh_installchangelogs doc/whats.new
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/brief-utc b/debian/tests/brief-utc
new file mode 100644
index 0000000..d45eb24
--- /dev/null
+++ b/debian/tests/brief-utc
@@ -0,0 +1,40 @@
+#!/usr/bin/env sh
+# autopkgtest check: Run a basic test on two of the CSPICE toolkit utilities
+# to verify that it is working as expected at least at a very basic level.
+#
+# Author: Rock Storm <rockstorm at gmx.com>
+
+set -e
+
+__exeprefix="cspice-"
+__datadir="data"
+__bspfile="cook_01.bsp"
+__output="brief-utc.out"
+
+# Populate the expeted output file
+/bin/cat <<EOF > $__output
+ 
+BRIEF -- Version 4.0.0, September 8, 2010 -- Toolkit Version N0065
+ 
+ 
+Summary for: $__bspfile
+ 
+Bodies: GALILEO ORBITER (-77)   JUPITER BARYCENTER (5)  SUN (10)
+        MERCURY BARYCENTER (1)  SATURN BARYCENTER (6)   MOON (301)
+        VENUS BARYCENTER (2)    URANUS BARYCENTER (7)   EARTH (399)
+        EARTH BARYCENTER (3)    NEPTUNE BARYCENTER (8)
+        MARS BARYCENTER (4)     PLUTO BARYCENTER (9)
+        Start of Interval (UTC)             End of Interval (UTC)
+        -----------------------------       -----------------------------
+        1989-OCT-19 01:34:59.999            1991-JAN-31 23:59:59.000
+ 
+EOF
+
+# tobin test: Convert a text kernel into binary
+"$__exeprefix""tobin" "$__datadir/cook_01.tsp" "$__bspfile" > /dev/null
+
+# brief test: Summarize the contents of the binary kernel
+"$__exeprefix""brief" -utc "$__bspfile" "$__datadir/cook_01.tls" | \
+diff "$__output" -
+
+echo "toolkit utilities: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bd90927
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: brief-utc devtest
diff --git a/debian/tests/devtest b/debian/tests/devtest
new file mode 100644
index 0000000..fcfa168
--- /dev/null
+++ b/debian/tests/devtest
@@ -0,0 +1,34 @@
+#!/usr/bin/env sh
+# autopkgtest check: Build and run a simple program against libcspice, to
+# verify that the headers and library are installed correctly
+#
+# Author: Rock Storm <rockstorm at gmx.com>
+
+set -e
+
+__testprogram="testprogram"
+__testkernel="data/cook_01.tls"
+
+cat <<EOF > "$__testprogram"".c"
+#include "cspice/SpiceUsr.h"
+
+int main()
+{
+    SpiceChar kernel_arch;
+    SpiceChar kernel_type;
+    
+    if ( SPICETRUE ) {
+        getfat_c("$__testkernel", 3, 4, &kernel_arch, &kernel_type);        
+    }
+
+    return 0;
+}
+EOF
+
+gcc -Wall -Werror -o "$__testprogram" "$__testprogram.c" -lcspice
+
+[ -x "$__testprogram" ]
+./"$__testprogram"
+echo "library and headers: OK"
+
+
diff --git a/debian/translate b/debian/translate
new file mode 100644
index 0000000..db5ed92
--- /dev/null
+++ b/debian/translate
@@ -0,0 +1,38 @@
+#! /bin/sh
+# translation script: Translate the all the FORTRAN files to C using f2c.
+#
+# Author: Rock Storm <rockstorm at gmx.com>
+
+# List source subfolders
+cdirs="brief_c chrnos_c ckbref_c commnt_c cspice csupport frmdif_c inspkt_c mkspk_c msopck_c spacit_c spkdif_c spkmrg_c tobin_c toxfr_c versn_c"
+
+# Include every source subfolder to look for .inc files while translating
+# Include the debian folder to allow the architecture dependant .inc file to be
+# found.
+for item in $cdirs
+do
+	finc="$finc -Isrc/$item"
+done
+finc="$finc -Idebian"
+
+# Set the options for the f2c translation
+f2coptions="-A -a -C"
+
+# Translate every .f file to C
+for item in $cdirs
+do
+	f2c $f2coptions -dsrc/$item $finc src/$item/*.f
+	
+	# Rename the .pgm files to .f, translate them to C and rename them back to 
+	# .pgm
+	pgmfile="$(find src/$item -type f -name '*.pgm')"
+	for item2 in $pgmfile
+    do
+		    pgmname="${item2%.pgm}"
+			pgmname="${pgmname##src*/}"
+			mv src/$item/$pgmname.pgm src/$item/$pgmname.f
+			f2c $f2coptions -dsrc/$item $finc src/$item/$pgmname.f
+			mv -v src/$item/$pgmname.c src/$item/$pgmname.pgm
+			rm src/$item/$pgmname.f
+	done
+done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6d7118f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# Compulsory line, this is a version 4 file
+version=4
+
+# No way to reach the download file and the version has been found yet.
+# Upstream "tarball" has no version on its name. See http://naif.jpl.nasa.gov/
+# pub/naif/toolkit//C/PC_Linux_GCC_32bit/packages/cspice.tar.Z
+# The version is stated here: https://naif.jpl.nasa.gov/naif/toolkit.html
+# instead.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/cspice.git



More information about the Debian-astro-commits mailing list