[php-geos] 02/03: Initial Debian packaging.

Bas Couwenberg sebastic at debian.org
Tue Aug 30 12:17:36 UTC 2016


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

sebastic pushed a commit to branch master
in repository php-geos.

commit ac321cc8d1fe02929150f280fa489508aed1caf9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Aug 30 11:51:54 2016 +0200

    Initial Debian packaging.
---
 debian/changelog         |  5 ++++
 debian/compat            |  1 +
 debian/control           | 34 ++++++++++++++++++++++
 debian/copyright         | 73 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/gbp.conf          | 16 +++++++++++
 debian/geos.ini          |  1 +
 debian/php-geos.php      |  1 +
 debian/php-geos.postinst | 14 ++++++++++
 debian/php-geos.prerm    | 11 ++++++++
 debian/rules             | 26 +++++++++++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata |  6 ++++
 debian/watch             |  7 +++++
 13 files changed, 196 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..75b793d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+php-geos (1.0.0~rc1-1) UNRELEASED; urgency=medium
+
+  * Initial Release. (Closes: #nnnnnn).
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 30 Aug 2016 11:51:27 +0200
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..2e7bad6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,34 @@
+Source: php-geos
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-autoreconf,
+               dh-php,
+               libgeos-dev,
+               php-dev,
+               phpunit,
+               pkg-php-tools (>= 1.6~)
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/php-geos.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-grass/php-geos.git
+Homepage: https://git.osgeo.org/gogs/geos/php-geos/
+
+Package: php-geos
+Architecture: any
+Section: web
+Depends: ${php:Depends},
+         ${phppear:Debian-Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ${phppear:Debian-Recommends}
+Suggests: ${phppear:Debian-Suggests}
+Breaks: ${phppear:Debian-Breaks}
+Description: ${phppear:summary}
+ GEOS provides a spatial object model and fundamental geometric
+ functions. It implements the geometry model defined in the
+ OpenGIS Consortium Simple Features Specification for SQL.
+ .
+ ${phppear:description}
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d214263
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,73 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PHP bindings for GEOS
+Upstream-Contact: GEOS Developers <geos-devel at lists.osgeo.org>
+Source: https://git.osgeo.org/gogs/geos/php-geos
+
+Files: *
+Copyright: 2016, J Smith <dark.panda at gmail.com> <jay at php.net>
+License: Expat
+
+Files: geos.c
+ php_geos.h
+Copyright: 2010, Sandro Santilli <strk at kbt.io>
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2016, Bas Couwenberg <sebastic at debian.org>
+License: GPL-2+
+
+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: LGPL-2.1+
+ This library 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; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+License: GPL-2+
+ 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.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
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/geos.ini b/debian/geos.ini
new file mode 100644
index 0000000..e896942
--- /dev/null
+++ b/debian/geos.ini
@@ -0,0 +1 @@
+extension=geos.so
diff --git a/debian/php-geos.php b/debian/php-geos.php
new file mode 100644
index 0000000..01ed29e
--- /dev/null
+++ b/debian/php-geos.php
@@ -0,0 +1 @@
+mod debian/geos.ini
diff --git a/debian/php-geos.postinst b/debian/php-geos.postinst
new file mode 100644
index 0000000..cf59ce3
--- /dev/null
+++ b/debian/php-geos.postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]; then
+	phpenmod geos
+fi
+
+exit 0
diff --git a/debian/php-geos.prerm b/debian/php-geos.prerm
new file mode 100644
index 0000000..07953ac
--- /dev/null
+++ b/debian/php-geos.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "remove" ]; then
+	phpdismod geos
+fi
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a646362
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+	dh $@ --with autoreconf,php,phppear \
+	      --parallel
+
+override_dh_autoreconf:
+	dh_autoreconf ./autogen.sh
+
+override_dh_auto_test:
+	REPORT_EXIT_STATUS=1 NO_INTERACTION=1 dh_auto_test
+
+override_dh_auto_install:
+	# phpize uses INSTALL_ROOT instead of DESTDIR
+	$(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/php-geos
+
+override_dh_install:
+	dh_install --list-missing
+
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..7c08b21
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://git.osgeo.org/gogs/geos/php-geos/issues
+#Bug-Submit: https://git.osgeo.org/gogs/geos/php-geos/issues/new
+Name: PHP bindings for GEOS
+Repository: https://git.osgeo.org/gogs/geos/php-geos.git
+Repository-Browse: https://git.osgeo.org/gogs/geos/php-geos
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..567a44f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\
+filenamemangle=s/(?:.*?)?(?:rel|v|php-geos)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/php-geos-$1.$2/ \
+https://git.osgeo.org/gogs/geos/php-geos/releases \
+(?:.*?/)?(?:rel|v|php-geos)?[\-\_]?(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the Pkg-grass-devel mailing list