[bookkeeper] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Fri Jul 24 16:03:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository bookkeeper.
commit db9236114d12560215472b264feea46558613acb
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Fri Jul 24 17:58:11 2015 +0200
Initial packaging
---
debian/README.source | 9 +++++
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 38 ++++++++++++++++++++++
debian/copyright | 30 +++++++++++++++++
debian/libbookkeeper-java.poms | 34 +++++++++++++++++++
debian/maven.ignoreRules | 17 ++++++++++
debian/maven.properties | 5 +++
debian/maven.rules | 12 +++++++
.../01-add-commons-collections-dependency.patch | 17 ++++++++++
debian/patches/series | 1 +
debian/rules | 15 +++++++++
debian/source/format | 1 +
debian/watch | 2 ++
14 files changed, 187 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..6497317
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about bookkeeper
+----------------------------
+
+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..2dfd80b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+bookkeeper (4.2.4-1) unstable; urgency=medium
+
+ * Initial release (Closes: #793482)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Fri, 24 Jul 2015 17:58:03 +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..f5b545c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: bookkeeper
+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,
+ junit4,
+ libcommons-cli-java,
+ libcommons-codec-java,
+ libcommons-collections3-java,
+ libcommons-configuration-java,
+ libcommons-io-java,
+ libguava-java (>= 18.0-4~),
+ liblog4j1.2-java (>= 1.2.15),
+ libmaven-antrun-plugin-java,
+ libmaven-dependency-plugin-java,
+ libnetty-java (>= 3.2.4),
+ libprotobuf-java,
+ libslf4j-java,
+ libzookeeper-java (>= 3.4.6-5~),
+ maven-debian-helper (>= 1.5),
+ protobuf-compiler
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/bookkeeper.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/bookkeeper.git
+Homepage: http://bookkeeper.apache.org
+
+Package: libbookkeeper-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Replicated log service
+ BookKeeper is a replicated log service which can be used to build replicated
+ state machines. A log contains a sequence of events which can be applied to
+ a state machine. BookKeeper guarantees that each replica state machine will
+ see all the same entries, in the same order.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b45b259
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bookkeeper
+Source: https://github.com/apache/bookkeeper
+Files-Excluded: bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/DataFormats.java
+ hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java
+
+Files: *
+Copyright: 2011-2015, The Apache Software Foundation
+License: Apache-2.0
+
+Files: hedwig-client/src/main/cpp/m4/*
+ hedwig-client/src/main/cpp/aminclude.am
+Copyright: 2008-2009, Thomas Porschberg
+ 2009, Michael Tindal
+ 2009, Peter Adolphs
+ 2008, Pete Greenwell
+ 2004-2009, Oren Ben-Kiki
+License: other
+ Copying and distribution of this file, with or without modification, are
+ permitted in any medium without royalty provided the copyright notice
+ and this notice are preserved. This file is offered as-is, without any
+ warranty.
+
+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/libbookkeeper-java.poms b/debian/libbookkeeper-java.poms
new file mode 100644
index 0000000..f6b4073
--- /dev/null
+++ b/debian/libbookkeeper-java.poms
@@ -0,0 +1,34 @@
+# 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 --no-parent --has-package-version
+compat-deps/pom.xml --ignore
+hedwig-client/pom.xml --ignore
+hedwig-server/pom.xml --ignore
+hedwig-protocol/pom.xml --ignore
+bookkeeper-server/pom.xml --has-package-version --java-lib
+bookkeeper-benchmark/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..6aec264
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,17 @@
+
+org.apache.bookkeeper bookkeeper-benchmark jar * * *
+org.apache.bookkeeper compat-deps pom * * *
+org.apache.bookkeeper hedwig-client jar * * *
+org.apache.bookkeeper hedwig-protocol jar * * *
+org.apache.bookkeeper hedwig-server jar * * *
+org.apache.zookeeper zookeeper test-jar * * *
+org.apache.bookkeeper bookkeeper-server-compat400 * * * *
+org.apache.bookkeeper bookkeeper-server-compat410 * * * *
+org.apache.maven.plugins maven-assembly-plugin * * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-jxr-plugin * * * *
+org.apache.maven.plugins maven-pmd-plugin * * * *
+org.apache.maven.plugins maven-shade-plugin * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
+org.codehaus.mojo license-maven-plugin * * * *
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..17601cb
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,12 @@
+
+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/ * *
+com.google.guava guava bundle s/.*/debian/ * *
+com.google.guava guava s/jar/bundle/ s/.*/debian/ * *
+commons-collections commons-collections jar s/3\..*/3.x/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.apache apache pom s/.*/debian/ * *
+org.apache.bookkeeper bookkeeper-server jar s/.*/debian/ * *
+org.apache.bookkeeper bookkeeper pom s/.*/debian/ * *
+org.jboss.netty netty bundle s/.*/debian/ * *
+log4j log4j * s/1\.2\..*/1.2.x/ * *
diff --git a/debian/patches/01-add-commons-collections-dependency.patch b/debian/patches/01-add-commons-collections-dependency.patch
new file mode 100644
index 0000000..7f69263
--- /dev/null
+++ b/debian/patches/01-add-commons-collections-dependency.patch
@@ -0,0 +1,17 @@
+Description: Add the missing dependency on commons-collections
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/bookkeeper-server/pom.xml
++++ b/bookkeeper-server/pom.xml
+@@ -79,6 +79,11 @@
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
++ <groupId>commons-collections</groupId>
++ <artifactId>commons-collections</artifactId>
++ <version>3.2.1</version>
++ </dependency>
++ <dependency>
+ <groupId>commons-configuration</groupId>
+ <artifactId>commons-configuration</artifactId>
+ <version>1.6</version>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8d8e6b6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-add-commons-collections-dependency.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2deb7d5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/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_ARGS := -Pprotobuf
+
+clean::
+ rm -Rf bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/DataFormats.java
+ rm -Rf hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java
+
+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..fbde005
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/apache/bookkeeper/tags .*/release-([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bookkeeper.git
More information about the pkg-java-commits
mailing list