[sqljet] 05/06: Install the Maven artifacts (Closes: #743722)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Oct 14 12:52:44 BST 2014


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

ebourg-guest pushed a commit to branch master
in repository sqljet.

commit a95c017ac683a0718111030f58826dd1bca1ea0a
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Oct 14 13:48:16 2014 +0200

    Install the Maven artifacts (Closes: #743722)
---
 debian/changelog            |  1 +
 debian/control              |  2 +-
 debian/libsqljet-java.jlibs |  1 -
 debian/maven.rules          |  1 +
 debian/pom.xml              | 67 +++++++++++++++++++++++++++++++++++++++++++++
 debian/rules                | 12 ++++++--
 6 files changed, 80 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7a91d6c..1524409 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ sqljet (1.1.10-1) UNRELEASED; urgency=medium
 
   * Team upload.
   * New upstream release.
+  * Install the Maven artifacts (Closes: #743722)
   * Standards-Version updated to 3.9.6 (no changes)
   * Use canonical URLs for the Vcs-* fields
   * Added a repack script to clean the upstream tarball
diff --git a/debian/control b/debian/control
index 9abc916..ff62de4 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.or
 Uploaders: Jakub Adam <jakub.adam at ktknet.cz>
 Section: java
 Priority: optional
-Build-Depends: debhelper (>> 9~), default-jdk, javahelper, antlr3
+Build-Depends: debhelper (>> 9~), default-jdk, javahelper, antlr3, maven-repo-helper
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-java/sqljet.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/sqljet.git
diff --git a/debian/libsqljet-java.jlibs b/debian/libsqljet-java.jlibs
deleted file mode 100644
index 28fcea0..0000000
--- a/debian/libsqljet-java.jlibs
+++ /dev/null
@@ -1 +0,0 @@
-sqljet.jar
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..bfa98c4
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+org.antlr antlr-runtime * s/.*/3.x/ * *
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..c88f137
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.tmatesoft.sqljet</groupId>
+  <artifactId>sqljet</artifactId>
+  <version>debian</version>
+  <name>SqlJet Library</name>
+  <description>Pure Java Sqlite Library</description>
+  <url>http://www.sqljet.com/</url>
+  <licenses>
+    <license>
+      <name>GPL (with dual licensing option)</name>
+      <url>http://www.gnu.org/licenses/gpl.html</url>
+    </license>
+  </licenses>
+  <developers>
+    <developer>
+      <id>tmate</id>
+      <name>TMate Software</name>
+    </developer>
+  </developers>
+  <scm>
+    <connection>scm:svn:http://svn.sqljet.com/repos/sqljet</connection>
+    <url>http://svn.sqljet.com/repos/sqljet</url>
+  </scm>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.8.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.xerial</groupId>
+      <artifactId>sqlite-jdbc</artifactId>
+      <version>3.7.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.easymock</groupId>
+      <artifactId>easymock</artifactId>
+      <version>2.4</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.antlr</groupId>
+      <artifactId>antlr-runtime</artifactId>
+      <version>3.4</version>
+      <scope>compile</scope>
+      <exclusions>
+        <exclusion>
+          <artifactId>antlr</artifactId>
+          <groupId>antlr</groupId>
+        </exclusion>
+        <exclusion>
+          <artifactId>stringtemplate</artifactId>
+          <groupId>org.antlr</groupId>
+        </exclusion>
+        <exclusion>
+          <artifactId>ST4</artifactId>
+          <groupId>org.antlr</groupId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/debian/rules b/debian/rules
index 27a7b0a..069fe9d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
 
 export CLASSPATH=/usr/share/java/antlr3-runtime.jar
 
+VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f 2)
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f 2 | cut -d'-' -f1)
+
 %:
 	dh $@ --with javahelper
 
@@ -12,8 +15,7 @@ override_dh_auto_build:
 	BUILD_PROPERTIES=debian/_jh_build.sqljet/sqljet.build.properties; \
 	mkdir -p $$(dirname $$BUILD_PROPERTIES); \
 	cp sqljet/src/main/resources/sqljet.build.properties $$BUILD_PROPERTIES; \
-	VERSION=$$(dpkg-parsechangelog | grep Version: | cut -d' ' -f 2); \
-	echo $$VERSION | { \
+	echo $(VERSION) | { \
 		IFS='.-' read MAJOR MINOR MICRO DEBIAN; \
 		echo sqljet.version.major=$$MAJOR >> $$BUILD_PROPERTIES; \
 		echo sqljet.version.minor=$$MINOR >> $$BUILD_PROPERTIES; \
@@ -23,8 +25,14 @@ override_dh_auto_build:
 
 	dh_auto_build
 
+override_dh_auto_install:
+	dh_auto_install
+	mh_installpom -plibsqljet-java --has-package-version -e$(UPSTREAM_VERSION) debian/pom.xml
+	mh_installjar -plibsqljet-java --has-package-version -e$(UPSTREAM_VERSION) --java-lib debian/pom.xml sqljet.jar
+
 override_dh_auto_clean:
 	dh_auto_clean
+	mh_clean
 	rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/Sql.tokens
 	rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/SqlLexer.java
 	rm -f sqljet/src/main/java/org/tmatesoft/sqljet/core/internal/lang/SqlParser.java

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sqljet.git



More information about the pkg-java-commits mailing list