[cpl-plugin-template] 01/58: Initial files

Ole Streicher olebole at moszumanska.debian.org
Tue Mar 31 09:23:34 UTC 2015


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

olebole pushed a commit to branch debian-template
in repository cpl-plugin-template.

commit ccf284cd71f5a77f3f9f6fe7dba9a6ac2d1db17f
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Thu Jan 3 15:27:39 2013 +0100

    Initial files
---
 debian/compat                              |  1 +
 debian/control                             | 33 +++++++++++++++++++++++++++
 debian/copyright                           | 26 +++++++++++++++++++++
 debian/cpl-plugin-calib.install.template   |  1 +
 debian/cpl-plugin.install.template         |  1 +
 debian/patches/libadd_cpl.patch            | 24 ++++++++++++++++++++
 debian/patches/series                      |  3 +++
 debian/patches/set_plugindir.patch         | 13 +++++++++++
 debian/patches/use-std-paths-for-cpl.patch | 21 +++++++++++++++++
 debian/repackage.sh                        | 36 ++++++++++++++++++++++++++++++
 debian/rules                               | 19 ++++++++++++++++
 debian/source/format                       |  1 +
 debian/watch                               |  4 ++++
 13 files changed, 183 insertions(+)

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/control b/debian/control
new file mode 100644
index 0000000..9bb0086
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: cpl-plugin-template
+Section: science
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ole Streicher <debian at liska.ath.cx>
+Build-Depends: debhelper (>= 9), dh-autoreconf, libcpl-dev (>= 5.3.1)
+DM-Upload-Allowed: yes
+Standards-Version: 3.9.3
+Homepage: http://www.eso.org/sci/software/pipelines/template
+Vcs-Git: git://git.debian.org/git/debian-science/packages/cpl-plugin-template.git
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/cpl-plugin-template.git
+
+Package: cpl-plugin-template
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Suggests: cpl-plugin-template-calib
+Recommends: esorex|python-cpl
+Multi-Arch: same
+Description: ESO data reduction pipeline template
+ This is the data reduction pipeline for the Template instrument of the
+ Very Large Telescope (VLT) from the European Southern Observatory (ESO).
+ .
+ This package is used as a template for the other ESO recipes. It is not
+ meant to built as a package.
+
+Package: cpl-plugin-template-calib
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}
+Description: ESO data reduction pipeline calibration data template
+ This package contains calibration and other static data of the 
+ data reduction pipeline for the Template instrument of the
+ Very Large Telescope (VLT) from the European Southern Observatory (ESO).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9d4c5a3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: template
+Upstream-Author: Firstname Lastname  <flastname at eso.org>
+Source: ftp://ftp.eso.org/pub/dfs/pipelines/template/
+
+Files: * 
+Copyright: Copyright (C) 2001-2012 European Southern Observatory
+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'.
+
+Files: debian/*
+Copyright: not applicable
+License: public-domain
+ Debian packaging by Ole Streicher <debian at liska.ath.cx>
diff --git a/debian/cpl-plugin-calib.install.template b/debian/cpl-plugin-calib.install.template
new file mode 100644
index 0000000..5de4a5c
--- /dev/null
+++ b/debian/cpl-plugin-calib.install.template
@@ -0,0 +1 @@
+calib/* usr/share/cpl-plugins/template
diff --git a/debian/cpl-plugin.install.template b/debian/cpl-plugin.install.template
new file mode 100644
index 0000000..f1d0181
--- /dev/null
+++ b/debian/cpl-plugin.install.template
@@ -0,0 +1 @@
+usr/lib/*
diff --git a/debian/patches/libadd_cpl.patch b/debian/patches/libadd_cpl.patch
new file mode 100644
index 0000000..1f4ee35
--- /dev/null
+++ b/debian/patches/libadd_cpl.patch
@@ -0,0 +1,24 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Add the cpl libraries to the recips.so and the test program
+--- a/template/tests/Makefile.am
++++ b/template/tests/Makefile.am
+@@ -32,7 +32,7 @@
+ LIBTEMPLATE = $(top_builddir)/template/libtemplate.la
+ 
+ INCLUDES = $(all_includes)
+-LDADD = $(LIBTEMPLATE)
++LDADD = $(LIBTEMPLATE) $(LIBCPLCORE) $(LIBCPLUI)
+ 
+ check_PROGRAMS = template_dfs-test
+ 
+--- a/recipes/Makefile.am
++++ b/recipes/Makefile.am
+@@ -36,7 +36,7 @@
+ plugin_LTLIBRARIES = rrrecipe.la rrrecipe_calib.la 
+ 
+ rrrecipe_la_SOURCES = rrrecipe.c 
+-rrrecipe_la_LIBADD = $(LIBTEMPLATE)
++rrrecipe_la_LIBADD = $(LIBTEMPLATE) $(LIBCPLCORE) $(LIBCPLDFS) $(LIBCPLUI)
+ rrrecipe_la_LDFLAGS = -module -avoid-version
+ rrrecipe_la_DEPENDENCIES = $(LIBTEMPLATE)
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e2c2220
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+libadd_cpl.patch
+set_plugindir.patch
+use-std-paths-for-cpl.patch
diff --git a/debian/patches/set_plugindir.patch b/debian/patches/set_plugindir.patch
new file mode 100644
index 0000000..9c9230a
--- /dev/null
+++ b/debian/patches/set_plugindir.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Set the plugin directory so that esorex and python-cpl can find it.
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -86,7 +86,7 @@
+ [
+ 
+     if test -z "$plugindir"; then
+-        plugindir='${libdir}/esopipes-plugins/${PACKAGE}-${VERSION}'
++        plugindir='${libdir}/cpl/plugins/${PACKAGE}-${VERSION}'
+     fi
+ 
+     if test -z "$privatelibdir"; then
diff --git a/debian/patches/use-std-paths-for-cpl.patch b/debian/patches/use-std-paths-for-cpl.patch
new file mode 100644
index 0000000..ae95068
--- /dev/null
+++ b/debian/patches/use-std-paths-for-cpl.patch
@@ -0,0 +1,21 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Use standard path and name for cpl
+--- a/m4macros/cpl.m4
++++ b/m4macros/cpl.m4
+@@ -41,7 +41,7 @@
+     AC_MSG_CHECKING([for CPL])
+ 
+     cpl_check_cpl_header="cpl_macros.h"
+-    cpl_check_cpl_lib="libcplcore.la"
++    cpl_check_cpl_lib="libcplcore.so"
+ 
+     cpl_includes=""
+     cpl_libraries=""
+@@ -97,6 +97,7 @@
+             cpl_libdirs="/opt/cpl/lib \
+                          /usr/local/lib \
+                          /usr/local/cpl/lib \
++			 /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
+                          /usr/lib"
+ 
+             test -n "$CPLDIR" && cpl_libdirs="$CPLDIR/lib $cpl_libdirs"
diff --git a/debian/repackage.sh b/debian/repackage.sh
new file mode 100755
index 0000000..8b71192
--- /dev/null
+++ b/debian/repackage.sh
@@ -0,0 +1,36 @@
+#!/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 and calibration 
+# packages and use them as source packages for Debian.
+#
+# 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
+
+# Sub packages
+SUBDIRS=calib
+
+BASEDIR=$(dirname $3)
+FILENAME=${BASEDIR}/${PIPELINE}-kit-${VERSION}.tar.gz
+tar xf ${FILENAME} -C ${BASEDIR}
+rm -f ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig*.tar.gz ${FILENAME}
+
+mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz \
+   ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig.tar.gz
+
+for d in ${SUBDIRS}; do
+  mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${d}-${VERSION}.tar.gz \
+     ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig-${d}.tar.gz
+done
+
+rm -rf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/ 
+exec uupdate --no-symlink "$@"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..dee4f0e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#export DH_VERBOSE=1
+
+%:
+	dh  $@ --with autoreconf
+
+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
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/watch b/debian/watch
new file mode 100644
index 0000000..4e895da
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+http://www.eso.org/sci/software/pipelines/ \
+ .*/template-kit-(.*).tar.gz \
+ debian debian/repackage.sh

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



More information about the debian-science-commits mailing list