[mavibot] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jun 25 06:51:57 UTC 2015


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

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

commit fc9c902863f456250cb278b8779d5d6d333ad1ba
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Jun 25 08:47:00 2015 +0200

    Initial packaging
---
 debian/README.source                         |  9 +++++++++
 debian/changelog                             |  5 +++++
 debian/compat                                |  1 +
 debian/control                               | 29 +++++++++++++++++++++++++++
 debian/copyright                             | 15 ++++++++++++++
 debian/libmavibot-java.poms                  | 30 ++++++++++++++++++++++++++++
 debian/maven.ignoreRules                     |  9 +++++++++
 debian/maven.properties                      |  5 +++++
 debian/maven.rules                           |  6 ++++++
 debian/orig-tar.sh                           | 20 +++++++++++++++++++
 debian/patches/01-maven2-compatibility.patch | 16 +++++++++++++++
 debian/patches/02-test-compatibility.patch   | 25 +++++++++++++++++++++++
 debian/patches/series                        |  3 +++
 debian/rules                                 |  9 +++++++++
 debian/source/format                         |  1 +
 debian/watch                                 |  4 ++++
 16 files changed, 187 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a7e857f
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about mavibot
+-------------------------
+
+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..21bf550
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mavibot (1.0.0~M1-1) unstable; urgency=medium
+
+  * Initial release (Closes: #789863)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Thu, 25 Jun 2015 08:44:28 +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..50b16cd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: mavibot
+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-collections3-java,
+               libcommons-io-java,
+               liblog4j1.2-java (>= 1.2.17),
+               libmaven-compiler-plugin-2.5-java,
+               libslf4j-java,
+               maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/mavibot.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/mavibot.git
+Homepage: http://directory.apache.org/mavibot
+
+Package: libmavibot-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Apache Mavibot - MVCC BTree Java Implementation
+ Mavibot is a Multi Version Concurrency Control (MVCC) BTree in Java.
+ It is expected to be a replacement for JDBM (The current backend for
+ the Apache Directory Server), but could be a good fit for any other
+ project in need of a Java MVCC BTree implementation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f3ebb21
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Apache Mavibot
+Source: http://directory.apache.org/mavibot
+
+Files: *
+Copyright: 2013, 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/libmavibot-java.poms b/debian/libmavibot-java.poms
new file mode 100644
index 0000000..4b7b967
--- /dev/null
+++ b/debian/libmavibot-java.poms
@@ -0,0 +1,30 @@
+# 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
+mavibot/pom.xml
+distribution/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..0b21998
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,9 @@
+
+org.apache.directory.mavibot distribution pom * * *
+org.apache.felix maven-bundle-plugin * * * *
+org.apache.geronimo.genesis.plugins tools-maven-plugin * * * *
+org.apache.maven.plugins maven-enforcer-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..16360f6
--- /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.failure.ignore=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..93bffe7
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,6 @@
+
+commons-collections commons-collections jar s/3\..*/3.x/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.apache.directory.mavibot mavibot-parent pom s/.*/debian/ * *
+org.apache.directory.mavibot mavibot jar s/.*/debian/ * *
+log4j log4j * s/1\.2\..*/1.2.x/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..fa9dd41
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# Removes unwanted content from the upstream sources.
+# Called by uscan with '--upstream-version' <version> <file>
+#
+
+VERSION=$2
+TAR=../mavibot_$VERSION.orig.tar.xz
+DIR=mavibot-$VERSION
+TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta|rc|M)/-\1/')
+
+svn export http://svn.apache.org/repos/asf/directory/mavibot/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir && echo "moved $TAR to $origDir"
+fi
diff --git a/debian/patches/01-maven2-compatibility.patch b/debian/patches/01-maven2-compatibility.patch
new file mode 100644
index 0000000..a401d16
--- /dev/null
+++ b/debian/patches/01-maven2-compatibility.patch
@@ -0,0 +1,16 @@
+Description: Remove the Maven 3 prerequisite
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+diff --git a/pom.xml b/pom.xml
+index 04acadc..78986bd 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -38,7 +38,7 @@
+   <packaging>pom</packaging>
+ 
+   <prerequisites>
+-    <maven>3.0.0</maven>
++    <maven>2.2.1</maven>
+   </prerequisites>
+ 
+   <url>http://directory.apache.org/mavibot</url>
diff --git a/debian/patches/02-test-compatibility.patch b/debian/patches/02-test-compatibility.patch
new file mode 100644
index 0000000..9df08dd
--- /dev/null
+++ b/debian/patches/02-test-compatibility.patch
@@ -0,0 +1,25 @@
+Description: Fix the compatibility with the version of junit in Debian
+Author: Emmanuel Bourg <ebourg at pache.org>
+Forwarded: no
+--- a/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java
++++ b/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java
+@@ -59,7 +59,7 @@
+ 
+ 
+     @Before
+-    public void createBTree()
++    public void createBTree() throws IOException
+     {
+         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
+ 
+--- a/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
++++ b/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
+@@ -66,7 +66,7 @@
+ 
+ 
+     @Before
+-    public void createBTree()
++    public void createBTree() throws IOException
+     {
+         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..693237a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+01-maven2-compatibility.patch
+
+02-test-compatibility.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4a061cf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/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
+
+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..0d4b05f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta|rc|M)(-)?/~$1$2/" \
+  http://svn.apache.org/repos/asf/directory/mavibot/tags/ \
+  (\d.*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list