[disruptor] 01/01: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Jan 22 22:51:13 UTC 2014


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

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

commit 226b09a6d19c4b7cfb2517d3fbf18da569c7e7df
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Jan 22 23:50:36 2014 +0100

    Initial packaging
---
 debian/README.source                        |  9 ++++++
 debian/changelog                            |  5 +++
 debian/compat                               |  1 +
 debian/control                              | 24 ++++++++++++++
 debian/copyright                            | 18 +++++++++++
 debian/libdisruptor-java.poms               | 28 +++++++++++++++++
 debian/maven.ignoreRules                    |  4 +++
 debian/maven.properties                     |  5 +++
 debian/maven.rules                          |  1 +
 debian/orig-tar.sh                          | 19 +++++++++++
 debian/patches/01-jmock-compatibility.patch | 11 +++++++
 debian/patches/series                       |  0
 debian/pom.xml                              | 49 +++++++++++++++++++++++++++++
 debian/rules                                | 21 +++++++++++++
 debian/source/format                        |  1 +
 debian/watch                                |  3 ++
 16 files changed, 199 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..35387f4
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about disruptor
+---------------------------
+
+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..047195a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+disruptor (3.2.0-1) unstable; urgency=medium
+
+  * Initial release (Closes: #736354)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Wed, 22 Jan 2014 23:19:52 +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..b3948d4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: disruptor
+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), cdbs, default-jdk, maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.5
+Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/disruptor
+Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/disruptor
+Homepage: http://lmax-exchange.github.com/disruptor
+
+Package: libdisruptor-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Description: Disruptor - High Performance Inter-Thread Messaging Library for Java
+ The disruptor is a high-throughput and low-latency concurrency framework.
+ It is designed to maximize the efficiency of memory allocation, and operate
+ in a cache-friendly manner so that it will perform optimally on modern
+ hardware.
+ .
+ At the heart of the disruptor mechanism sits a pre-allocated bounded data
+ structure in the form of a ring-buffer. Data is added to the ring buffer
+ through one or more producers and processed by one or more consumers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..942d268
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,18 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Disruptor Framework
+Upstrm-Contact: Michael Barker <mikeb01 at gmail.com>
+Source: http://lmax-exchange.github.com/disruptor
+
+Files: *
+Copyright: 2011-2013, LMAX Ltd
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, 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/libdisruptor-java.poms b/debian/libdisruptor-java.poms
new file mode 100644
index 0000000..1d885c3
--- /dev/null
+++ b/debian/libdisruptor-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]
+#
+pom.xml --has-package-version --java-lib
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..f1bee15
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,4 @@
+
+junit junit * * * *
+org.jmock jmock-junit4 * * * *
+org.jmock jmock-legacy * * * *
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..8b13789
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..13cedbe
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -e
+
+VERSION=$2
+DIR=disruptor-${VERSION}
+TAR=../disruptor_${VERSION}.orig.tar.xz
+
+tar -xf $3
+rm $3
+XZ_OPT=--best tar -c -v -J -f $TAR \
+    --exclude '*.jar' \
+    --exclude '*.bat' \
+    --exclude '.settings' \
+    --exclude '.classpath' \
+    --exclude '.project' \
+    --exclude '.idea' \
+    --exclude '*.iml' \
+    $DIR
+rm -Rf $DIR
diff --git a/debian/patches/01-jmock-compatibility.patch b/debian/patches/01-jmock-compatibility.patch
new file mode 100644
index 0000000..6c6a716
--- /dev/null
+++ b/debian/patches/01-jmock-compatibility.patch
@@ -0,0 +1,11 @@
+--- a/src/test/java/com/lmax/disruptor/RingBufferTest.java
++++ b/src/test/java/com/lmax/disruptor/RingBufferTest.java
+@@ -1329,7 +1329,7 @@
+         public void describeTo(final Description description)
+         {
+             description.appendText("Expected ring buffer with events matching: ");
+-            allOf(expectedValueMatchers).describeTo(description);
++            allOf((Matcher<? super Object>[]) expectedValueMatchers).describeTo(description);
+         }
+     }
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e69de29
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..c55e000
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.lmax</groupId>
+  <artifactId>disruptor</artifactId>
+  <version>3.2.0</version>
+  <name>Disruptor Framework</name>
+  <description>Disruptor - Concurrent Programming Framework</description>
+  <url>http://lmax-exchange.github.com/disruptor</url>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <developers>
+    <developer>
+      <id>team</id>
+      <name>LMAX Disruptor Development Team</name>
+      <email>lmax-disruptor at googlegroups.com</email>
+    </developer>
+  </developers>
+  <scm>
+    <connection>scm:git at github.com:LMAX-Exchange/disruptor.git</connection>
+    <url>scm:git at github.com:LMAX-Exchange/disruptor.git</url>
+  </scm>
+  <dependencies>
+    <dependency>
+      <groupId>org.jmock</groupId>
+      <artifactId>jmock-junit4</artifactId>
+      <version>2.5.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jmock</groupId>
+      <artifactId>jmock-legacy</artifactId>
+      <version>2.5.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.5</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8a9741a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/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_INSTALL_CHANGELOGS_ALL := README.md
+
+pre-build::
+	cp debian/pom.xml .
+	mh_patchpoms -plibdisruptor-java --keep-pom-version
+
+clean::
+	rm -f pom.xml
+
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+
+get-orig-pom:
+	wget http://central.maven.org/maven2/com/lmax/disruptor/$(DEB_UPSTREAM_VERSION)/disruptor-$(DEB_UPSTREAM_VERSION).pom -O debian/pom.xml
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..49862e6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/\.beta/~beta/ \
+https://github.com/LMAX-Exchange/disruptor/releases .*/(\d.*).tar.gz debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list