[jackson-jr] 01/01: Import Debian changes 2.8.9-1

Markus Koschany apo at moszumanska.debian.org
Mon Jul 3 18:10:18 UTC 2017


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

apo pushed a commit to branch master
in repository jackson-jr.

commit 8bbb4367f2123ad84a16cf8fc6b20f0557d0f162
Author: Markus Koschany <apo at debian.org>
Date:   Mon Jul 3 20:04:25 2017 +0200

    Import Debian changes 2.8.9-1
    
    jackson-jr (2.8.9-1) unstable; urgency=medium
    
      * Initial release (Closes: #866893).
---
 debian/README.source                        | 10 +++++
 debian/changelog                            |  5 +++
 debian/compat                               |  1 +
 debian/control                              | 59 +++++++++++++++++++++++++++++
 debian/copyright                            | 15 ++++++++
 debian/libjackson2-jr-java-doc.doc-base.api | 10 +++++
 debian/libjackson2-jr-java-doc.install      |  2 +
 debian/libjackson2-jr-java.poms             | 32 ++++++++++++++++
 debian/maven.ignoreRules                    |  7 ++++
 debian/maven.properties                     |  3 ++
 debian/maven.rules                          |  8 ++++
 debian/patches/build.patch                  | 33 ++++++++++++++++
 debian/patches/series                       |  1 +
 debian/replace-generate.sh                  | 34 +++++++++++++++++
 debian/rules                                | 21 ++++++++++
 debian/source/format                        |  1 +
 debian/watch                                |  3 ++
 17 files changed, 245 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..4431f65
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,10 @@
+Information about libtwelvemonkeys-java
+---------------------------------------
+
+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..80e1127
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jackson-jr (2.8.9-1) unstable; urgency=medium
+
+  * Initial release (Closes: #866893).
+
+ -- Markus Koschany <apo at debian.org>  Mon, 03 Jul 2017 20:04:25 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9f087a6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,59 @@
+Source: jackson-jr
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Markus Koschany <apo at debian.org>
+Build-Depends:
+ debhelper (>= 10),
+ default-jdk,
+ default-jdk-doc,
+ libjackson2-core-java,
+ libmaven-javadoc-plugin-java,
+ maven-debian-helper (>= 2.1),
+ xmlstarlet
+Standards-Version: 4.0.0
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/libjackson2-jr-java.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-java/libjackson2-jr-java.git
+Homepage: https://github.com/FasterXML/jackson-jr
+
+Package: libjackson2-jr-java
+Architecture: all
+Depends:
+ ${maven:Depends},
+ ${misc:Depends}
+Suggests:
+ libjackson2-jr-java-doc,
+ ${maven:OptionalDepends}
+Description: JSON library for Java -- standalone data-binding module
+ Jackson jr is a compact alternative to the full Jackson Databind component. It
+ implements a subset of functionality, for example for cases where size of jar
+ or startup time matters. In addition to basic datatypes the package supports
+ reading and writing of standard Java Beans (an implementation that mimics the
+ standard JDK Bean Introspection).
+ .
+ Jackson jr also adds composer implementation that can be used to construct
+ JSON output with builder-style API, but without necessarily having to build an
+ in-memory representation: instead, it can directly use the streaming-api for
+ direct output. It is also possible to build actual in-memory JSON String or
+ byte[] representation, if that is preferable.
+
+Package: libjackson2-jr-java-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends}
+Recommends:
+ ${maven:DocDepends},
+ ${maven:DocOptionalDepends}
+Suggests:
+ libjackson2-jr-java
+Description: Documentation for libjackson2-jr-java
+ Jackson jr is a compact alternative to the full Jackson Databind component. It
+ implements a subset of functionality, for example for cases where size of jar
+ or startup time matters. In addition to basic datatypes the package supports
+ reading and writing of standard Java Beans (an implementation that mimics the
+ standard JDK Bean Introspection).
+ .
+ This package contains the API documentation of libjackson2-jr-java.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6484ab4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jackson jr
+Source: https://github.com/FasterXML/jackson-jr/
+
+Files: *
+Copyright: 2014-2017, FasterXML, LLC, Seattle, USA <info at fasterxml.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2017, Markus Koschany <apo at debian.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/libjackson2-jr-java-doc.doc-base.api b/debian/libjackson2-jr-java-doc.doc-base.api
new file mode 100644
index 0000000..1c841be
--- /dev/null
+++ b/debian/libjackson2-jr-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libjackson2-jr-java
+Title: API Javadoc for jackson-jr
+Author: Jackson developers
+Abstract: This is the API Javadoc provided for the
+ libjackson2-jr-java libraries.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjackson2-jr-java/api/index.html
+Files: /usr/share/doc/libjackson2-jr-java/api/*
diff --git a/debian/libjackson2-jr-java-doc.install b/debian/libjackson2-jr-java-doc.install
new file mode 100644
index 0000000..a905906
--- /dev/null
+++ b/debian/libjackson2-jr-java-doc.install
@@ -0,0 +1,2 @@
+jr-objects/target/apidocs/* usr/share/doc/libjackson2-jr-java/api/
+target/site/apidocs/* usr/share/doc/libjackson2-jr-java/api/
diff --git a/debian/libjackson2-jr-java.poms b/debian/libjackson2-jr-java.poms
new file mode 100644
index 0000000..0a4768d
--- /dev/null
+++ b/debian/libjackson2-jr-java.poms
@@ -0,0 +1,32 @@
+# 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
+jr-objects/pom.xml --has-package-version
+jr-retrofit2/pom.xml --ignore
+jr-stree/pom.xml --ignore
+jr-all/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..840e1cc
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,7 @@
+
+com.fasterxml.jackson.jr jackson-jr-all jar * * *
+com.fasterxml.jackson.jr jackson-jr-retrofit2 bundle * * *
+com.fasterxml.jackson.jr jackson-jr-stree bundle * * *
+junit junit * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+com.google.code.maven-replacer-plugin replacer * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..be1360a
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,3 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..65039f9
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,8 @@
+
+com.fasterxml.jackson.core jackson-annotations bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-core bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind bundle s/.*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.jr jackson-jr-objects bundle s/.*/debian/ * *
+com.fasterxml.jackson.jr jackson-jr-parent pom s/.*/debian/ * *
+com.fasterxml.jackson.core jackson-core * s/.*/2.x/ * *
diff --git a/debian/patches/build.patch b/debian/patches/build.patch
new file mode 100644
index 0000000..ddbc389
--- /dev/null
+++ b/debian/patches/build.patch
@@ -0,0 +1,33 @@
+From: Markus Koschany <apo at debian.org>
+Date: Sun, 2 Jul 2017 05:30:17 +0200
+Subject: build
+
+Maven's replacer plugin does not work and I also had to pass the --no-parent
+flag to the pom. There is something wrong. Fix it!
+
+Forwarded: not-needed
+---
+ jr-objects/pom.xml | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/jr-objects/pom.xml b/jr-objects/pom.xml
+index 3bb0a7f..0c3bb80 100644
+--- a/jr-objects/pom.xml
++++ b/jr-objects/pom.xml
+@@ -6,7 +6,7 @@
+     <version>2.8.9</version>
+   </parent>
+   <artifactId>jackson-jr-objects</artifactId>
+-  <packaging>bundle</packaging>
++  <packaging>jar</packaging>
+   <description>Simple data-binding that builds directly on `jackson-core` (streaming),
+ has no other dependencies, and provides additional builder-style content generator
+ </description>
+@@ -23,6 +23,7 @@ has no other dependencies, and provides additional builder-style content generat
+     <dependency>
+       <groupId>com.fasterxml.jackson.core</groupId>
+       <artifactId>jackson-core</artifactId>
++      <version>2.8.6</version>
+     </dependency>
+   </dependencies>
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5879227
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+build.patch
diff --git a/debian/replace-generate.sh b/debian/replace-generate.sh
new file mode 100644
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..68f09c0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+VERSION_FILE=jr-objects/src/main/java/com/fasterxml/jackson/jr/ob/PackageVersion.java
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	#FIXME Maven's replacer plugin doesn't work, why?
+	sh debian/replace-generate.sh $(VERSION_FILE)
+	dh_auto_configure
+
+override_dh_clean:
+	$(RM) $(VERSION_FILE)
+	dh_clean
+
+override_dh_installchangelogs:
+	dh_installchangelogs release-notes/VERSION
+
+get-orig-source:
+	uscan --download-current-version --force-download --repack --compression xz
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..654daea
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/jackson-jr-$1\.tar\.gz/ \
+  https://github.com/FasterXML/jackson-jr/tags .*/jackson-jr-parent-?(\d\S+)\.tar\.gz

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



More information about the pkg-java-commits mailing list