[postgis-java] 02/03: Initial Debian packaging.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun Sep 27 21:44:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository postgis-java.
commit 3d09014c554f9507671bf81b9a5e076b8e3808b9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Sep 26 17:16:25 2015 +0200
Initial Debian packaging.
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 47 +++++++++++++++++++++++
debian/copyright | 78 ++++++++++++++++++++++++++++++++++++++
debian/gbp.conf | 16 ++++++++
debian/libpostgis-java.install | 1 +
debian/libpostgis-java.poms | 29 ++++++++++++++
debian/maven.cleanIgnoreRules | 1 +
debian/maven.ignoreRules | 1 +
debian/maven.publishedRules | 1 +
debian/maven.rules | 26 +++++++++++++
debian/patches/add-classpath.patch | 30 +++++++++++++++
debian/patches/series | 1 +
debian/rules | 42 ++++++++++++++++++++
debian/source/format | 1 +
debian/upstream/metadata | 6 +++
debian/watch | 7 ++++
17 files changed, 293 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c50f3d1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+postgis-java (1:2.1.7.1-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #800330)
+
+ -- Bas Couwenberg <sebastic at debian.org> Fri, 28 Nov 2014 18:39:06 +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..e6e5929
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: postgis-java
+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)
+Build-Depends-Indep: default-jdk,
+ openjdk-7-jdk | java7-sdk,
+ fastjar,
+ libjts-java,
+ liblogback-java,
+ libmaven-clean-plugin-java,
+ libmaven-jar-plugin-java,
+ libmaven-compiler-plugin-2.5-java,
+ libmaven-resources-plugin-java,
+ libmaven-javadoc-plugin-java,
+ libpostgresql-jdbc-java,
+ libsurefire-java,
+ maven-debian-helper,
+ maven-repo-helper,
+ maven
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/postgis-java.git/
+Vcs-Git: git://anonscm.debian.org/pkg-grass/postgis-java.git
+Homepage: https://github.com/postgis/postgis-java
+
+Package: libpostgis-java
+Architecture: all
+Section: java
+Depends: libpostgresql-jdbc-java,
+ ${misc:Depends}
+Suggests: postgresql-9.4-postgis-2.1
+Breaks: libpostgis-jdbc,
+ libpostgisjava,
+ postgresql-postgis-java
+Replaces: libpostgis-jdbc,
+ libpostgisjava,
+ postgresql-postgis-java
+Description: Geographic objects support for PostgreSQL -- JDBC support
+ PostGIS adds support for geographic objects to the PostgreSQL
+ object-relational database. In effect, PostGIS "spatially enables"
+ the PostgreSQL server, allowing it to be used as a backend spatial
+ database for geographic information systems (GIS), much like ESRI's
+ SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
+ "Simple Features Specification for SQL".
+ .
+ This package contains JDBC support for PostGIS.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..45a033c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,78 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PostGIS-Java
+Upstream-Contact: PostGIS Developers <postgis-devel at lists.osgeo.org>
+Source: https://github.com/postgis/postgis-git
+
+Files: *
+Copyright: 2004, Paul Ramsey <pramsey at refractions.net>
+ 2005, Markus Schaber <markus.schaber at logix-tt.com>
+ 2006, Geodetix s.r.l. Company.
+ 2006, Norman Barker <norman.barker at gmail.com>
+ 2007, Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
+ 2012, Maria Arias de Reyna <delawen at gmail.com>
+ 2015, Phillip Ross <phillip.w.g.ross at gmail.com>
+License: LGPL-2.1+
+
+Files: jdbc/src/main/java/examples/TestAutoregister.java
+ jdbc/src/test/java/org/postgis/AutoRegistrationTest.java
+ jdbc/src/test/java/org/postgis/VersionPrinter.java
+ postgis-jdbc-java2d/src/main/java/examples/TestJava2d.java
+Copyright: 2004, Paul Ramsey <pramsey at refractions.net>
+ 2005, Markus Schaber <markus.schaber at logix-tt.com>
+ 2015, Phillip Ross <phillip.w.g.ross at gmail.com>
+License: GPL-2
+
+Files: debian/*
+Copyright: 2015, Bas Couwenberg <sebastic at debian.org>
+License: GPL-2+
+
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+ .
+ 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+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'.
+
+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'.
+
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/libpostgis-java.install b/debian/libpostgis-java.install
new file mode 100644
index 0000000..d64b913
--- /dev/null
+++ b/debian/libpostgis-java.install
@@ -0,0 +1 @@
+jdbc/target/postgis-jdbc-*.jar usr/share/java/
diff --git a/debian/libpostgis-java.poms b/debian/libpostgis-java.poms
new file mode 100644
index 0000000..b8650ca
--- /dev/null
+++ b/debian/libpostgis-java.poms
@@ -0,0 +1,29 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM and its artifact if any
+# --ignore-pom: don't install the POM. To use on POM files that are created
+# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install. [mh_install]
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
+jdbc/pom.xml --no-parent --has-package-version
+jdbc_jtsparser/pom.xml
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..f3139b6
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,26 @@
+
+org.postgis postgis-jdbc jar s/.*/debian/ * *
+
+postgresql postgresql * s/.*/debian/ * *
+com.vividsolutions jts s/.*/debian/ * *
+
+ch.qos.logback logback-classic * s/.*/debian/ * *
+ch.qos.logback logback-core * s/.*/debian/ * *
+org.slf4j slf4j-api * s/.*/debian/ * *
+org.testng testng * s/.*/6.x/ * *
+
+org.apache.maven.plugins maven-clean-plugin * s/.*/2.5/ * *
+org.apache.maven.plugins maven-compiler-plugin * s/.*/3.2/ * *
+org.apache.maven.plugins maven-dependency-plugin * s/.*/2.7/ * *
+org.apache.maven.plugins maven-ear-plugin * s/.*/2.3.2/ * *
+org.apache.maven.plugins maven-enforcer-plugin * s/.*/1.0/ * *
+#org.apache.maven.plugins maven-gpg-plugin * * * *
+org.apache.maven.plugins maven-install-plugin * s/.*/2.5.2/ * *
+org.apache.maven.plugins maven-jar-plugin * s/.*/2.4/ * *
+org.apache.maven.plugins maven-javadoc-plugin * s/.*/2.10.2/ * *
+#org.apache.maven.plugins maven-jarsigner-plugin * * * *
+org.apache.maven.plugins maven-resources-plugin * s/.*/2.3/ * *
+org.apache.maven.plugins maven-source-plugin * s/.*/2.2.1/ * *
+#org.apache.maven.plugins maven-surefire-plugin * * * *
+org.apache.maven.plugins maven-war-plugin * s/.*/2.1.1/ * *
+
diff --git a/debian/patches/add-classpath.patch b/debian/patches/add-classpath.patch
new file mode 100644
index 0000000..7c36814
--- /dev/null
+++ b/debian/patches/add-classpath.patch
@@ -0,0 +1,30 @@
+Description: Add classpath to postgis-jdbc jar.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/jdbc/pom.xml
++++ b/jdbc/pom.xml
+@@ -41,6 +41,17 @@
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-jar-plugin</artifactId>
++ <configuration>
++ <archive>
++ <manifest>
++ <addClasspath>true</addClasspath>
++ </manifest>
++ </archive>
++ </configuration>
++ </plugin>
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <suiteXmlFiles>
+@@ -58,4 +69,4 @@
+ </plugins>
+ </build>
+
+-</project>
+\ No newline at end of file
++</project>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..53c9735
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add-classpath.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f7fc05a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+# Determine JAVA_HOME to use. Depends on which Build-Depends-Indep
+# variant has been used.
+JAVA_HOME = /usr/lib/jvm/java-8-openjdk-$(DEB_BUILD_ARCH)
+ifeq ("$(wildcard $(JAVA_HOME))","")
+ JAVA_HOME = /usr/lib/jvm/java-7-openjdk-$(DEB_BUILD_ARCH)
+ ifeq ("$(wildcard $(JAVA_HOME))","")
+ JAVA_HOME = /usr/lib/jvm/java-6-openjdk-$(DEB_BUILD_ARCH)
+ ifeq ("$(wildcard $(JAVA_HOME))","")
+ JAVA_HOME =
+ endif
+ endif
+endif
+
+# Use maven in offline mode and with the local Debian repo
+MVN = JAVA_HOME=$(JAVA_HOME) mvn --offline \
+ -Dmaven.repo.local=/usr/share/maven-repo \
+ -Dmaven.compiler.source=1.7 \
+ -Dmaven.compiler.target=1.7 \
+ -Dmaven.test.skip=true
+
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+
+%:
+ dh $@ --parallel \
+ --with maven_repo_helper \
+ --buildsystem maven
+
+override_dh_auto_clean:
+ -mh_clean
+
+override_dh_auto_build:
+ (cd jdbc && $(MVN) package)
+
+override_dh_auto_install:
+ mh_installjar -v -plibpostgis-java -l jdbc/pom.xml jdbc/target/postgis-jdbc-$(UPSTREAM_VERSION).jar
+ mh_installpoms -v -plibpostgis-java
+
+get-orig-source:
+ . debian/get-orig-source
+
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..15edca1
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/postgis/postgis-java/issues
+Bug-Submit: https://github.com/postgis/postgis-java/issues/new
+Name: PostGIS-Java
+Repository: https://github.com/postgis/postgis-java.git
+Repository-Browse: https://github.com/postgis/postgis-java
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..cc67b72
--- /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|postgis-java)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/postgis-java-$1.$2/ \
+https://github.com/postgis/postgis-java/releases \
+(?:.*?/)?(?:rel|v|postgis-java)?[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis-java.git
More information about the Pkg-grass-devel
mailing list