[graxxia] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Oct 26 23:47:22 UTC 2015


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

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

commit 80046d2d46252d759c4457fe6b83ac88f9acea90
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Oct 27 00:44:56 2015 +0100

    Initial packaging
---
 debian/changelog                              |  5 +++
 debian/compat                                 |  1 +
 debian/control                                | 28 +++++++++++++++++
 debian/copyright                              | 17 ++++++++++
 debian/libgraxxia-java.poms                   | 28 +++++++++++++++++
 debian/maven.ignoreRules                      |  5 +++
 debian/maven.rules                            |  4 +++
 debian/patches/01-gradle-compatibility.patch  | 28 +++++++++++++++++
 debian/patches/02-unbundle-dependencies.patch | 23 ++++++++++++++
 debian/patches/series                         |  2 ++
 debian/pom.xml                                | 45 +++++++++++++++++++++++++++
 debian/rules                                  |  9 ++++++
 debian/source/format                          |  1 +
 debian/watch                                  |  2 ++
 14 files changed, 198 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cefcc5d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+graxxia (1.0~20150714-1) unstable; urgency=medium
+
+  * Initial release (Closes: #802002)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Tue, 27 Oct 2015 00:44:48 +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..bee7e4a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: graxxia
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: gradle-debian-helper,
+                     libcommons-math3-java,
+                     libgroovycsv-java (>= 1.0),
+                     maven-repo-helper
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/graxxia.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/graxxia.git
+Homepage: http://graxxia.org
+
+Package: libgraxxia-java
+Architecture: all
+Depends: ${misc:Depends}, libcommons-math3-java, libgroovycsv-java
+Description: Wrappers for doing Mathematics in Groovy
+ Graxxia is a library adds data analysis features to Groovy, similar
+ to languages such as R, Julia, etc, and also to libraries such as
+ Pandas for Python.
+ .
+ It should be emphasised that there is nearly nothing in Graxxia
+ itself that is not just a wrapper around other existing libraries.
+ For example Matrix support all comes from Apache Commons Math,
+ parsing of CSV and TSV (tab separated) files comes from OpenCSV and
+ GroovyCSV, etc.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ad0cff2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Graxxia
+Source: http://graxxia.org
+Files-Excluded: gradlew*
+                gradle/
+
+Files: *
+Copyright: 2015, Simon Sasdedin <ssadedin at gmail.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libgraxxia-java.poms b/debian/libgraxxia-java.poms
new file mode 100644
index 0000000..5525380
--- /dev/null
+++ b/debian/libgraxxia-java.poms
@@ -0,0 +1,28 @@
+# 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]
+#
+debian/pom.xml --has-package-version --java-lib --artifact=build/libs/graxxia*.jar
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..94ff9b5
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,5 @@
+commons-cli commons-cli
+com.lowagie itext
+junit junit
+log4j log4j
+org.apache.ivy ivy
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..99f040c
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,4 @@
+
+junit junit jar s/4\..*/4.x/ * *
+log4j log4j * s/1\.2\..*/1.2.x/ * *
+org.codehaus.groovy s/groovy/groovy-all/ * s/.*/2.x/ * *
diff --git a/debian/patches/01-gradle-compatibility.patch b/debian/patches/01-gradle-compatibility.patch
new file mode 100644
index 0000000..ca84f60
--- /dev/null
+++ b/debian/patches/01-gradle-compatibility.patch
@@ -0,0 +1,28 @@
+Description: Fixes the compatibility with the latest version of Gradle
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/build.gradle
++++ b/build.gradle
+@@ -14,14 +14,14 @@
+ }
+ 
+ dependencies {
+-     groovy group: 'org.codehaus.groovy', name: 'groovy', version: '2.3.11'
+-     groovy group: 'org.apache.ivy', name:'ivy', version:'2.2.0' 
+-     groovy 'com.lowagie:itext:2.1.7'
+-     groovy 'org.apache.commons:commons-math3:3.5'
+-     groovy 'junit:junit:4.4'
+-     groovy 'commons-cli:commons-cli:1.1'
+-     groovy 'com.xlson.groovycsv:groovycsv:1.0'
+-     groovy 'log4j:log4j:1.2.17'
++     compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.3.11'
++     compile group: 'org.apache.ivy', name:'ivy', version:'2.2.0' 
++     compile 'com.lowagie:itext:2.1.7'
++     compile 'org.apache.commons:commons-math3:3.5'
++     testCompile 'junit:junit:4.4'
++     compile 'commons-cli:commons-cli:1.1'
++     compile 'com.xlson.groovycsv:groovycsv:1.0'
++     compile 'log4j:log4j:1.2.17'
+      compile files(fileTree(dir:'lib', includes:['*.jar']))
+ }
+ 
diff --git a/debian/patches/02-unbundle-dependencies.patch b/debian/patches/02-unbundle-dependencies.patch
new file mode 100644
index 0000000..3290ee2
--- /dev/null
+++ b/debian/patches/02-unbundle-dependencies.patch
@@ -0,0 +1,23 @@
+Description: Do not bundle the dependencies in the Graxxia jar
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/build.gradle
++++ b/build.gradle
+@@ -25,17 +25,6 @@
+      compile files(fileTree(dir:'lib', includes:['*.jar']))
+ }
+ 
+-// Bundle all dependencies into output library
+-jar {
+-    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
+-    exclude "groovy/**"
+-    exclude "org/codehaus/**"
+-    exclude "META-INF/groovy*"
+-    exclude "META-INF/**/*groovy*"
+-    exclude "META-INF/BCKEY*"
+-    exclude "org/bouncycastle/**"
+-}
+-
+ groovydoc {
+     
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3531344
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-gradle-compatibility.patch
+02-unbundle-dependencies.patch
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..c098c9b
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.graxxia</groupId>
+  <artifactId>graxxia</artifactId>
+  <version>1.0.1</version>
+  <name>Graxxia</name>
+  <description>A application used as an example on how to set up pushing  its components to the Central Repository.</description>
+  <url>http://graxxia.org</url>
+  <licenses>
+    <license>
+      <name>The Apache License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+    </license>
+  </licenses>
+  <developers>
+    <developer>
+      <id>ssadedin</id>
+      <name>Simon Sasdedin</name>
+      <email>ssadedin at gmail.com</email>
+    </developer>
+  </developers>
+  <scm>
+    <connection>scm:git:git at github.com:ssadedin/graxxia.git</connection>
+    <developerConnection>scm:git:git at github.com:ssadedin/graxxia.git</developerConnection>
+    <url>git at github.com:ssadedin/graxxia.git</url>
+  </scm>
+  <dependencies>
+    <dependency>
+      <groupId>org.codehaus.groovy</groupId>
+      <artifactId>groovy</artifactId>
+      <version>2.3.4</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-math3</artifactId>
+      <version>3.5</version>
+    </dependency>
+    <dependency>
+      <groupId>com.xlson.groovycsv</groupId>
+      <artifactId>groovycsv</artifactId>
+      <version>1.0</version>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6db8e05
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME := /usr/lib/jvm/default-java
+
+%:
+	dh $@ --buildsystem=gradle --with maven-repo-helper
+
+get-orig-source:
+	uscan --download-current-version --force-download --no-symlink
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/watch b/debian/watch
new file mode 100644
index 0000000..6fa08eb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/ssadedin/graxxia/tags .*/([\d\.]+).tar.gz

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



More information about the pkg-java-commits mailing list