[apache-curator] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jan 29 00:01:17 UTC 2015


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

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

commit 9bc74fad9cfe2952fc03fabeac6eb776de9c1248
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Jan 29 00:51:10 2015 +0100

    Initial packaging
---
 debian/README.source                            |  9 +++
 debian/changelog                                |  5 ++
 debian/compat                                   |  1 +
 debian/control                                  | 90 +++++++++++++++++++++++++
 debian/copyright                                | 15 +++++
 debian/libcurator-parent-java.lintian-overrides |  2 +
 debian/libcurator-parent-java.poms              | 36 ++++++++++
 debian/maven.ignoreRules                        | 12 ++++
 debian/maven.properties                         |  5 ++
 debian/maven.rules                              |  3 +
 debian/patches/01-change-maven-packaging.patch  | 36 ++++++++++
 debian/patches/series                           |  1 +
 debian/rules                                    | 18 +++++
 debian/source/format                            |  1 +
 debian/watch                                    |  2 +
 15 files changed, 236 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..8e8d060
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about apache-curator
+--------------------------------
+
+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..6361f56
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+apache-curator (2.7.1-1) unstable; urgency=medium
+
+  * Initial release (Closes: #776493)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 26 Jan 2015 23:17:38 +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..7473396
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,90 @@
+Source: apache-curator
+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,
+               libcommons-math-java,
+               libguava-java,
+               libjackson-json-java,
+               libjavassist-java,
+               libmaven-bundle-plugin-java,
+               libmaven-dependency-plugin-java,
+               libmockito-java,
+               libslf4j-java,
+               libzookeeper-java (>= 3.4.6-3~),
+               maven-debian-helper (>= 1.5),
+               testng,
+               thrift-compiler
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/apache-curator.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/apache-curator.git
+Homepage: http://curator.apache.org
+
+Package: libcurator-parent-java
+Architecture: all
+Depends: ${misc:Depends}, libcommons-math-java, libjavassist-java, libslf4j-java
+Description: Apache Curator Parent
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains the parent POM of the Curator components.
+
+Package: libcurator-client-java
+Architecture: all
+Depends: ${misc:Depends}, libcurator-parent-java, libslf4j-java
+Description: Apache Curator Client
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains the Curator Client which is a low-level API wrapping
+ the ZooKeeper's Java client. It makes client access to ZooKeeper much simpler
+ and less error prone. It provides the following features:
+  * Continuous connection management
+  * Operation retry utilities
+  * In-process, self-contained, Test ZooKeeper server
+
+Package: libcurator-framework-java
+Architecture: all
+Depends: ${misc:Depends}, libcurator-client-java
+Description: Apache Curator Framework
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains the Curator Framework which is a high-level API that
+ greatly simplifies using ZooKeeper. It adds many features that build on
+ ZooKeeper and handles the complexity of managing connections to the ZooKeeper
+ cluster and retrying operations.
+
+Package: libcurator-test-java
+Architecture: all
+Depends: ${misc:Depends}, libcurator-parent-java
+Description: Apache Curator Testing Utilities
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains the testing server, the testing cluster and a few other
+ tools useful for testing.
+
+Package: libcurator-recipes-java
+Architecture: all
+Depends: ${misc:Depends}, libcurator-framework-java
+Description: Apache Curator Recipes
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains the implementations of some of the common ZooKeeper
+ "recipes" (elections, locks, barriers, counters, caches, nodes and queues).
+ The implementations are built on top of the Curator Framework.
+
+Package: libcurator-discovery-java
+Architecture: all
+Depends: ${misc:Depends}, libcurator-recipes-java, libjackson-json-java
+Description: Apache Curator Service Discovery
+ Curator is a set of Java libraries that make using Apache ZooKeeper much
+ easier.
+ .
+ This package contains a service discovery implementation built
+ on the Curator Framework.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..796f455
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Apache Curator
+Source: http://curator.apache.org
+
+Files: *
+Copyright: 2011-2015, The Apache Software Foundation
+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/libcurator-parent-java.lintian-overrides b/debian/libcurator-parent-java.lintian-overrides
new file mode 100644
index 0000000..0c09195
--- /dev/null
+++ b/debian/libcurator-parent-java.lintian-overrides
@@ -0,0 +1,2 @@
+# This package contains only the parent POM
+libcurator-parent-java: javalib-but-no-public-jars
diff --git a/debian/libcurator-parent-java.poms b/debian/libcurator-parent-java.poms
new file mode 100644
index 0000000..0c535c9
--- /dev/null
+++ b/debian/libcurator-parent-java.poms
@@ -0,0 +1,36 @@
+# 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 --package=libcurator-parent-java
+curator-client/pom.xml --has-package-version --package=libcurator-client-java
+curator-test/pom.xml --has-package-version --package=libcurator-test-java
+curator-framework/pom.xml --has-package-version --package=libcurator-framework-java
+curator-recipes/pom.xml --has-package-version --package=libcurator-recipes-java
+curator-examples/pom.xml --ignore
+curator-x-discovery/pom.xml --has-package-version --package=libcurator-discovery-java
+curator-x-discovery-server/pom.xml --ignore
+curator-x-rpc/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..9889bd6
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,12 @@
+
+org.apache.curator curator-examples jar * * *
+org.apache.curator curator-x-discovery-server bundle * * *
+org.apache.curator curator-x-rpc jar * * *
+com.mycila.maven-license-plugin maven-license-plugin * * * *
+org.apache.maven.plugins maven-install-plugin * * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-project-info-reports-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-scm-publish-plugin * * * *
+org.apache.maven.plugins maven-site-plugin * * * *
+org.apache.rat apache-rat-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..efb78cf
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+org.testng testng jar s/6\..*/6.x/ * *
+s/org.javassist/javassist/ javassist * s/.*/debian/ * *
diff --git a/debian/patches/01-change-maven-packaging.patch b/debian/patches/01-change-maven-packaging.patch
new file mode 100644
index 0000000..7a56250
--- /dev/null
+++ b/debian/patches/01-change-maven-packaging.patch
@@ -0,0 +1,36 @@
+Description: Change the Maven packaging from 'bundle' to 'jar'
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/curator-client/pom.xml
++++ b/curator-client/pom.xml
+@@ -29,7 +29,7 @@
+ 
+     <artifactId>curator-client</artifactId>
+     <version>2.7.1</version>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <name>Curator Client</name>
+     <description>Low-level API</description>
+--- a/curator-framework/pom.xml
++++ b/curator-framework/pom.xml
+@@ -29,7 +29,7 @@
+ 
+     <artifactId>curator-framework</artifactId>
+     <version>2.7.1</version>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <name>Curator Framework</name>
+     <description>High-level API that greatly simplifies using ZooKeeper.</description>
+--- a/curator-recipes/pom.xml
++++ b/curator-recipes/pom.xml
+@@ -29,7 +29,7 @@
+ 
+     <artifactId>curator-recipes</artifactId>
+     <version>2.7.1</version>
+-    <packaging>bundle</packaging>
++    <packaging>jar</packaging>
+ 
+     <name>Curator Recipes</name>
+     <description>All of the recipes listed on the ZooKeeper recipes doc (except two phase commit).</description>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..77a3883
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-change-maven-packaging.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..948ec97
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/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
+
+configure/libcurator-parent-java::
+	# Regenerate the Java classes from the Thrift files
+	sed -i 's/^namespace java.swift/\/\/namespace java.swift/g' curator-x-rpc/src/main/thrift/curator.thrift
+	cd curator-x-rpc/src/main/scripts && bash apply-thrift.sh java
+
+clean::
+	sed -i 's/\/\/namespace/namespace/g' curator-x-rpc/src/main/thrift/curator.thrift
+
+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..0a2514f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/apache/curator/releases .*/(?:(?:apache-)?curator-)?([\d\.]+).tar.gz

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



More information about the pkg-java-commits mailing list