[jackson-jaxrs-providers] 01/01: initial packaging
Timo Aaltonen
tjaalton at moszumanska.debian.org
Mon Sep 8 23:11:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton pushed a commit to branch master
in repository jackson-jaxrs-providers.
commit 121f572ee807d42e34476b88097318829181884e
Author: Timo Aaltonen <tjaalton at debian.org>
Date: Tue Sep 9 00:32:35 2014 +0300
initial packaging
---
debian/README.source | 9 +++++
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 26 +++++++++++++++
debian/copyright | 17 ++++++++++
debian/libjackson2-jaxrs-providers-java.poms | 33 ++++++++++++++++++
debian/maven.cleanIgnoreRules | 1 +
debian/maven.ignoreRules | 11 ++++++
debian/maven.properties | 5 +++
debian/maven.publishedRules | 6 ++++
debian/maven.rules | 8 +++++
debian/patches/fix-using-bundle.diff | 36 ++++++++++++++++++++
debian/patches/force-core-version.diff | 50 ++++++++++++++++++++++++++++
debian/patches/series | 2 ++
debian/replace-generate.sh | 34 +++++++++++++++++++
debian/rules | 25 ++++++++++++++
debian/source/format | 1 +
debian/watch | 3 ++
18 files changed, 273 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..308af2b
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about jackson-jaxrs-providers
+-----------------------------------------
+
+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..f75439a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jackson-jaxrs-providers (2.4.2-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #nnnn)
+
+ -- Timo Aaltonen <tjaalton at ubuntu.com> Tue, 09 Sep 2014 00:28:45 +0300
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..47694d9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: jackson-jaxrs-providers
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Timo Aaltonen <tjaalton at ubuntu.com>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5),
+ xmlstarlet,
+Build-Depends-Indep:
+ libjackson2-core-java,
+ libjackson2-databind-java,
+ libjackson2-parent-java,
+ libjackson2-module-jaxb-annotations-java,
+ libjsr311-api-java,
+ libmaven-bundle-plugin-java,
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-java/jackson-jaxrs-providers.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/jackson-jaxrs-providers.git
+Homepage: http://wiki.fasterxml.com/JacksonHome
+
+Package: libjackson2-jaxrs-providers-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Jackson JAX-RS
+ Parent for Jackson JAX-RS providers
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a12aded
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jackson JAX-RS
+Source: http://wiki.fasterxml.com/JacksonHome
+
+Files: *
+Copyright: 2014, FasterXML
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Timo Aaltonen <tjaalton at ubuntu.com>
+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/libjackson2-jaxrs-providers-java.poms b/debian/libjackson2-jaxrs-providers-java.poms
new file mode 100644
index 0000000..284ba10
--- /dev/null
+++ b/debian/libjackson2-jaxrs-providers-java.poms
@@ -0,0 +1,33 @@
+# 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
+base/pom.xml --has-package-version
+cbor/pom.xml --ignore
+json/pom.xml --has-package-version
+smile/pom.xml --ignore
+xml/pom.xml --ignore
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..156dd9e
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,11 @@
+
+com.fasterxml.jackson.jaxrs jackson-jaxrs-cbor-provider bundle * * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-smile-provider bundle * * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-xml-provider bundle * * *
+com.google.code.maven-replacer-plugin replacer * * * *
+com.sun.jersey jersey-core * * * *
+com.sun.jersey jersey-server * * * *
+com.sun.jersey jersey-servlet * * * *
+org.eclipse.jetty jetty-server * * * *
+org.eclipse.jetty jetty-servlet * * * *
+org.jboss.resteasy resteasy-jackson2-provider * * * *
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.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..3f30687
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,6 @@
+
+com.fasterxml.jackson.jaxrs jackson-jaxrs-base bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-providers pom s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-base * s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider * s/2\..*/2.x/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..1cc4439
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,8 @@
+
+com.fasterxml.jackson jackson-parent pom s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-base bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.jaxrs jackson-jaxrs-providers pom s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-core * s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind * s/2\..*/2.x/ * *
+com.fasterxml.jackson.module jackson-module-jaxb-annotations * s/2\..*/2.x/ * *
diff --git a/debian/patches/fix-using-bundle.diff b/debian/patches/fix-using-bundle.diff
new file mode 100644
index 0000000..68f2e2d
--- /dev/null
+++ b/debian/patches/fix-using-bundle.diff
@@ -0,0 +1,36 @@
+diff --git a/base/pom.xml b/base/pom.xml
+index 32a59c9..6cd30e8 100644
+--- a/base/pom.xml
++++ b/base/pom.xml
+@@ -49,4 +49,14 @@ ${project.groupId}.annotation.*;version=${project.version}
+ </dependency>
+ <!-- test deps should come from parent -->
+ </dependencies>
++ <build>
++ <plugins>
++ <plugin>
++ <groupId>org.apache.felix</groupId>
++ <artifactId>maven-bundle-plugin</artifactId>
++ <version>2.3.5</version>
++ <extensions>true</extensions>
++ </plugin>
++ </plugins>
++ </build>
+ </project>
+diff --git a/json/pom.xml b/json/pom.xml
+index b8d4171..4b1aec5 100644
+--- a/json/pom.xml
++++ b/json/pom.xml
+@@ -85,6 +85,12 @@
+ </execution>
+ </executions>
+ </plugin>
++ <plugin>
++ <groupId>org.apache.felix</groupId>
++ <artifactId>maven-bundle-plugin</artifactId>
++ <version>2.3.5</version>
++ <extensions>true</extensions>
++ </plugin>
+ </plugins>
+ </build>
+ </project>
diff --git a/debian/patches/force-core-version.diff b/debian/patches/force-core-version.diff
new file mode 100644
index 0000000..15e571b
--- /dev/null
+++ b/debian/patches/force-core-version.diff
@@ -0,0 +1,50 @@
+--- a/base/pom.xml
++++ b/base/pom.xml
+@@ -40,12 +40,12 @@ ${project.groupId}.annotation.*;version=
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+- <version>${version.jackson.core}</version>
++ <version>2.4.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+- <version>${version.jackson.core}</version>
++ <version>2.4.2</version>
+ </dependency>
+ <!-- test deps should come from parent -->
+ </dependencies>
+--- a/json/pom.xml
++++ b/json/pom.xml
+@@ -41,25 +41,25 @@
+ <!-- builds on shared base JAX-RS handling code... -->
+ <dependency>
+ <artifactId>jackson-jaxrs-base</artifactId>
+- <groupId>${project.groupId}</groupId>
+- <version>${project.version}</version>
++ <groupId>com.fasterxml.jackson.jaxrs</groupId>
++ <version>2.4.2</version>
+ </dependency>
+ <!-- Extends Jackson core, mapper, and also (sort of optionally) on JAXB annotation handler -->
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+- <version>${version.jackson.core}</version>
++ <version>2.4.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+- <version>${version.jackson.core}</version>
++ <version>2.4.2</version>
+ </dependency>
+ <!-- also need JAXB annotation support -->
+ <dependency>
+ <groupId>com.fasterxml.jackson.module</groupId>
+ <artifactId>jackson-module-jaxb-annotations</artifactId>
+- <version>${version.jackson.jaxb}</version>
++ <version>2.4.2</version>
+ </dependency>
+
+ <!-- test deps should mostly come from parent, including jersey -->
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..88fc73c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+force-core-version.diff
+fix-using-bundle.diff
diff --git a/debian/replace-generate.sh b/debian/replace-generate.sh
new file mode 100755
index 0000000..e87bb49
--- /dev/null
+++ b/debian/replace-generate.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Simple replacement for mavan-replacer-plugin
+
+set -e
+
+TARGET=$1; shift
+
+TEMPLATE=$TARGET.in
+
+get_attr() {
+ < pom.xml xmlstarlet sel \
+ -N pom=http://maven.apache.org/POM/4.0.0 \
+ -T -t -v $1
+}
+
+package=$(dirname $TARGET | sed -e 's,.*src/main/java/\(.*\)$,\1,' | tr / .)
+projectversion=$(get_attr '/pom:project/pom:version')
+projectgroupid=$(get_attr '/pom:project/pom:groupId')
+projectartifactid=$(get_attr '/pom:project/pom:artifactId')
+
+sed \
+ -e "s, at package@,$package,g" \
+ -e "s, at projectversion@,$projectversion,g" \
+ -e "s, at projectgroupid@,$projectgroupid,g" \
+ -e "s, at projectartifactid@,$projectartifactid,g" \
+ < $TEMPLATE > $TARGET.t
+
+if grep -i '@[a-z]*@' $TARGET.t >&2; then
+ echo 'Not all tags were
+ replaced' >&2 exit 1
+fi
+
+mv $TARGET.t $TARGET
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b6c1003
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+VERSION_FILES = \
+ json/src/main/java/com/fasterxml/jackson/jaxrs/json/PackageVersion.java \
+ xml/src/main/java/com/fasterxml/jackson/jaxrs/xml/PackageVersion.java \
+ smile/src/main/java/com/fasterxml/jackson/jaxrs/smile/PackageVersion.java \
+ cbor/src/main/java/com/fasterxml/jackson/jaxrs/cbor/PackageVersion.java
+
+%:
+ dh $@ --buildsystem=maven
+
+override_dh_auto_configure:
+ for file in $(VERSION_FILES); do \
+ sh debian/replace-generate.sh $$file \
+ ; done
+ dh_auto_configure
+
+override_dh_auto_clean:
+ rm -f $(VERSION_FILES)
+ dh_auto_clean
+
+get-orig-source:
+ uscan --download-current-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..c01914f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+https://github.com/FasterXML/jackson-jaxrs-providers/releases .*/jackson-jaxrs-providers-(\d\S*)\.tar\.gz
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-jaxrs-providers.git
More information about the pkg-java-commits
mailing list