debian/0000755000000000000000000000000012246363361007174 5ustar debian/clean0000644000000000000000000000007111773144235010200 0ustar NEWS sun???.aux sun???.log sun???.pdf sun???.ps sun???/* debian/compat0000644000000000000000000000000211776617336010405 0ustar 9 debian/changelog0000644000000000000000000000211712246360016011041 0ustar starlink-pal (0.3.0-3) unstable; urgency=low * Build with erfa instead of iausofa. -- Ole Streicher Sat, 30 Nov 2013 13:27:20 +0100 starlink-pal (0.3.0-2) unstable; urgency=low * Use pdflatex instead of pslatex. Closes: #713264 -- Ole Streicher Mon, 24 Jun 2013 18:11:26 +0200 starlink-pal (0.3.0-1) unstable; urgency=low * New upstream version * Push policy version to 3.9.4 -- Ole Streicher Tue, 23 Apr 2013 15:44:48 +0200 starlink-pal (0.1.5-1) unstable; urgency=low * Move to unstable * Remove obsolete DMUA flag * Silent false-positive lintian hardening warning -- Ole Streicher Mon, 22 Apr 2013 20:21:09 +0200 starlink-pal (0.1.5-1~exp1) experimental; urgency=low * New upstream version * Add DM-Upload-Allowed: yes * Multiarch support -- Ole Streicher Thu, 28 Jun 2012 22:54:14 +0200 starlink-pal (0.1.0-1) unstable; urgency=low * Initial release. Closes: #659984 -- Ole Streicher Wed, 28 Mar 2012 11:00:00 +0200 debian/control0000644000000000000000000000404012246355050010571 0ustar Source: starlink-pal Section: science Priority: optional Maintainer: Debian Science Maintainers Uploaders: Ole Streicher Build-Depends: autotools-dev, debhelper (>= 9), dh-autoreconf, ghostscript, latex2html, liberfa-dev, texlive, texlive-font-utils Standards-Version: 3.9.5 Homepage: http://starlink.jach.hawaii.edu/starlink Vcs-Git: git://anonscm.debian.org/debian-science/packages/starlink-pal.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/starlink-pal.git Package: libstarlink-pal-dev Section: libdevel Architecture: any Depends: libstarlink-pal0 (= ${binary:Version}), ${misc:Depends} Suggests: libstarlink-pal-doc Description: Positional Astronomy Library (development files) This library is a collection of code designed to aid in replacing the SLA library with code from NOVAS and ERFA. . Where possible the API is similar to the C SLA API except for the use of a "pal" prefix. . This package contains the development files. Package: libstarlink-pal0 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: Positional Astronomy Library (shared library) This library is a collection of code designed to aid in replacing the SLA library with code from NOVAS and IAU SOFA. . Where possible the API is similar to the C SLA API except for the use of a "pal" prefix. . This library contains the shared library. Package: libstarlink-pal-doc Section: doc Architecture: all Multi-Arch: foreign Depends: ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Description: Positional Astronomy Library (documentation) This library is a collection of code designed to aid in replacing the SLA library with code from NOVAS and ERFA. . Where possible the API is similar to the C SLA API except for the use of a "pal" prefix. . This package contains the HTML and PDF documentation. debian/libstarlink-pal0.lintian-overrides0000644000000000000000000000032612136004263015714 0ustar # This warning is a false positive; the function is actually built with # the right hardening flags. # The function claimed to be unprotected is strncpy(). hardening-no-fortify-functions */libstarlink_pal.so.0.0.0 debian/libstarlink-pal0.install0000644000000000000000000000003711776617336013747 0ustar usr/lib/*/libstarlink_pal.so.* debian/copyright0000644000000000000000000000207411776617336011145 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PAL Upstream-Author: Tim Jenness Source: http://starlink.jach.hawaii.edu/starlink Files: * Copyright: Copyright (C) 2012 Science and Technology Facilities Council, Copyright (C) 2001 Rutherford Appleton Laboratory License: GPLv3+ 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 3 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. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. Files: debian/* Copyright: not applicable License: public-domain Debian packaging by Ole Streicher debian/create_patches_rename_library.sh0000755000000000000000000000114511773144235015562 0ustar #!/bin/sh VENDOR=starlink LIBNAME=pal PATCH_SED_CMD="s/lib${LIBNAME}/lib${VENDOR}_${LIBNAME}/g" FILES="Makefile.am" cat > debian/patches/rename_library < Last-Update: $(date +%Y-%m-%d) Description: "${LIBNAME}" is a quite short name for a library that is so specific as this one. Therefore, "${LIBNAME}" is prefixed by the vendor name "${VENDOR}". . This patch can be re-created by running ${0} on the freshly unpacked source tarball. $(for f in ${FILES} ; do \ sed ${PATCH_SED_CMD} < ${f} | diff -u ${f} - --label a/${f} --label b/${f}; \ done ) EOF debian/watch0000644000000000000000000000012211773144235010221 0ustar version=3 http://www.starlink.ac.uk/download/pal/pal-(.+)\.tar\.gz debian uupdate debian/patches/0000755000000000000000000000000012246357625010631 5ustar debian/patches/rename_library0000644000000000000000000000331412136004263013531 0ustar Author: Ole Streicher Last-Update: 2013-04-23 Description: "pal" is a quite short name for a library that is so specific as this one. Therefore, "pal" is prefixed by the vendor name "starlink". . This patch can be re-created by running debian/create_patches_rename_library.sh on the freshly unpacked source tarball. --- a/Makefile.am +++ b/Makefile.am @@ -1,17 +1,17 @@ ## Process this file with automake to produce Makefile.in -lib_LTLIBRARIES = libpal.la +lib_LTLIBRARIES = libstarlink_pal.la # Include palOne2One.c separately since it is a combo file -libpal_la_SOURCES = $(PUBLIC_C_FILES) palOne2One.c $(PRIVATE_C_FILES) +libstarlink_pal_la_SOURCES = $(PUBLIC_C_FILES) palOne2One.c $(PRIVATE_C_FILES) # If we are using a non-standard location -libpal_la_CPPFLAGS = $(SOFA_CPPFLAGS) -libpal_la_LDFLAGS = $(SOFA_LDFLAGS) +libstarlink_pal_la_CPPFLAGS = $(SOFA_CPPFLAGS) +libstarlink_pal_la_LDFLAGS = $(SOFA_LDFLAGS) # Force a link against SOFA and, optionally, starutil -libpal_la_LIBADD = $(SOFA_LIBADD) $(STARUTIL_LIBADD) +libstarlink_pal_la_LIBADD = $(SOFA_LIBADD) $(STARUTIL_LIBADD) # Misc files dist_starnews_DATA = pal.news @@ -20,7 +20,7 @@ # Make all library code position independent. This is handy for creating # shareable libraries from the static ones (Java JNI libraries). if !NOPIC -libpal_la_CFLAGS = $(AM_CFLAGS) -prefer-pic +libstarlink_pal_la_CFLAGS = $(AM_CFLAGS) -prefer-pic endif # install pal as "star/pal.h" @@ -120,7 +120,7 @@ check_PROGRAMS = palTest palTest_SOURCES = palTest.c -palTest_LDADD = libpal.la +palTest_LDADD = libstarlink_pal.la # A target for making the SUN documentation. We do not do this automatically palsun.tex: $(PUBLIC_C_FILES) debian/patches/use_std_automake.patch0000644000000000000000000000657712162067637015223 0ustar Author: Ole Streicher Description: Do not depend on the starlink's automake, but use their macro file together with the standard automake --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ dnl Require autoconf-2.50 at least AC_PREREQ(2.50) dnl Require Starlink automake -AM_INIT_AUTOMAKE(1.8.2-starlink) +AM_INIT_AUTOMAKE([foreign]) dnl Sanity-check: name a file in the source directory -- if this dnl isn't found then configure will complain --- a/Makefile.am +++ b/Makefile.am @@ -11,10 +11,9 @@ libstarlink_pal_la_LDFLAGS = $(SOFA_LDFLAGS) # Force a link against SOFA and, optionally, starutil -libstarlink_pal_la_LIBADD = $(SOFA_LIBADD) $(STARUTIL_LIBADD) +libstarlink_pal_la_LIBADD = -lsofa_c # Misc files -dist_starnews_DATA = pal.news dist_pkgdata_DATA = LICENCE README.md # Make all library code position independent. This is handy for creating @@ -114,7 +113,13 @@ pal1Atms.c \ pal1Atmt.c -stardocs_DATA = @STAR_LATEX_DOCUMENTATION@ +dist_pkgdata_DATA = @STARDOCS@.pdf @STARDOCS@/index.html +.tex.pdf: + pdflatex $^ && pdflatex $^ + +@STARDOCS@/index.html: @STARDOCS@.tex + latex2html -noaddress $^ + rm -f @STARDOCS@/@STARDOCS@.html @STARDOCS@/WARNINGS TESTS = palTest --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,57 @@ +m4_define([OVERRIDE_PREFIX],[/usr/]) + +AC_DEFUN([STAR_DEFAULTS],[ + +AC_DEFINE([NOSTARUTIL], 1, [The starutil package is not available in Debian]) + +# Create a PACKAGE_VERSION_INTEGER variable, which contains the +# package's version number as an integer major*1e6+minor*1e3+release. +eval [`echo $VERSION | sed -e 's/\([0-9]*\)[^0-9]*\([0-9]*\)[^0-9]*\([0-9]*\).*/PACKAGE_VERSION_MAJOR=\1; PACKAGE_VERSION_MINOR=\2; PACKAGE_VERSION_RELEASE=\3;/'`] +test -n "$PACKAGE_VERSION_MAJOR" || PACKAGE_VERSION_MAJOR=0 +test -n "$PACKAGE_VERSION_MINOR" || PACKAGE_VERSION_MINOR=0 +test -n "$PACKAGE_VERSION_RELEASE" || PACKAGE_VERSION_RELEASE=0 +PACKAGE_VERSION_INTEGER=`expr $PACKAGE_VERSION_MAJOR \* 1000000 + $PACKAGE_VERSION_MINOR \* 1000 + $PACKAGE_VERSION_RELEASE` +AC_SUBST(PACKAGE_VERSION_MAJOR) +AC_SUBST(PACKAGE_VERSION_MINOR) +AC_SUBST(PACKAGE_VERSION_RELEASE) +AC_SUBST(PACKAGE_VERSION_INTEGER) +]) + +# Dummy declaration of starlink intedependencies +AC_DEFUN([STAR_DECLARE_DEPENDENCIES], []) + +# Perform the check that configures f77.h.in for the return type of REAL +# Fortran functions. On 64-bit g77 with f2c compatibility this is double +# not float. +AC_DEFUN([STAR_CNF_F2C_COMPATIBLE], [ + AC_SUBST([REAL_FUNCTION_TYPE], double) +]) + +# Determine the type of Fortran character string lengths. +AC_DEFUN([STAR_CNF_TRAIL_TYPE], [ + AC_SUBST([TRAIL_TYPE], int) +]) + +# Declare the message file. +AC_DEFUN([STAR_MESSGEN], []) + +# Declare the documentation. +# For Debian, this must be explicitely set in the patched Makefile.am +# since we don't use Starlink's automake here. +AC_DEFUN([STAR_LATEX_DOCUMENTATION], [ + AC_SUBST([STARDOCS], [$1]) +]) + + +AC_DEFUN([STAR_PREDIST_SOURCES], []) + +AC_DEFUN([STAR_PLATFORM_SOURCES], [ +for _t in $1; do + (cd ${srcdir}; rm -f ${_t}; cp -p ${_t}default ${_t}) +done +]) + +# We ignor]e any starlinks programs here since we don' install the whole +# Starlink bootstrap chain. +AC_DEFUN([STAR_CHECK_PROGS], []) + --- a/palDfltin.c +++ b/palDfltin.c @@ -124,6 +124,7 @@ #include #include "pal.h" +#include "config.h" #if HAVE_COPYSIGN # define SCAN_FOR_MINUS 0 debian/patches/series0000644000000000000000000000007012246355120012027 0ustar rename_library use_std_automake.patch use_liberfa.patch debian/patches/use_liberfa.patch0000644000000000000000000000516212246357625014136 0ustar Author: Ole Streicher Description: Replace all calls of the IAU SOFA library by its truly open source pendand erfa. --- /dev/null +++ b/sofa.h @@ -0,0 +1,52 @@ +#include + +#define iauA2af eraA2af +#define iauA2tf eraA2tf +#define iauAf2a eraAf2a +#define iauAnp eraAnp +#define iauAnpm eraAnpm +#define iauC2s eraC2s +#define iauCal2jd eraCal2jd +#define iauD2tf eraD2tf +#define iauDat eraDat +#define iauEe06a eraEe06a +#define iauEpb eraEpb +#define iauEpb2jd eraEpb2jd +#define iauEpj eraEpj +#define iauEpj2jd eraEpj2jd +#define iauEpv00 eraEpv00 +#define iauFk5hz eraFk5hz +#define iauGd2gc eraGd2gc +#define iauGmst06 eraGmst06 +#define iauHfk5z eraHfk5z +#define iauIr eraIr +#define iauJd2cal eraJd2cal +#define iauNut06a eraNut06a +#define iauObl06 eraObl06 +#define iauP06e eraP06e +#define iauPap eraPap +#define iauPas eraPas +#define iauPdp eraPdp +#define iauPlan94 eraPlan94 +#define iauPmat06 eraPmat06 +#define iauPn eraPn +#define iauPnm06a eraPnm06a +#define iaupv erapv +#define iauPxp eraPxp +#define iauRm2v eraRm2v +#define iauRv2m eraRv2m +#define iauRx eraRx +#define iauRxp eraRxp +#define iauRxpv eraRxpv +#define iauRxr eraRxr +#define iauRy eraRy +#define iauRz eraRz +#define iauS2c eraS2c +#define iauSepp eraSepp +#define iauSeps eraSeps +#define iausofa erasofa +#define iauStarpm eraStarpm +#define iauTf2a eraTf2a +#define iauTf2d eraTf2d +#define iauTr eraTr +#define iauTrxp eraTrxp --- /dev/null +++ b/sofam.h @@ -0,0 +1,10 @@ +#include "sofa.h" +#include + +#define DD2R ERFA_DD2R +#define DS2R ERFA_DS2R +#define DAS2R ERFA_DAS2R +#define DJY ERFA_DJY +#define DJ00 ERFA_DJ00 +#define DAU ERFA_DAU +#define dint(A) ((A)<0.0?ceil(A):floor(A)) --- a/configure.ac +++ b/configure.ac @@ -64,9 +64,9 @@ [AC_SUBST(STARUTIL_LIBADD, "-lstarutil")], [AC_SUBST(STARUTIL_LIBADD, "")]) - AC_CHECK_LIB([sofa_c],[iauCal2jd], - [AC_SUBST(SOFA_LIBADD, "-lsofa_c")], - [AC_ERROR([Missing SOFA library. Can not continue])]) + AC_CHECK_LIB([erfa],[eraCal2jd], + [AC_SUBST(SOFA_LIBADD, "-lerfa")], + [AC_ERROR([Missing ERFA library. Can not continue])]) LDFLAGS="$save_LDFLAGS" dnl Ensure that we use the $prefix values --- a/Makefile.am +++ b/Makefile.am @@ -10,8 +10,8 @@ libstarlink_pal_la_CPPFLAGS = $(SOFA_CPPFLAGS) libstarlink_pal_la_LDFLAGS = $(SOFA_LDFLAGS) -# Force a link against SOFA and, optionally, starutil -libstarlink_pal_la_LIBADD = -lsofa_c +# Force a link against ERFA and, optionally, starutil +libstarlink_pal_la_LIBADD = -lerfa # Misc files dist_pkgdata_DATA = LICENCE README.md debian/libstarlink-pal-doc.docs0000644000000000000000000000002411773144235013676 0ustar sun???.pdf sun???/* debian/rules0000755000000000000000000000041711773144235010257 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autoreconf override_dh_autoreconf: cp pal.news NEWS dh_autoreconf override_dh_auto_configure: dh_auto_configure -- --without-cnf --with-pthreads debian/README.Debian0000644000000000000000000000022111773144235011231 0ustar To avoid conflicts, the library has been renamed to "libstarlink_pal". -- Ole Streicher Thu, 27 Mar 2012 11:00:00 +0200 debian/source/0000755000000000000000000000000011773144235010475 5ustar debian/source/format0000644000000000000000000000001411773144235011703 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000014111773144235011350 0ustar The patch patches/rename_library.sh is created with the script create_patches_rename_library.sh. debian/libstarlink-pal-dev.install0000644000000000000000000000012011776617336014434 0ustar usr/include/star/*.h usr/lib/*/libstarlink_pal.a usr/lib/*/libstarlink_pal.so debian/libstarlink-pal-doc.doc-base0000644000000000000000000000075011773144235014431 0ustar Document: starlink-pal Title: PAL - Positional Astronomy Library Author: Tim Jenness Section: Programming Abstract: PAL provides a subset of the Fortran SLALIB library but written in C using the SLALIB C API. Where possible the PAL routines are implemented using the C SOFA library. It is provided with a GPL license. Format: PDF Files: /usr/share/doc/*/sun???.pdf.gz Format: HTML Index: /usr/share/doc/libstarlink-pal-doc/index.html Files: /usr/share/doc/libstarlink-pal-doc/*.html