[leveldb-java] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Fri Feb 6 15:03:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository leveldb-java.
commit 9b061e2eac82d82fc2e9841a7cfbb8aa439c004e
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Fri Feb 6 16:01:58 2015 +0100
Initial packaging
---
debian/README.source | 9 ++++++
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 37 ++++++++++++++++++++++
debian/copyright | 15 +++++++++
debian/libleveldb-api-java.poms | 31 ++++++++++++++++++
debian/maven.ignoreRules | 15 +++++++++
debian/maven.properties | 5 +++
debian/maven.rules | 9 ++++++
debian/patches/01-maven2-compatibility.patch | 16 ++++++++++
debian/patches/02-remove-iq80-snappy-support.patch | 24 ++++++++++++++
debian/patches/series | 2 ++
debian/rules | 10 ++++++
debian/source/format | 1 +
debian/watch | 2 ++
15 files changed, 182 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a4d1e0b
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about leveldb-java
+------------------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..799b124
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+leveldb-java (0.7-1) unstable; urgency=medium
+
+ * Initial release (Closes: #777180)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Fri, 06 Feb 2015 00:07:55 +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..e78cc9f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: leveldb-java
+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: cdbs,
+ debhelper (>= 9),
+ default-jdk,
+ libguava-java,
+ libsnappy-java,
+ maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/leveldb-java.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/leveldb-java.git
+Homepage: http://github.com/dain/leveldb
+
+Package: libleveldb-api-java
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libleveldb-java
+Description: High level Java API for LevelDB
+ Port of LevelDB in Java with the goal of having a feature complete
+ implementation that is within 10% of the performance of the C++ original
+ and produces byte-for-byte exact copies of the C++ code.
+ .
+ This package contains the high level API for LevelDB.
+
+Package: libleveldb-java
+Architecture: all
+Depends: ${misc:Depends}, libleveldb-api-java, libguava-java
+Suggests: libsnappy-java
+Description: Port of LevelDB to Java
+ Port of LevelDB in Java with the goal of having a feature complete
+ implementation that is within 10% of the performance of the C++ original
+ and produces byte-for-byte exact copies of the C++ code.
+ .
+ This package contains the implementation of the LevelDB API.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3c094e4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: leveldb-project
+Source: http://github.com/dain/leveldb
+
+Files: *
+Copyright: 2011-2015, Dain Sundstrom <dain at iq80.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/libleveldb-api-java.poms b/debian/libleveldb-api-java.poms
new file mode 100644
index 0000000..1d2f0e6
--- /dev/null
+++ b/debian/libleveldb-api-java.poms
@@ -0,0 +1,31 @@
+# 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]
+#
+pom.xml --has-package-version
+leveldb-api/pom.xml --has-package-version
+leveldb/pom.xml --has-package-version --package=libleveldb-java
+leveldb-benchmark/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..82c6960
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,15 @@
+
+org.iq80.leveldb leveldb-benchmark jar * * *
+com.github.wvengen proguard-maven-plugin * * * *
+com.google.code.findbugs jsr305 * * * *
+com.mycila.maven-license-plugin maven-license-plugin * * * *
+joda-time joda-time * * * *
+net.sf.proguard proguard-base * * * *
+org.apache.maven.plugins maven-enforcer-plugin * * * *
+org.apache.maven.plugins maven-shade-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+org.codehaus.mojo cobertura-maven-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
+org.fusesource.leveldbjni leveldbjni-all * * * *
+org.iq80.snappy snappy * * * *
+org.testng testng * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..cad2ddb
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,9 @@
+
+com.google.guava guava bundle s/.*/debian/ * *
+com.google.guava guava s/jar/bundle/ s/.*/debian/ * *
+org.iq80.leveldb leveldb-api jar s/.*/debian/ * *
+org.iq80.leveldb leveldb-project pom s/.*/debian/ * *
+org.iq80.leveldb leveldb jar s/.*/debian/ * *
+org.xerial.snappy snappy-java bundle s/.*/debian/ * *
+s/com.google.code.google-collections/com.google.guava/ s/google-collect/guava/ s/jar/bundle/ s/.*/debian/ * *
+s/com.google.collections/com.google.guava/ s/google-collections/guava/ s/jar/bundle/ s/.*/debian/ * *
diff --git a/debian/patches/01-maven2-compatibility.patch b/debian/patches/01-maven2-compatibility.patch
new file mode 100644
index 0000000..d3876da
--- /dev/null
+++ b/debian/patches/01-maven2-compatibility.patch
@@ -0,0 +1,16 @@
+Description: Remove the prerequisite on Maven 3
+Author: Emmanuel Bourg <ebourg at pache.org>
+Forwarded: not-needed
+diff --git a/pom.xml b/pom.xml
+index 08f347a..63b5814 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -56,7 +56,7 @@
+ </scm>
+
+ <prerequisites>
+- <maven>3.0</maven>
++ <maven>2.2.1</maven>
+ </prerequisites>
+
+ <repositories>
diff --git a/debian/patches/02-remove-iq80-snappy-support.patch b/debian/patches/02-remove-iq80-snappy-support.patch
new file mode 100644
index 0000000..235acac
--- /dev/null
+++ b/debian/patches/02-remove-iq80-snappy-support.patch
@@ -0,0 +1,24 @@
+Description: Disable the support for the pure Java iq80 snappy implementation
+ since this library isn't in Debian yet and use only the JNI based snappy-java
+ implementation.
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/leveldb/src/main/java/org/iq80/leveldb/util/Snappy.java
++++ b/leveldb/src/main/java/org/iq80/leveldb/util/Snappy.java
+@@ -60,6 +60,7 @@
+ }
+ }
+
++/*
+ public static class IQ80Snappy implements SPI {
+ static {
+ // Make sure that the library can fully load.
+@@ -130,7 +131,7 @@
+ return org.iq80.snappy.Snappy.maxCompressedLength(length);
+ }
+ }
+-
++*/
+ static final private SPI SNAPPY;
+ static {
+ SPI attempt = null;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2120084
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-maven2-compatibility.patch
+02-remove-iq80-snappy-support.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f285496
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+DEB_MAVEN_DOC_TARGET := javadoc:javadoc javadoc:aggregate
+
+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..a22a31e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/dain/leveldb/releases .*/([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/leveldb-java.git
More information about the pkg-java-commits
mailing list