[netcdf4-python] 02/03: Initial debian packaging

Ross Gammon ross-guest at moszumanska.debian.org
Fri Mar 20 14:10:15 UTC 2015


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

ross-guest pushed a commit to branch master
in repository netcdf4-python.

commit 2e53072f7a7f737bc5215c424873bfd6dcce2b4d
Author: Ross Gammon <rossgammon at mail.dk>
Date:   Tue Feb 24 23:06:20 2015 +0100

    Initial debian packaging
---
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 36 +++++++++++++++++++++++++++++++++++
 debian/copyright         | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/gbp.conf          | 16 ++++++++++++++++
 debian/rules             | 20 ++++++++++++++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata |  6 ++++++
 debian/watch             |  7 +++++++
 9 files changed, 141 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fcc13eb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+netcdf4-python (1.1.4.1-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #778417)
+
+ -- Ross Gammon <rossgammon at mail.dk>  Mon, 24 Feb 2015 21:10:00 +0100
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..157442e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: netcdf4-python
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Ross Gammon <rossgammon at mail.dk>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all (>= 2.6.6-3~),
+               python-setuptools,
+               python-numpy,
+               cython,
+               libhdf5-dev,
+               libnetcdf-dev
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/netcdf4-python.git/
+Vcs-Git: git://anonscm.debian.org/pkg-grass/netcdf4-python.git
+Homepage: http://unidata.github.io/netcdf4-python/
+X-Python-Version: >= 2.6
+
+Package: netcdf4-python
+Architecture: all
+Depends: ${python:Depends},
+         ${misc:Depends}
+Description: python interface to the netCDF4 (network Common Data Form) library
+ NetCDF version 4 has many features not found in earlier versions of the
+ library and is implemented on top of HDF5. This module can read and write
+ files in both the new netCDF 4 and the old netCDF 3 format, and can create
+ files that are readable by HDF5 clients. The API is modelled after
+ Scientific.IO.NetCDF, and should be familiar to users of that module.
+ .
+ Most new features of netCDF 4 are implemented, such as multiple unlimited
+ dimensions, groups and zlib data compression. All the new numeric data types
+ (such as 64 bit and unsigned integer types) are implemented. Compound and
+ variable length (vlen) data types are supported, but the enum and opaque data
+ types are not. Mixtures of compound and vlen data types (compound types
+ containing vlens, and vlens containing compound types) are not supported.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..45f2ab2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,49 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: netcdf4-python
+Upstream-Contact:  Jeff Whitaker <jeffrey.s.whitaker at noaa.gov>
+Source: http://unidata.github.io/netcdf4-python/
+
+Files: *
+Copyright: 2008, Jeffrey Whitaker
+License: ISC
+
+Files: debian/*
+Copyright: 2015 Ross Gammon <rossgammon at mail.dk>
+License: ISC
+ 
+Files: netcdftime/netcdftime.py
+Copyright: 2007 Michael Twomey
+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.
+
+License: ISC
+ Permission to use, copy, modify, and distribute this software and
+ its documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both the copyright notice and this permission notice appear in
+ supporting documentation.
+ .
+ THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
+ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ce8a4da
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+DH_VERBOSE := 1
+
+# some helpful variables - uncomment them if needed
+# shamelessly stolen from http://jmtd.net/log/awk/
+#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
+#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
+#GIT_TAG        := $(subst ~,_,$(VERSION))
+
+# alternatively to manually set those variables you can
+#  include /usr/share/cdbs/1/rules/buildvars.mk
+# and use what is set there.  Any hint whether dh might set variables in
+# a similar manner are welcome.
+
+%:
+	dh $@ --with python2 --buildsystem=pybuild
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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..dfeca10
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/Unidata/netcdf4-python/issues
+Bug-Submit: https://github.com/Unidata/netcdf4-python/issues/new
+Name: NetCDF4-python
+Repository: https://github.com/Unidata/netcdf4-python.git
+Repository-Browse: https://github.com/Unidata/netcdf4-python
+Other-References: http://unidata.github.io/netcdf4-python/netCDF4-module.html
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ddb2634
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=3
+
+#opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/netcdf4-python-$1\.tar\.gz/ \
+#  https://github.com/Unidata/netcdf4-python/tags .*/v?(\d\S*)rel\.tar\.gz
+
+https://pypi.python.org/pypi/netCDF4 \
+  https://pypi.python.org/packages/source/n/netCDF4/netCDF4-(.+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf4-python.git



More information about the Pkg-grass-devel mailing list