[eclipse-aether] 02/22: Initial debian packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Oct 8 16:48:20 BST 2014


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

ebourg-guest pushed a commit to branch eclipse-aether
in repository eclipse-aether.

commit ae7a48d9687f4dacfda4c9c4dc134f6ddc132976
Author: Damien Raude-Morvan <drazzib at debian.org>
Date:   Thu Dec 1 00:05:30 2011 +0100

    Initial debian packaging
---
 debian/README.source                   |  9 ++++++
 debian/changelog                       |  5 ++++
 debian/compat                          |  1 +
 debian/control                         | 30 ++++++++++++++++++++
 debian/copyright                       | 15 ++++++++++
 debian/libaether-java-doc.doc-base.api | 10 +++++++
 debian/libaether-java-doc.install      |  2 ++
 debian/libaether-java.poms             | 34 +++++++++++++++++++++++
 debian/maven.ignoreRules               | 24 ++++++++++++++++
 debian/maven.properties                |  8 ++++++
 debian/maven.rules                     | 32 ++++++++++++++++++++++
 debian/orig-tar.exclude                |  1 +
 debian/orig-tar.sh                     | 10 +++++++
 debian/patches/logging.diff            | 50 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           | 10 +++++++
 debian/source/format                   |  1 +
 debian/watch                           |  3 ++
 18 files changed, 246 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..9f7fe59
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about sonatype-aether
+------------------------------
+
+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..13e93a4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+aether (1.13.1-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #624536).
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Thu, 01 Dec 2011 00:05:17 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fabd0dc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: aether
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Damien Raude-Morvan <drazzib at debian.org>
+Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-debian-helper (>= 1.4)
+Build-Depends-Indep: default-jdk-doc,
+                     libasync-http-client-java,
+                     libasync-http-client-java-doc,
+                     libmaven-javadoc-plugin-java,
+                     libplexus-classworlds-java,
+                     libplexus-classworlds-java-doc,
+                     libplexus-component-metadata-java,
+                     libplexus-containers-java,
+                     libplexus-containers-java-doc,
+                     libplexus-utils-java,
+                     libplexus-utils-java-doc,
+                     libslf4j-java,
+                     libwagon-java,
+                     libwagon-java-doc
+Standards-Version: 3.9.2
+Homepage: http://aether.sonatype.org/
+
+Package: libaether-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libaether-java-doc
+Description: Aether
+ The parent and aggregator for the repository system.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b093231
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
+Upstream-Name: Aether
+Source: http://aether.sonatype.org/
+
+Files: *
+Copyright: Copyright (c) 2010-2011 Sonatype, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2011, Damien Raude-Morvan <drazzib at debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+  On Debian GNU/Linux system you can find the complete text of the
+  Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libaether-java-doc.doc-base.api b/debian/libaether-java-doc.doc-base.api
new file mode 100644
index 0000000..cfbf78e
--- /dev/null
+++ b/debian/libaether-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libsonatype-aether-java
+Title: API Javadoc for Aether
+Author: Aether developers
+Abstract: This is the API Javadoc provided for the
+ libsonatype-aether-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libsonatype-aether-java/api/index.html
+Files: /usr/share/doc/libsonatype-aether-java/api/*
diff --git a/debian/libaether-java-doc.install b/debian/libaether-java-doc.install
new file mode 100644
index 0000000..9fa08aa
--- /dev/null
+++ b/debian/libaether-java-doc.install
@@ -0,0 +1,2 @@
+
+target/apidocs/* usr/share/doc/libsonatype-aether-java/api
diff --git a/debian/libaether-java.poms b/debian/libaether-java.poms
new file mode 100644
index 0000000..43f0368
--- /dev/null
+++ b/debian/libaether-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 with mh_install or mh_installpoms. To use with POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars.
+#   --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
+#   --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.
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#
+pom.xml --no-parent --has-package-version
+aether-api/pom.xml --has-package-version
+aether-spi/pom.xml --has-package-version
+aether-util/pom.xml --has-package-version
+aether-impl/pom.xml --has-package-version
+aether-test-util/pom.xml --has-package-version
+aether-connector-file/pom.xml --has-package-version
+aether-connector-wagon/pom.xml --has-package-version
+aether-connector-asynchttpclient/pom.xml --has-package-version
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..317c820
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,24 @@
+# Maven ignore rules - ignore some Maven dependencies and plugins
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+# where each element can be either
+# - the exact string, for example org.apache for the group, or 3.1
+#   for the version. In this case, the element is simply matched
+#   and left as it is
+# - * (the star character, alone). In this case, anything will
+#   match and be left as it is. For example, using * on the
+#  position of the artifact field will match any artifact id
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., this dependency is then removed
+# from the POM
+#   junit junit jar s/3\\..*/3.x/
+
+org.codehaus.mojo clirr-maven-plugin * * * *
+org.codehaus.mojo animal-sniffer-maven-plugin * * * *
+org.sonatype.http-testing-harness junit-runner * * * *
+org.sonatype.http-testing-harness server-provider * * 
+
+org.apache.maven.wagon wagon-http-lightweight * * * *
+org.mortbay.jetty jetty * * * *
+org.sonatype.sisu sisu-inject-plexus * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..78f1358
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,8 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
+
+maven.compiler.source=1.5
+maven.compiler.target=1.5
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..3715053
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,32 @@
+# Maven rules - transform Maven dependencies and plugins
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+# where each element can be either
+# - the exact string, for example org.apache for the group, or 3.1
+#   for the version. In this case, the element is simply matched
+#   and left as it is
+# - * (the star character, alone). In this case, anything will
+#   match and be left as it is. For example, using * on the
+#  position of the artifact field will match any artifact id
+# - a regular expression of the form s/match/replace/
+#   in this case, elements that match are transformed using
+#   the regex rule.
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., replacing the version with 3.x
+#   junit junit jar s/3\\..*/3.x/
+
+com.ning async-http-client jar s/.*/debian/ * *
+junit junit jar s/.*/4.x/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.apache.maven.wagon wagon-provider-api jar s/.*/debian/ * *
+org.codehaus.plexus plexus-classworlds jar s/.*/debian/ * *
+org.sonatype.aether aether-api jar s/.*/debian/ * *
+org.sonatype.aether aether-connector-asynchttpclient jar s/.*/debian/ * *
+org.sonatype.aether aether-connector-file jar s/.*/debian/ * *
+org.sonatype.aether aether-connector-wagon jar s/.*/debian/ * *
+org.sonatype.aether aether-impl jar s/.*/debian/ * *
+org.sonatype.aether aether-spi jar s/.*/debian/ * *
+org.sonatype.aether aether-test-util jar s/.*/debian/ * *
+org.sonatype.aether aether-util jar s/.*/debian/ * *
+org.sonatype.aether aether pom s/.*/debian/ * *
diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
new file mode 100644
index 0000000..a31723b
--- /dev/null
+++ b/debian/orig-tar.exclude
@@ -0,0 +1 @@
+aether-demo/*.jar
\ No newline at end of file
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..42997ee
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../aether_$VERSION.orig.tar.gz
+DIR=aether-$VERSION
+
+tar xzf $3
+mv sonatype-sonatype-aether-* $DIR
+GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
+rm -rf $DIR
diff --git a/debian/patches/logging.diff b/debian/patches/logging.diff
new file mode 100644
index 0000000..d24d08e
--- /dev/null
+++ b/debian/patches/logging.diff
@@ -0,0 +1,50 @@
+Index: b/aether-connector-wagon/pom.xml
+===================================================================
+--- a/aether-connector-wagon/pom.xml
++++ b/aether-connector-wagon/pom.xml
+@@ -53,6 +53,11 @@
+     </dependency>
+     <dependency>
+       <groupId>org.codehaus.plexus</groupId>
++      <artifactId>plexus-container-default</artifactId>
++      <scope>provided</scope>
++    </dependency>
++    <dependency>
++      <groupId>org.codehaus.plexus</groupId>
+       <artifactId>plexus-classworlds</artifactId>
+       <version>2.4</version>
+     </dependency>
+Index: b/aether-impl/pom.xml
+===================================================================
+--- a/aether-impl/pom.xml
++++ b/aether-impl/pom.xml
+@@ -43,6 +43,11 @@
+       <scope>provided</scope>
+     </dependency>
+     <dependency>
++      <groupId>org.codehaus.plexus</groupId>
++      <artifactId>plexus-container-default</artifactId>
++      <scope>provided</scope>
++    </dependency>
++    <dependency>
+       <groupId>org.sonatype.sisu</groupId>
+       <artifactId>sisu-inject-plexus</artifactId>
+       <scope>provided</scope>
+Index: b/pom.xml
+===================================================================
+--- a/pom.xml
++++ b/pom.xml
+@@ -149,6 +149,13 @@
+       </dependency>
+ 
+       <dependency>
++        <groupId>org.codehaus.plexus</groupId>
++        <artifactId>plexus-container-default</artifactId>
++        <version>1.5.5</version>
++        <scope>provided</scope>
++      </dependency>
++
++      <dependency>
+         <groupId>org.sonatype.sisu</groupId>
+         <artifactId>sisu-inject-plexus</artifactId>
+         <version>2.2.3</version>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7fc6e6e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+logging.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..562f1f3
--- /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:jar javadoc:aggregate
+
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
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..898c18c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://githubredir.debian.net/github/sonatype/sonatype-aether/aether-(.*).tar.gz \
+ debian debian/orig-tar.sh
\ No newline at end of file

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



More information about the pkg-java-commits mailing list