[python-mpop] 02/02: Imported Debian patch 1.0.0-1

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Sat Jul 12 15:08:14 UTC 2014


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

a_valentino-guest pushed a commit to branch master
in repository python-mpop.

commit ed331f113939dbce711fd89e00d3be3d3ded5ee3
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sun Jun 22 12:53:26 2014 +0000

    Imported Debian patch 1.0.0-1
---
 debian/changelog                     |   5 ++
 debian/compat                        |   1 +
 debian/control                       |  42 +++++++++++++++
 debian/copyright                     | 100 +++++++++++++++++++++++++++++++++++
 debian/docs                          |   1 +
 debian/patches/fix-config-path.patch |  61 +++++++++++++++++++++
 debian/patches/series                |   1 +
 debian/python-mpop.doc-base          |  10 ++++
 debian/python-mpop.install           |   1 +
 debian/rules                         |  35 ++++++++++++
 debian/source/format                 |   1 +
 debian/tests/control                 |   2 +
 debian/tests/python2                 |  12 +++++
 debian/watch                         |   4 ++
 14 files changed, 276 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bba402c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-mpop (1.0.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #754556)
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 22 Jun 2014 12:53:26 +0000
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..dd040a5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: python-mpop
+Section: python
+Priority: optional
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Antonio Valentino <antonio.valentino at tiscali.it>
+Build-Depends: debhelper (>= 9.0.0),
+               python-setuptools,
+               python-all,
+               python-numpy,
+               python-sphinx,
+               python-mipp,
+               python-pyresample
+Standards-Version: 3.9.5
+Homepage: https://github.com/mraspaud/mpop
+Vcs-Git: http://anonscm.debian.org/git/pkg-grass/python-mpop.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/python-mpop.git;a=summary
+XS-Testsuite: autopkgtest
+
+Package: python-mpop
+Architecture: all
+Depends: ${shlibs:Depends},
+         ${python:Depends},
+         ${misc:Depends},
+         python-numpy,
+         python-pyresample,
+         python-mipp
+Description: Meteorological Post-Processing Package (MPoP)
+ The Meteorological Post-Processing package is a Python library for
+ generating RGB products for meteorological remote sensing.
+ As such it can create RGB composites directly from satellite instrument
+ channels, or take advantage of precomputed PGEs.
+ .
+ It is designed to be easily extendable to support any meteorological
+ satellite by the creation of plugins. In the base distribution,
+ it is provided support for Meteosat 7, 8, 9, MTSAT1R, MTSAT2, GOES 11,
+ GOES 12, GOES 13 through the use of mipp, and Noaa 15, 16, 17, 18, 19,
+ and Metop A through the use of aapp and ahamap.
+ .
+ Reprojection of data is also available through the use of the pyresample
+ package.
+ .
+ This package is part of the PyTroll toolset.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..cae7796
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,100 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pykdtree
+Source: https://github.com/mraspaud/mpop
+
+Files: *
+Copyright: 2009-2013 Martin Raspaud <martin.raspaud at smhi.se>
+                     SMHI, Folkborgsvägen 1, Norrköping, Sweden
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2014 Antonio Valentino <antonio.valentino at tiscali.it>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ 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 package 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+Files: doc/*
+Copyright: 2009-2013 The Pytroll crew
+License: GPL-3.0+
+
+Files: doc/examples/*
+Copyright: 2011 SMHI
+License: GPL-3.0+
+
+Files: mpop/scene.py
+Copyright: 2010-2013 Martin Raspaud <martin.raspaud at smhi.se>
+                     Esben S. Nielsen <esn at dmi.dk>
+License: GPL-3.0+
+
+Files: satout/cfscene.py
+       satout/netcdf4.py
+Copyright: 2010-2012 Kristian Rune Larssen <krl at dmi.dk>
+                     Adam Dybbroe <adam.dybbroe at smhi.se>
+                     Martin Raspaud <martin.raspaud at smhi.se>
+                     Esben S. Nielsen <esn at dmi.dk>
+License: GPL-3.0+
+
+Files: instruments/viirs.py
+Copyright: 2010-2013 Adam Dybbroe <adam.dybbroe at smhi.se>
+License: GPL-3.0+
+
+Files: instruments/visir.py
+Copyright: 2010-2013 Martin Raspaud <martin.raspaud at smhi.se>
+                     Lars Ørum Rasmussen <ras at dmi.dk>
+License: GPL-3.0+
+
+Files: satin/nwcsaf_pps.py
+Copyright: 2010-2013 Martin Raspaud <martin.raspaud at smhi.se>
+                     Adam Dybbroe <adam.dybbroe at smhi.se>
+License: GPL-3.0+
+
+Files: satin/viirs_sdr.py
+Copyright: 2011-2013 Adam Dybbroe <adam.dybbroe at smhi.se>
+                     Kristian Rune Larsen <krl at dmi.dk>
+                     Lars Ørum Rasmussen <ras at dmi.dk>
+                     Martin Raspaud <martin.raspaud at smhi.se>
+License: GPL-3.0+
+
+Files: mpop/imageo/formats/libtiff.py
+Copyright: 2009-2010 Pearu Peterson <pearu.peterson at gmail.com>
+License: BSD
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ a. Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+ b. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ c. Neither the name of the PyLibTiff project nor the names of its
+    contributors may be used to endorse or promote products derived from
+    this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/patches/fix-config-path.patch b/debian/patches/fix-config-path.patch
new file mode 100644
index 0000000..f9d348b
--- /dev/null
+++ b/debian/patches/fix-config-path.patch
@@ -0,0 +1,61 @@
+Set the path for configuration files to /etc
+Index: python-mpop/mpop/__init__.py
+===================================================================
+--- python-mpop.orig/mpop/__init__.py
++++ python-mpop/mpop/__init__.py
+@@ -4,11 +4,11 @@
+ 
+ # SMHI,
+ # Folkborgsvägen 1,
+-# Norrköping, 
++# Norrköping,
+ # Sweden
+ 
+ # Author(s):
+- 
++
+ #   Martin Raspaud <martin.raspaud at smhi.se>
+ #   Adam Dybbroe <adam.dybbroe at smhi.se>
+ 
+@@ -32,8 +32,10 @@
+ 
+ import os
+ 
+-BASE_PATH = os.path.sep.join(os.path.dirname(
+-    os.path.realpath(__file__)).split(os.path.sep)[:-1])
++#BASE_PATH = os.path.sep.join(os.path.dirname(
++#    os.path.realpath(__file__)).split(os.path.sep)[:-1])
++
++BASE_PATH = '/'
+ 
+ CONFIG_PATH = (os.environ.get('PPP_CONFIG_DIR', '') or
+                os.path.join(BASE_PATH, 'etc'))
+Index: python-mpop/setup.py
+===================================================================
+--- python-mpop.orig/setup.py
++++ python-mpop/setup.py
+@@ -4,11 +4,11 @@
+ 
+ # SMHI,
+ # Folkborgsvägen 1,
+-# Norrköping, 
++# Norrköping,
+ # Sweden
+ 
+ # Author(s):
+- 
++
+ #   Martin Raspaud <martin.raspaud at smhi.se>
+ #   Adam Dybbroe <adam.dybbroe at smhi.se>
+ 
+@@ -55,8 +55,8 @@ setup(name=NAME,
+       url="https://github.com/mraspaud/mpop",
+       packages=['mpop', 'mpop.satellites', 'mpop.instruments', 'mpop.satin',
+                 'mpop.satout', 'mpop.saturn', 'mpop.imageo'],
+-      data_files=[('etc',[os.path.join('etc', 'geo_image.cfg')],
+-                   'etc',[os.path.join('etc', 'eps_avhrrl1b_6.5.xml')]),
++      data_files=[('/etc',[os.path.join('etc', 'geo_image.cfg')],
++                   '/etc',[os.path.join('etc', 'eps_avhrrl1b_6.5.xml')]),
+                   (os.path.join('share', 'doc', NAME),
+                    [os.path.join('doc', 'Makefile'),
+                     os.path.join('doc', 'source', 'conf.py'),
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2f09825
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-config-path.patch
diff --git a/debian/python-mpop.doc-base b/debian/python-mpop.doc-base
new file mode 100644
index 0000000..b6a27f8
--- /dev/null
+++ b/debian/python-mpop.doc-base
@@ -0,0 +1,10 @@
+Document: python-mpop
+Title: Debian python-mpop Manual
+Author: The PyTroll Gang
+Abstract: This document includes the
+ Pyresample User Manual and the Programmers Reference
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-mpop/html/index.html
+Files: /usr/share/doc/python-mpop/html/*.html
diff --git a/debian/python-mpop.install b/debian/python-mpop.install
new file mode 100644
index 0000000..83c68b8
--- /dev/null
+++ b/debian/python-mpop.install
@@ -0,0 +1 @@
+doc/build/html usr/share/doc/python-mpop
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1c80b0d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PY2VERS = $(shell pyversions -r -v)
+
+
+%:
+	dh $@ --with python2,sphinxdoc --buildsystem=python_distutils
+
+
+override_dh_auto_build:
+	dh_auto_build --buildsystem=python_distutils
+	env PYTHONPATH=$(CURDIR) PPP_CONFIG_DIR=$(CURDIR)/etc \
+		$(MAKE) -C doc html
+
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e -x; \
+	for py in $(PY2VERS); do \
+		env PYTHONPATH=. python$$py setup.py test; \
+	done
+endif
+
+
+override_dh_auto_clean:
+	dh_auto_clean --buildsystem=python_distutils
+	$(RM) -r mpop.egg-info
+	$(MAKE) -C doc clean
+
+
+.PHONY: override_dh_auto_build, override_dh_autoclean, override_dh_auto_test
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..2b9418e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: python2
+Depends: @builddeps@, python-mpop
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..1ccb541
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+TESTPKG=${TESTPKG:-python-mpop}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py -m unittest -v discover mpop.test 2>&1
+done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2c0d688
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://githubredir.debian.net/github/mraspaud/mpop/ v(.*)\.tar\.gz

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



More information about the Pkg-grass-devel mailing list