[hydroffice.bag] 01/02: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 12 10:01:44 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository hydroffice.bag.

commit 090db528e04aa03e916709f1666cdacf3e33e841
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 9 09:17:02 2016 +0100

    Initial debianization.
---
 debian/changelog                                   |  5 ++
 debian/clean                                       |  1 +
 debian/compat                                      |  1 +
 debian/control                                     | 94 ++++++++++++++++++++++
 debian/copyright                                   | 20 +++++
 debian/gbp.conf                                    |  9 +++
 debian/hydroffice.bag-doc.doc-base                 |  9 +++
 debian/hydroffice.bag-doc.docs                     |  1 +
 debian/hydroffice.bag-doc.examples                 |  1 +
 debian/hydroffice.bag-doc.install                  |  1 +
 debian/hydroffice.bag-doc.lintian-overrides        |  1 +
 debian/hydroffice.bag-tools.lintian-overrides      |  2 +
 .../patches/Use-local-copy-of-project-logo.patch   | 41 ++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       | 21 +++++
 debian/source/format                               |  1 +
 debian/tests/control                               |  9 +++
 debian/upstream/metadata                           |  6 ++
 debian/watch                                       |  3 +
 19 files changed, 227 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dbc2635
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+hydroffice.bag (0.2.15-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #823233)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 07 Jun 2016 10:35:01 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..45149aa
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+*.egg-info/*
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..b14be4d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,94 @@
+Source: hydroffice.bag
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: science
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-gdal,
+               python-h5py,
+               python-lxml,
+               python-setuptools,
+               python-sphinx,
+               python-wheel,
+               python3-all,
+               python3-gdal,
+               python3-h5py,
+               python3-lxml,
+               python3-setuptools,
+               python3-wheel
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/hydroffice.bag.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/hydroffice.bag.git
+Homepage: http://www.hydroffice.org/
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
+
+Package: python-hydroffice.bag
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python:Depends}
+Suggests: hydroffice.bag-doc
+Description: manage Bathymetric Attributed Grid (BAG) data files (Python 2)
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the Python 2 library.
+
+Package: python3-hydroffice.bag
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Suggests: hydroffice.bag-doc
+Description: manage Bathymetric Attributed Grid (BAG) data files (Python 3)
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the Python 3 library.
+
+Package: hydroffice.bag-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: documentation for hydroffice.bag
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the documentation.
+
+Package: hydroffice.bag-tools
+Architecture: all
+Section: utils
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-hydroffice.bag (= ${binary:Version})
+Description: command-line tools for hydroffice.bag
+ HydrOffice is a research development environment for ocean mapping. It
+ provides a collection of hydro-packages, each of them dealing with a
+ specific issue of the field. The main goal is to speed up both
+ algorithms testing and research-2-operation.
+ .
+ The BAG hydro-package collects tools for working with BAG files. BAG is
+ a data format by the ONS-WG (Open Navigation Surface Working Group).
+ .
+ This package provides the command-line tools.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3bbefc9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Brian R. Calder <brc at ccom.unh.edu>
+                  Giuseppe Masetti <gmasetti at ccom.unh.edu>
+Source: https://github.com/hydroffice/hyo_bag
+
+Files: *
+Copyright: 2015 G.Masetti and B.R.Calder
+License: LGPL-3
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: LGPL-3
+
+License: LGPL-3
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; version 3 of the License.
+ .
+ On Debian systems, the complete text of version 3 of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ea5c858
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+upstream-branch = upstream/latest
+debian-branch = debian/master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[pq]
+patch-numbers = False
diff --git a/debian/hydroffice.bag-doc.doc-base b/debian/hydroffice.bag-doc.doc-base
new file mode 100644
index 0000000..fd38280
--- /dev/null
+++ b/debian/hydroffice.bag-doc.doc-base
@@ -0,0 +1,9 @@
+Document: hydroffice.bag-doc
+Title: hydroffice.bag documentation
+Author: G.Masetti and B.R.Calder
+Abstract: This is the reference documentation of the hydroffice.bag package.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/hydroffice.bag-doc/html/index.html
+Files: /usr/share/doc/hydroffice.bag-doc/html/*.html
diff --git a/debian/hydroffice.bag-doc.docs b/debian/hydroffice.bag-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/hydroffice.bag-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/hydroffice.bag-doc.examples b/debian/hydroffice.bag-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/hydroffice.bag-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/hydroffice.bag-doc.install b/debian/hydroffice.bag-doc.install
new file mode 100644
index 0000000..5dff153
--- /dev/null
+++ b/debian/hydroffice.bag-doc.install
@@ -0,0 +1 @@
+hydroffice/bag/media/favicon.png usr/share/doc/hydroffice.bag-doc/html
diff --git a/debian/hydroffice.bag-doc.lintian-overrides b/debian/hydroffice.bag-doc.lintian-overrides
new file mode 100644
index 0000000..50dd275
--- /dev/null
+++ b/debian/hydroffice.bag-doc.lintian-overrides
@@ -0,0 +1 @@
+extra-license-file
diff --git a/debian/hydroffice.bag-tools.lintian-overrides b/debian/hydroffice.bag-tools.lintian-overrides
new file mode 100644
index 0000000..845eecb
--- /dev/null
+++ b/debian/hydroffice.bag-tools.lintian-overrides
@@ -0,0 +1,2 @@
+# Upstream does not (yet?) provide manpages for the tools.
+binary-without-manpage
diff --git a/debian/patches/Use-local-copy-of-project-logo.patch b/debian/patches/Use-local-copy-of-project-logo.patch
new file mode 100644
index 0000000..9ee722d
--- /dev/null
+++ b/debian/patches/Use-local-copy-of-project-logo.patch
@@ -0,0 +1,41 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Thu, 5 May 2016 10:57:42 +0100
+Subject: Use local copy of project logo.
+
+---
+ docs/_templates/sidebarintro.html | 2 +-
+ docs/_templates/sidebarlogo.html  | 2 +-
+ docs/in_brief.rst                 | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html
+index 94728b2..151b000 100644
+--- a/docs/_templates/sidebarintro.html
++++ b/docs/_templates/sidebarintro.html
+@@ -1,3 +1,3 @@
+ <p class="logo"><a href="{{ pathto(master_doc) }}">
+-  <img class="logo" src="https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png" alt="Logo"/>
++  <img class="logo" src="favicon.png" alt="Logo"/>
+ </a></p>
+diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html
+index 94728b2..151b000 100644
+--- a/docs/_templates/sidebarlogo.html
++++ b/docs/_templates/sidebarlogo.html
+@@ -1,3 +1,3 @@
+ <p class="logo"><a href="{{ pathto(master_doc) }}">
+-  <img class="logo" src="https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png" alt="Logo"/>
++  <img class="logo" src="favicon.png" alt="Logo"/>
+ </a></p>
+diff --git a/docs/in_brief.rst b/docs/in_brief.rst
+index 9d0f539..3c3ebe2 100644
+--- a/docs/in_brief.rst
++++ b/docs/in_brief.rst
+@@ -1,7 +1,7 @@
+ In brief
+ ========
+ 
+-.. image:: https://bitbucket.org/ccomjhc/hyo_bag/raw/tip/hydroffice/bag/media/favicon.png
++.. image:: favicon.png
+     :alt: logo
+ 
+ HydrOffice is a research development environment for ocean mapping. It provides a collection of hydro-packages, each of them dealing with a specific issue of the field.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..63bf4cd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Use-local-copy-of-project-logo.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ac12058
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=hydroffice.bag
+export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
+export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' \
+		sphinx-build -N -b html docs build/html
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_movefiles --sourcedir=$(PYBUILD_DESTDIR_python3) \
+		--package=$(PYBUILD_NAME)-tools usr/bin/*
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/control b/debian/tests/control
new file mode 100644
index 0000000..59ea282
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,9 @@
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
+ python -m unittest discover tests
+Depends: python-hydroffice.bag
+Restrictions: allow-stderr
+
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
+ python3 -m unittest discover tests
+Depends: python3-hydroffice.bag
+Restrictions: allow-stderr
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..120fb68
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/hydroffice/hyo_bag/issues
+Bug-Submit: https://github.com/hydroffice/hyo_bag/issues/new
+Changelog: https://github.com/hydroffice/hyo_bag/blob/master/HISTORY.rst
+Name: hydroffice.bag
+Repository: git at github.com:hydroffice/hyo_bag.git
+Repository-Broswe: https://github.com/hydroffice/hyo_bag
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3f22dba
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/hydroffice.bag/hydroffice.bag-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hydroffice.bag.git



More information about the debian-science-commits mailing list