debian/0000755000000000000000000000000012264550124007167 5ustar debian/README.Source0000644000000000000000000000053512260545436011317 0ustar The original -kit tar file contains a number of additional components which are not DFSG-free (namely gasgano), or already included in Debian (like cpl, esorex, and additional libraries). Only the pipeline sources and calibration files are extracted from this -kit tar file. -- Ole Streicher Tue, 01 Dec 2013 09:18:46 +0100 debian/cpl-plugin-doc.manpages.in0000644000000000000000000000001112260545447014126 0ustar man/*.7 debian/repackage.sh0000755000000000000000000000376112260545436011465 0ustar #!/bin/sh # # The ESO pipeline packages come in the form of a "kit" containing all # packages needed to build the pipeline. This also includes some non-free # packages like Gasgano. # To allow the pipelines to be put to Debian "main", and to have a more # convienient build process, we extract just the source package. # # Debian package name ("cpl-plugin-fors") DEBIAN_PACKAGE=$(echo $(basename $3) | cut -d_ -f1) # Pipeline name ("fors") PIPELINE=$(echo ${DEBIAN_PACKAGE} | cut -d- -f3-) # Version number ("4.9.4") VERSION=$2 # Include full calibration set? # If not, the "calib" package will act as a "downloader" package for the # calibration files. INCLUDE_CALIB="no" #INCLUDE_CALIB="yes" # Include test data? # If not, the test (fits) data are removed from the source package. # In this case, also the tests need to be adjusted. #INCLUDE_TEST_DATA="no" INCLUDE_TEST_DATA="yes" BASEDIR=$(dirname $3) FILENAME=${BASEDIR}/${PIPELINE}-kit-${VERSION}.tar.gz tar xf ${FILENAME} -C ${BASEDIR} rm -f ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig*.tar.* ${FILENAME} TAREXCLUDE="--exclude ${PIPELINE}-${VERSION}/html" if [ $INCLUDE_TEST_DATA = "no" ] ; then TAREXCLUDE=${TAREXCLUDE}" --exclude ${PIPELINE}-${VERSION}/*/tests/ref_data" fi tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz\ -C ${BASEDIR} ${TAREXCLUDE} tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz\ -C ${BASEDIR}/${PIPELINE}-${VERSION}/ mv ${BASEDIR}/${PIPELINE}-${VERSION}/${PIPELINE}-calib-${VERSION}/ \ ${BASEDIR}/${PIPELINE}-${VERSION}/calib/ if [ $INCLUDE_CALIB = "no" ] ; then du -s ${BASEDIR}/${PIPELINE}-${VERSION}/calib/cal | cut -f1 \ > ${BASEDIR}/${PIPELINE}-${VERSION}/calib/cal_size rm -rf ${BASEDIR}/${PIPELINE}-${VERSION}/calib/cal fi tar cJf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}+dfsg.orig.tar.xz \ -C ${BASEDIR} ${PIPELINE}-${VERSION}/ rm -rf ${BASEDIR}/${PIPELINE}-${VERSION}/ rm -rf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/ exec uupdate --no-symlink "$@" debian/create_sphinx.py0000644000000000000000000001516012260545447012410 0ustar #!/usr/bin/env python import cpl import os import sys import re rst_template = '''The {recipe} recipe =============================================================== .. data:: {recipe} Synopsis -------- {synopsis} Description ----------- {description} Constructor ----------- .. method:: cpl.Recipe("{recipe}") :noindex: Create an object for the recipe {recipe}. :: import cpl {recipe} = cpl.Recipe("{recipe}") {parameters} .. seealso:: `cpl.Recipe `_ for more information about the recipe object. Bug reports ----------- Please report any problems to `{author} <{email}>`_. Alternatively, you may send a report to the `ESO User Support Department `_. Copyright --------- {license} .. codeauthor:: {author} <{email}> ''' par_template = '''.. py:attribute:: {recipe}.param.{par} {description} [default={default}]. ''' fname_template ="{recipe}.rst" index_template = '''.. title:: Overview The {PIPELINE} {version} pipeline ################################### These pages describe the python interface for the {PIPELINE} pipeline recipes. {recipes} .. toctree:: :hidden: {toctree} .. seealso:: * The `{PIPELINE} Pipeline User Manual `_ in PDF format, * an `overview `_ over the existing ESO pipelines, * the `python-cpl `_ package. Bug reports =========== If you experience an unexpected behavior of any component of the {PIPELINE} pipeline recipes package, please, first refer to the list of known problems and limitations in the pipeline manual of the current {PIPELINE} pipeline release. For any other issues or requests, please, send a report to the `ESO User Support Department `_, describing: * the {PIPELINE} pipeline version, * the version of your OS and C compiler, * the exact sequence of actions that were performed before the problem occurred, * what were precisely the symptoms and the possible error message(s), * whether the problem is repeatable. ''' rst_partemplate = '''Parameters ---------- {pars} The following code snippet shows the default settings for the available parameters. :: import cpl {recipe} = cpl.Recipe("{recipe}") {pars_example1} You may also set or overwrite some or all parameters by the recipe parameter `param`, as shown in the following example: :: import cpl {recipe} = cpl.Recipe("{recipe}") [...] res = {recipe}( ..., param = {{{pars_example2}}}) ''' conf_template = '''project = u'{PIPELINE} pipeline' version = '{version}' release = '{version}' master_doc = 'index' show_authors = True html_theme = 'sphinxdoc' ''' pipeline = sys.argv[1] cpl.Recipe.path = "recipes" recipes = [ cpl.Recipe(name) for name, version in cpl.Recipe.list() ] oca = file(os.path.join("calib", "gasgano", "config", pipeline + ".oca")).read() oca = oca[oca.find("action"):] recipes_oca = [recipe for recipe in recipes if recipe.__name__ in oca] index = [ oca.find(recipe.__name__) for recipe in recipes_oca ] recipes_oca = [r for (i, r) in sorted(zip(index, recipes_oca))] recipes_x = [recipe for recipe in recipes if not recipe.__name__ in oca] recipes_x.sort() def par(recipe, template, delimiter = "", count = None): return delimiter.join(template.format( recipe = recipe.__name__, par = p.name.replace("-","_"), type = p.type.__name__, description = p.__doc__.replace("\n", " "), default = '"{0}"'.format(p.default) if p.type is str else p.default ) for i, p in enumerate(recipe.param) if count is None or i < count) def get_description(s): o = [] l = s.splitlines() enabled = True for i, s in enumerate(l): if "BASIC PARAMETERS" in s: enabled = False elif "Examples:" in s: enabled = False elif "Input files" in s: enabled = True o += ["Input files", "^^^^^^^^^^^^", "::"] if len(l[i+1]) != 0: o += [""] elif "Output files" in s: enabled = True o += ["Output files", "^^^^^^^^^^^^", "::"] if len(l[i+1]) != 0: o += [""] elif not enabled: continue elif "-"*40 in s: pass elif len(s) == 0: o += [ s ] elif s[-1] == ".": o += [ s, "" ] else: o += [ s ] return "\n".join(o) def rstpage(recipe, template, partemplate): return template.format( recipe = recipe.__name__, version = recipe.__version__, synopsis = recipe.description[0], description = get_description(recipe.description[1]), email = recipe.__email__, author = recipe.__author__, license = recipe.__copyright__, pipeline = pipeline, parameters = partemplate.format( recipe = recipe.__name__, pars = par(recipe, par_template), pars_example1 = par(recipe, ' {recipe}.param.{par} = {default}\n'), pars_example2 = par(recipe, '"{par}":{default}', ', ', 2) ) if len(recipe.param) > 0 else '' ) for recipe in recipes_oca + recipes_x: f = open(os.path.join("sphinx", fname_template.format(recipe = recipe.__name__)), "w") f.write(rstpage(recipe, rst_template, rst_partemplate)) f.close() if len(recipes_oca) > 0 and len(recipes_x) > 0: toc_recipes = "Standard recipes\n----------------\n" toc_recipes += "\n\n".join(":data:`{recipe}`\n {synopsis}".format( recipe = recipe.__name__, synopsis = recipe.description[0] ) for recipe in recipes_oca) if len(recipes_oca) > 0 and len(recipes_x) > 0: toc_recipes += "\n\nAdditional recipes\n--------------------\n" toc_recipes += "\n\n".join(":data:`{recipe}`\n {synopsis}".format( recipe = recipe.__name__, synopsis = recipe.description[0] ) for recipe in recipes_x) toc = "\n".join(" {recipe}".format( recipe = recipe.__name__ ) for recipe in recipes_oca + recipes_x) f = open(os.path.join("sphinx", "index.rst"), "w") f.write(index_template.format(toctree = toc, recipes = toc_recipes, pipeline = pipeline, PIPELINE = pipeline.upper(), version = recipes[0].__version__)) f.close() f = open(os.path.join("sphinx", "conf.py"), "w") f.write(conf_template.format(PIPELINE = pipeline.upper(), version = recipes[0].__version__)) f.close() debian/compat0000644000000000000000000000000212215657252010373 0ustar 9 debian/changelog0000644000000000000000000000056312264547756011066 0ustar cpl-plugin-hawki (1.8.12+dfsg-2) unstable; urgency=low * Lower -doc dependency to "suggested" * Fix FTBS on powerpc, ia64 -- Ole Streicher Sun, 12 Jan 2014 18:24:40 +0100 cpl-plugin-hawki (1.8.12+dfsg-1) unstable; urgency=low * Initial release. (Closes: #709330) -- Ole Streicher Tue, 31 Dec 2013 14:54:03 +0100 debian/cpl-plugin.install.in0000644000000000000000000000020012216361760013231 0ustar usr/lib/* calib/dic usr/share/cpl-plugins/__PIPELINE__-__VERSION__ calib/gasgano usr/share/cpl-plugins/__PIPELINE__-__VERSION__ debian/control0000644000000000000000000000440612264547632010610 0ustar Source: cpl-plugin-hawki Section: science Priority: optional Maintainer: Debian Science Maintainers Uploaders: Ole Streicher Build-Depends: debhelper (>= 9), dh-autoreconf, libcpl-dev (>= 5.3.1), libgsl0-dev, pkg-config, python, python-cpl, python-pyfits, python-sphinx Standards-Version: 3.9.5 Homepage: http://www.eso.org/sci/software/pipelines/hawki Vcs-Git: git://anonscm.debian.org/debian-science/packages/cpl-plugin-hawki.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/cpl-plugin-hawki.git Package: cpl-plugin-hawki Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: esorex|python-cpl Suggests: cpl-plugin-hawki-calib (= ${binary:Version}), cpl-plugin-hawki-doc Multi-Arch: same Description: ESO data reduction pipeline for HAWK-I This is the data reduction pipeline for the HAWK-I instrument of the Very Large Telescope (VLT) from the European Southern Observatory (ESO). . HAWK-I is a near-infrared (0.85-2.5 μm ) wide-field imager. It is being offered for the first time in Period 81. The instrument is cryogenic (120 K, detectors at 80 K) and has a full reflective design. The light passes four mirrors and two filter wheels before hitting a mosaic of four Hawaii 2RG 2048 * 2048 pixels detectors. The final F-ratio is F/4.36 ( 1 arcsec on the sky corresponds to 169 μm on the detector). Package: cpl-plugin-hawki-doc Architecture: all Multi-Arch: foreign Depends: ${misc:Depends} Section: doc Description: ESO data reduction pipeline documentation for HAWK-I This package contains the HTML documentation and manpages for the data reduction pipeline for the HAWK-I instrument of the Very Large Telescope (VLT) from the European Southern Observatory (ESO). Package: cpl-plugin-hawki-calib Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, cpl-plugin-hawki, wget Description: ESO data reduction pipeline calibration data downloader for HAWK-I This package downloads calibration data of the data reduction pipeline for the HAWK-I instrument of the Very Large Telescope (VLT) from the European Southern Observatory (ESO). debian/copyright0000644000000000000000000000171312264547566011144 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: hawki Upstream-Contact: ESO User Support Department Source: ftp://ftp.eso.org/pub/dfs/pipelines/hawki/ Files: * Copyright: Copyright (C) 2001-2012 European Southern Observatory 2013 Ole Streicher (Debian packaging) License: GPL-v2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/cpl-plugin-hawki.lintian-overrides0000644000000000000000000000025612264547566015745 0ustar # This lib does not call any unfortified functions. cpl-plugin-hawki: hardening-no-fortify-functions usr/lib/x86_64-linux-gnu/cpl/plugins/hawki-1.8.12/hawki_util_stdstars.so debian/cpl-plugin-calib.prerm.in0000644000000000000000000000013512216361760013767 0ustar #!/bin/sh set -e rm -rfd /usr/share/cpl-plugins/__PIPELINE__-__VERSION__/cal/ #DEBHELPER# debian/cpl-plugin-calib.postinst.in0000644000000000000000000000075112216361760014531 0ustar #!/bin/sh set -e PIPELINE=__PIPELINE__ VERSION=__VERSION__ KIT=${PIPELINE}-kit-${VERSION} CALIB=${PIPELINE}-calib-${VERSION} URL=ftp://ftp.eso.org/pub/dfs/pipelines/${PIPELINE}/${KIT}.tar.gz TAR=${KIT}/${CALIB}.tar.gz COMPONENTS="${CALIB}/cal" TARGETDIR="/usr/share/cpl-plugins/${PIPELINE}-${VERSION}" if [ "$1" = "configure" ] ; then mkdir -p ${TARGETDIR} wget -O- ${URL} | \ tar xzO ${TAR} | \ tar xzC ${TARGETDIR} ${COMPONENTS} --strip-components=1 fi #DEBHELPER# debian/watch0000644000000000000000000000022012264547566010232 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://www.eso.org/sci/software/pipelines/ \ .*/hawki-kit-(.*).tar.gz \ debian debian/repackage.sh debian/cpl-plugin-calib.lintian-overrides.in0000644000000000000000000000016512215657252016306 0ustar # The calibration file installer is an empty package on purpose. cpl-plugin-__PIPELINE__-calib: empty-binary-package debian/cpl-plugin-doc.docs.in0000644000000000000000000000001412260545447013266 0ustar sphinx/html debian/patches/0000755000000000000000000000000012264547570010631 5ustar debian/patches/libadd_cpl.patch0000644000000000000000000001453112264547566013740 0ustar Author: Ole Streicher Description: Add the cpl libraries to the recips.so and the test program --- a/recipes/Makefile.am +++ b/recipes/Makefile.am @@ -54,96 +54,96 @@ hawki_util_extinction.la hawki_cal_dark_la_SOURCES = hawki_cal_dark.c -hawki_cal_dark_la_LIBADD = $(LIBHAWKI) +hawki_cal_dark_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_cal_dark_la_LDFLAGS = -module -avoid-version -no-undefined hawki_cal_dark_la_DEPENDENCIES = $(LIBHAWKI) hawki_cal_flat_la_SOURCES = hawki_cal_flat.c -hawki_cal_flat_la_LIBADD = $(LIBHAWKI) +hawki_cal_flat_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_cal_flat_la_LDFLAGS = -module -avoid-version -no-undefined hawki_cal_flat_la_DEPENDENCIES = $(LIBHAWKI) hawki_cal_zpoint_la_SOURCES = hawki_cal_zpoint.c -hawki_cal_zpoint_la_LIBADD = $(LIBHAWKI) +hawki_cal_zpoint_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_cal_zpoint_la_LDFLAGS = -module -avoid-version -no-undefined hawki_cal_zpoint_la_DEPENDENCIES = $(LIBHAWKI) hawki_util_extinction_la_SOURCES = hawki_util_extinction.c -hawki_util_extinction_la_LIBADD = $(LIBHAWKI) +hawki_util_extinction_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_util_extinction_la_LDFLAGS = -module -avoid-version -no-undefined hawki_util_extinction_la_DEPENDENCIES = $(LIBHAWKI) hawki_cal_distortion_la_SOURCES = hawki_cal_distortion.c -hawki_cal_distortion_la_LIBADD = $(LIBHAWKI) +hawki_cal_distortion_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_cal_distortion_la_LDFLAGS = -module -avoid-version -no-undefined hawki_cal_distortion_la_DEPENDENCIES = $(LIBHAWKI) hawki_sci_jitter_la_SOURCES = hawki_sci_jitter.c -hawki_sci_jitter_la_LIBADD = $(LIBHAWKI) +hawki_sci_jitter_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_sci_jitter_la_LDFLAGS = -module -avoid-version -no-undefined hawki_sci_jitter_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_basic_calib_la_SOURCES = hawki_step_basic_calib.c -hawki_step_basic_calib_la_LIBADD = $(LIBHAWKI) +hawki_step_basic_calib_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_basic_calib_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_basic_calib_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_stats_la_SOURCES = hawki_step_stats.c -hawki_step_stats_la_LIBADD = $(LIBHAWKI) +hawki_step_stats_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_stats_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_stats_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_compute_bkg_la_SOURCES = hawki_step_compute_bkg.cc -hawki_step_compute_bkg_la_LIBADD = $(LIBHAWKI) +hawki_step_compute_bkg_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_compute_bkg_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_compute_bkg_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_subtract_bkg_la_SOURCES = hawki_step_subtract_bkg.c -hawki_step_subtract_bkg_la_LIBADD = $(LIBHAWKI) +hawki_step_subtract_bkg_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_subtract_bkg_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_subtract_bkg_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_stitch_la_SOURCES = hawki_step_stitch.c -hawki_step_stitch_la_LIBADD = $(LIBHAWKI) +hawki_step_stitch_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_stitch_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_stitch_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_apply_dist_la_SOURCES = hawki_step_apply_dist.c -hawki_step_apply_dist_la_LIBADD = $(LIBHAWKI) +hawki_step_apply_dist_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_apply_dist_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_apply_dist_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_refine_offsets_la_SOURCES = hawki_step_refine_offsets.c -hawki_step_refine_offsets_la_LIBADD = $(LIBHAWKI) +hawki_step_refine_offsets_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_step_refine_offsets_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_refine_offsets_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_combine_la_SOURCES = hawki_step_combine.c -hawki_step_combine_la_LIBADD = $(LIBHAWKI) +hawki_step_combine_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_step_combine_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_combine_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_detect_obj_la_SOURCES = hawki_step_detect_obj.c -hawki_step_detect_obj_la_LIBADD = $(LIBHAWKI) +hawki_step_detect_obj_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_step_detect_obj_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_detect_obj_la_DEPENDENCIES = $(LIBHAWKI) hawki_step_photom_2mass_la_SOURCES = hawki_step_photom_2mass.c -hawki_step_photom_2mass_la_LIBADD = $(LIBHAWKI) +hawki_step_photom_2mass_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLDRS) $(LIBCPLUI) hawki_step_photom_2mass_la_LDFLAGS = -module -avoid-version -no-undefined hawki_step_photom_2mass_la_DEPENDENCIES = $(LIBHAWKI) hawki_tec_filtchk_la_SOURCES = hawki_tec_filtchk.c -hawki_tec_filtchk_la_LIBADD = $(LIBHAWKI) +hawki_tec_filtchk_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_tec_filtchk_la_LDFLAGS = -module -avoid-version -no-undefined hawki_tec_filtchk_la_DEPENDENCIES = $(LIBHAWKI) hawki_util_gendist_la_SOURCES = hawki_util_gendist.c -hawki_util_gendist_la_LIBADD = $(LIBHAWKI) +hawki_util_gendist_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_util_gendist_la_LDFLAGS = -module -avoid-version -no-undefined hawki_util_gendist_la_DEPENDENCIES = $(LIBHAWKI) hawki_util_stdstars_la_SOURCES = hawki_util_stdstars.c -hawki_util_stdstars_la_LIBADD = $(LIBHAWKI) +hawki_util_stdstars_la_LIBADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI) hawki_util_stdstars_la_LDFLAGS = -module -avoid-version -no-undefined hawki_util_stdstars_la_DEPENDENCIES = $(LIBHAWKI) --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -32,7 +32,7 @@ LIBHAWKI = $(top_builddir)/hawki/libhawki.la AM_CPPFLAGS = -I$(top_builddir)hawki/ -LDADD = $(LIBHAWKI) +LDADD = $(LIBHAWKI) $(LIBCPLCORE) $(LIBCPLUI) check_PROGRAMS = debian/patches/series0000644000000000000000000000015612264547570012050 0ustar libadd_cpl.patch set_plugindir.patch use-std-paths-for-cpl.patch fix_test_fail.patch force-serial-tests.patch debian/patches/set_plugindir.patch0000644000000000000000000000066012264547566014531 0ustar Author: Ole Streicher Description: Set the plugin directory so that esorex and python-cpl can find it. --- a/acinclude.m4 +++ b/acinclude.m4 @@ -66,7 +66,7 @@ AC_DEFUN([HAWKI_SET_PATHS], [ if test -z "$plugindir"; then - plugindir='${libdir}/esopipes-plugins/${PACKAGE}-${VERSION}' + plugindir='${libdir}/cpl/plugins/${PACKAGE}-${VERSION}' fi if test -z "$privatelibdir"; then debian/patches/fix_test_fail.patch0000644000000000000000000000075412264547570014500 0ustar Author: Ole Streicher Description: Increase tolerance to fix FTBS on mips and ia64 --- a/irplib/tests/irplib_polynomial-test.c +++ b/irplib/tests/irplib_polynomial-test.c @@ -569,7 +569,7 @@ for (i = nreal; i < degree; i++) { const double root = cpl_vector_get(roots, i); - cpl_test_abs(root, cpl_vector_get(self, i), tolerance); + cpl_test_abs(root, cpl_vector_get(self, i), 2*tolerance); /* FIXME: Verify residual as well */ debian/patches/force-serial-tests.patch0000644000000000000000000000265612264547570015376 0ustar Author: Ole Streicher Description: Force serial-tests to get better verbose output Bug: http://bugs.debian.org/715204 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -17,7 +17,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -AUTOMAKE_OPTIONS = 1.6 foreign +AUTOMAKE_OPTIONS = 1.13 foreign serial-tests DISTCLEANFILES = *~ --- a/hawki/tests/Makefile.am +++ b/hawki/tests/Makefile.am @@ -17,7 +17,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -AUTOMAKE_OPTIONS = 1.8 foreign +AUTOMAKE_OPTIONS = 1.13 foreign serial-tests DISTCLEANFILES = *~ --- a/regtests/tests/Makefile.am +++ b/regtests/tests/Makefile.am @@ -17,7 +17,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA -AUTOMAKE_OPTIONS = 1.8 foreign +AUTOMAKE_OPTIONS = 1.13 foreign serial-tests DISTCLEANFILES = *~ --- a/irplib/tests/Makefile.am +++ b/irplib/tests/Makefile.am @@ -17,7 +17,7 @@ ## along with this program; if not, write to the Free Software ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA -AUTOMAKE_OPTIONS = 1.8 foreign +AUTOMAKE_OPTIONS = 1.13 foreign serial-tests DISTCLEANFILES = *~ debian/patches/use-std-paths-for-cpl.patch0000644000000000000000000000514112264547566015721 0ustar Author: Ole Streicher Description: Use standard path and name for cpl --- a/m4macros/cpl.m4 +++ b/m4macros/cpl.m4 @@ -9,7 +9,7 @@ cpl_cfitsio_check_version="$1" cpl_cfitsio_check_header="fitsio.h" - cpl_cfitsio_check_lib="libcfitsio.a" + cpl_cfitsio_check_lib="libcfitsio.so" cpl_cfitsio_incdirs="" cpl_cfitsio_libdirs="" @@ -110,7 +110,7 @@ cpl_cfitsio_libdirs="$cpl_cfitsio_libdirs /usr/lib64" cpl_cfitsio_libdirs="$cpl_cfitsio_libdirs /usr/lib" cpl_cfitsio_libdirs="$cpl_cfitsio_libdirs /usr/lib32" - + cpl_cfitsio_libdirs="$cpl_cfitsio_libdirs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" test -n "$CFITSIODIR" && \ cpl_cfitsio_libdirs="$CFITSIODIR/lib64 $CFITSIODIR/lib \ $CFITSIODIR/lib32 $cpl_cfitsio_libdirs" @@ -492,6 +492,7 @@ cpl_cext_libdirs="$cpl_cext_libdirs /usr/lib64" cpl_cext_libdirs="$cpl_cext_libdirs /usr/lib" cpl_cext_libdirs="$cpl_cext_libdirs /usr/lib32" + cpl_cext_libdirs="$cpl_cext_libdirs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" test -n "$CPLDIR" && \ cpl_cext_libdirs="$CPLDIR/lib64 \ @@ -678,6 +679,7 @@ cpl_wcs_libdirs="$cpl_wcs_libdirs /usr/lib64" cpl_wcs_libdirs="$cpl_wcs_libdirs /usr/lib" cpl_wcs_libdirs="$cpl_wcs_libdirs /usr/lib32" + cpl_wcs_libdirs="$cpl_wcs_libdirs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" test -n "$WCSDIR" && \ cpl_wcs_libdirs="$WCSDIR/lib64 \ @@ -912,6 +914,7 @@ cpl_fftw_libdirs="$cpl_fftw_libdirs /usr/lib64" cpl_fftw_libdirs="$cpl_fftw_libdirs /usr/lib" cpl_fftw_libdirs="$cpl_fftw_libdirs /usr/lib32" + cpl_fftw_libdirs="$cpl_fftw_libdirs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" test -n "$FFTWDIR" && \ cpl_fftw_libdirs="$FFTWDIR/lib64 \ @@ -1250,7 +1253,7 @@ AC_MSG_CHECKING([for CPL]) cpl_check_cpl_header="cpl.h" - cpl_check_cpl_lib="libcplcore.a" + cpl_check_cpl_lib="libcplcore.so" cpl_incdirs="" cpl_libdirs="" @@ -1327,6 +1330,7 @@ cpl_libdirs="$cpl_libdirs /usr/lib64" cpl_libdirs="$cpl_libdirs /usr/lib" cpl_libdirs="$cpl_libdirs /usr/lib32" + cpl_libdirs="$cpl_libdirs /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" test -n "$CPLDIR" && \ cpl_libdirs="$CPLDIR/lib64 $CPLDIR/lib $CPLDIR/lib32 \ debian/cpl-plugin-doc.doc-base.in0000644000000000000000000000150112260545447014015 0ustar Document: cpl-plugin-__PIPELINE__ Title: __PIPELINE__ pipeline documentation Section: Science/Astronomy Abstract: The __PIPELINE__ pipeline is a subsystem of the Data Flow System for handling data taken with the Very Large Telescope (VLT) of the European Southern Observatory (ESO). It provides the standard algorithms for the quick-look assessment of data, the generation of master calibration data, the reduction of scientific exposures, in the data quality control. The FORS pipeline recipes are made public to the user community, to enable a more personalised processing of the data from the instrument. . This document describes the Python interface for the __PIPELINE__ pipeline. Format: HTML Index: /usr/share/doc/cpl-plugin-__PIPELINE__-doc/html/index.html Files: /usr/share/doc/cpl-plugin-__PIPELINE__-doc/html/* debian/rules0000755000000000000000000000437112260545447010264 0ustar #!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE=1 DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/+.*//') DEBPKGNAME ?= $(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2) PIPELINE ?= $(shell echo '$(DEBPKGNAME)' | sed -e 's/cpl-plugin-//') get-orig-source: sh ./debian/repackage.sh %: dh $@ --with autoreconf,sphinxdoc debian_files: if [ -d calib/cal ] ; then \ dfiles=".install -doc.manpages -doc.docs -doc.doc-base -calib.install" ; \ else \ cp -f debian/README.Debian.in debian/README.Debian ; \ dfiles=".install -doc.manpages -doc.docs -doc.doc-base -calib.postinst -calib.prerm -calib.lintian-overrides" ; \ fi ; \ for f in $$dfiles ; do \ sed "s/__VERSION__/$(VERSION)/g;s/__PIPELINE__/${PIPELINE}/g" \ < debian/cpl-plugin$$f.in \ > debian/${DEBPKGNAME}$$f ; \ done override_dh_install: debian_files dh_install override_dh_installman-indep: mkdir -p man python debian/create_manpage.py ${PIPELINE} dh_installman override_dh_installdocs-indep: mkdir -p sphinx python debian/create_sphinx.py ${PIPELINE} sphinx-build sphinx sphinx/html dh_installdocs override_dh_sphinxdoc: if [ -d sphinx ] ; then \ dh_sphinxdoc ; \ fi override_dh_clean: dh_clean rm -rf debian/${DEBPKGNAME}.install \ debian/${DEBPKGNAME}-doc.manpages \ debian/${DEBPKGNAME}-doc.docs \ debian/${DEBPKGNAME}-doc.doc-base \ debian/${DEBPKGNAME}-calib.lintian-overrides \ debian/${DEBPKGNAME}-calib.install \ debian/${DEBPKGNAME}-calib.postinst \ debian/${DEBPKGNAME}-calib.prerm \ debian/README.Debian \ man sphinx override_dh_auto_configure: dh_auto_configure -- --prefix=/usr/ override_dh_makeshlibs: sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'` override_dh_installchangelogs: if [ -s ChangeLog ] ; then \ dh_installchangelogs ChangeLog ; \ else \ dh_installchangelogs ; \ fi override_dh_gencontrol-indep: dh_gencontrol if [ ! -d calib/cal ] ; then \ sed "s/Installed-Size:.*/Installed-Size: $(shell cat calib/cal_size)/" -i debian/${DEBPKGNAME}-calib/DEBIAN/control ; \ fi debian/source/0000755000000000000000000000000012215657252010475 5ustar debian/source/format0000644000000000000000000000001412215657252011703 0ustar 3.0 (quilt) debian/create_manpage.py0000644000000000000000000000710012260545436012500 0ustar #!/usr/bin/env python import cpl import os import sys import re man_template = '''.TH {NAME} "{section}" "{version}" "{name}" "{pipeline} recipes" .SH NAME {name} - {synopsis} .SH SYNOPSIS esorex .B {name} [OPTIONS] FILE.sof .SH DESCRIPTION {description} .SH OPTIONS {options} .PP Note that it is possible to create a configuration file containing these options, along with suitable default values. Please refer to the details provided by the 'esorex --help' command. .SH SEE ALSO The full documentation for the {pipeline} pipeline can be downloaded as a PDF file using the following URL: .IP .B ftp://ftp.eso.org/pub/dfs/pipelines/{pipeline}/{pipeline}-pipeline-manual-{version}.pdf .PP An overview over the existing ESO pipelines can be found on the web page \\fBhttp://www.eso.org/sci/software/pipelines/\\fR. .PP Basic documentation about the EsoRex program can be found at the esorex (1) man page. .PP It is possible to call the pipelines from python using the python-cpl package. See \\fBhttp://packages.python.org/python-cpl/index.html\\fR for further information. .PP The other recipes of the {pipeline} pipeline are {seealso} .SH VERSION {name} {version} .SH AUTHOR {author} <{email}> .SH BUG REPORTS Please report any problems to {email}. Alternatively, you may send a report to the ESO User Support Department . .SH LICENSE {license} ''' par_template = '''.TP \\fB--{name}\\fR \\fI<{type}>\\fR {description}. The full name of this option for the EsoRex configuration file is \\fB{fullname}\\fR [default = \\fI{default}\\fR]. ''' seealso_template = ".IR {name} ({section})" fname_template ="{name}.{section}" section = 7 pipeline = sys.argv[1] cpl.Recipe.path = "recipes" recipes = cpl.Recipe.list() def param(recipe, template): return "".join(template.format(name = p.name, fullname = p.fullname, type = p.type.__name__, description = p.__doc__.replace("'", "\\'"), default = p.default) for p in recipe.param) def seealso(recipe, template): return ",\n".join(template.format(name = name, section=section) for name,v in recipes if (name != recipe.__name__)) def manpage(recipe): description = recipe.description[1] description = re.sub("-"*40+"+", "", description) \ .replace(".\n", ".\n.PP\n").replace("'", "\\'") description = re.sub("\n([A-Z][A-Z 0-9]+):?\n----+", "\n.SS \\1", description) return man_template.format(name = recipe.__name__, NAME = recipe.__name__.upper(), section = section, version = recipe.__version__, synopsis = recipe.description[0], description = description, seealso = seealso(recipe, seealso_template), email = recipe.__email__, author = recipe.__author__, license = recipe.__copyright__, pipeline = pipeline, options = param(recipe, par_template)) for name, version in recipes: recipe = cpl.Recipe(name) f = open(os.path.join("man", fname_template.format(name = name, section=section)), "w") f.write(manpage(recipe).replace('-', '\\-')) f.close() debian/cpl-plugin-calib.install.in0000644000000000000000000000007112216361760014307 0ustar calib/cal usr/share/cpl-plugins/__PIPELINE__-__VERSION__ debian/README.Debian.in0000644000000000000000000000034612216361760011643 0ustar Due to their size, static calibration files are not included. Installing the "calib" subpackage will download the corresponding files from the ESO archive. -- Ole Streicher Fri, 13 Sep 2013 18:50:00 +0200