[jackson-dataformat-cbor] 01/07: Imported Debian patch 2.4.3-1

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Apr 11 12:33:54 UTC 2016


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

ebourg-guest pushed a commit to branch master
in repository jackson-dataformat-cbor.

commit 469e00fe7f52f058c405ed86f1017f2c23f53dc5
Author: Hilko Bengen <bengen at debian.org>
Date:   Wed Oct 8 21:32:08 2014 +0200

    Imported Debian patch 2.4.3-1
---
 debian/README.source                               |  9 +++
 debian/changelog                                   |  5 ++
 debian/compat                                      |  1 +
 debian/control                                     | 65 ++++++++++++++++++++++
 debian/copyright                                   | 16 ++++++
 .../libjackson2-dataformat-cbor-doc.doc-base.api   | 10 ++++
 debian/libjackson2-dataformat-cbor-doc.install     |  2 +
 debian/libjackson2-dataformat-cbor.classpath       |  1 +
 debian/libjackson2-dataformat-cbor.poms            | 28 ++++++++++
 debian/maven.cleanIgnoreRules                      |  1 +
 debian/maven.ignoreRules                           |  2 +
 debian/maven.properties                            |  6 ++
 debian/maven.publishedRules                        |  2 +
 debian/maven.rules                                 |  7 +++
 debian/patches/depend-on-junit.diff                | 18 ++++++
 debian/patches/fix-bundle-build.diff               | 17 ++++++
 debian/patches/series                              |  2 +
 debian/replace-generate.sh                         | 34 +++++++++++
 debian/rules                                       | 19 +++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  2 +
 21 files changed, 248 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..42c42a2
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about jackson-dataformat-cbor
+------------------------------
+
+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..f7563bb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jackson-dataformat-cbor (2.4.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #764439)
+
+ -- Hilko Bengen <bengen at debian.org>  Wed, 08 Oct 2014 21:32:08 +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..54e83cc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,65 @@
+Source: jackson-dataformat-cbor
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Hilko Bengen <bengen at debian.org>,
+Build-Depends: debhelper (>= 9),
+               default-jdk,
+               javahelper (>= 0.32),
+               junit4,
+               libjackson2-core-java (>= 2.4.2),
+               libmaven-bundle-plugin-java,
+               maven-debian-helper (>= 1.6.5),
+               xmlstarlet
+Build-Depends-Indep: default-jdk-doc,
+                     libjackson2-core-java-doc,
+                     libjackson2-databind-java (>= 2.4.2),
+                     libmaven-javadoc-plugin-java
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/jackson-dataformat-cbor.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/jackson-dataformat-cbor.git
+Homepage: https://github.com/FasterXML/jackson-dataformat-cbor
+
+Package: libjackson2-dataformat-cbor
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libjackson2-dataformat-cbor-doc
+Description: Jackson data format module for RfC7049 Concise Binary Object Representation
+ The Jackson Data Processor is a multi-purpose Java library for processing
+ JSON. Jackson aims to be the best possible combination of fast, correct,
+ lightweight, and ergonomic for developers. It offers three alternative methods
+ for processing JSON:
+ .
+  * Streaming API inspired by StAX
+  * Tree Model
+  * Data Binding converts JSON to and from POJOs
+ .
+ In addition to the core library, there are numerous extension that provide
+ additional functionality such as additional data formats beyond JSON,
+ additional data types or JVM languages.
+ .
+ This package contains an extension for reading and writing "Concise
+ Binary Object Representation (CBOR)" as specified in RfC7049.
+
+Package: libjackson2-dataformat-cbor-doc
+Architecture: all
+Section: doc
+Depends: ${maven:DocDepends}, ${misc:Depends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libjackson2-dataformat-cbor
+Description: Documentation for jackson-dataformat-cbor
+ The Jackson Data Processor is a multi-purpose Java library for processing
+ JSON. Jackson aims to be the best possible combination of fast, correct,
+ lightweight, and ergonomic for developers. It offers three alternative methods
+ for processing JSON:
+ .
+  * Streaming API inspired by StAX
+  * Tree Model
+  * Data Binding converts JSON to and from POJOs
+ .
+ In addition to the core library, there are numerous extension that provide
+ additional functionality such as additional data formats beyond JSON,
+ additional data types or JVM languages.
+ .
+ This package contains the API documentation of libjackson2-dataformat-cbor.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..95539a1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: jackson-dataformat-cbor
+Source: https://github.com/FasterXML/jackson-dataformat-cbor
+
+Files: *
+Copyright: 2014, FasterXML, LLC, Seattle, USA <info at fasterxml.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2013, Wolodja Wentland <debian at babilen5.org>
+           2014, Hilko Bengen <bengen at debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+  On Debian systems you can find the complete text of the
+  Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libjackson2-dataformat-cbor-doc.doc-base.api b/debian/libjackson2-dataformat-cbor-doc.doc-base.api
new file mode 100644
index 0000000..2a56cbd
--- /dev/null
+++ b/debian/libjackson2-dataformat-cbor-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libjackson2-dataformat-cbor
+Title: API Javadoc for Jackson-dataformat-Cbor
+Author: Jackson-dataformat-Cbor developers
+Abstract: This is the API Javadoc provided for the
+ libjackson2-dataformat-cbor library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjackson2-dataformat-cbor/api/index.html
+Files: /usr/share/doc/libjackson2-dataformat-cbor/api/*
diff --git a/debian/libjackson2-dataformat-cbor-doc.install b/debian/libjackson2-dataformat-cbor-doc.install
new file mode 100644
index 0000000..acb103c
--- /dev/null
+++ b/debian/libjackson2-dataformat-cbor-doc.install
@@ -0,0 +1,2 @@
+
+target/apidocs/* usr/share/doc/libjackson2-dataformat-cbor/api
diff --git a/debian/libjackson2-dataformat-cbor.classpath b/debian/libjackson2-dataformat-cbor.classpath
new file mode 100644
index 0000000..e31d990
--- /dev/null
+++ b/debian/libjackson2-dataformat-cbor.classpath
@@ -0,0 +1 @@
+usr/share/java/jackson-dataformat-cbor.jar /usr/share/java/junit4.jar /usr/share/java/jackson-core.jar
diff --git a/debian/libjackson2-dataformat-cbor.poms b/debian/libjackson2-dataformat-cbor.poms
new file mode 100644
index 0000000..64b1188
--- /dev/null
+++ b/debian/libjackson2-dataformat-cbor.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 --no-parent --has-package-version --java-lib
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..857aa68
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,2 @@
+
+com.google.code.maven-replacer-plugin replacer * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..b3705b5
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,6 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+maven.compiler.source=1.6
+maven.compiler.target=1.6
+project.build.sourceEncoding=UTF-8
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..dec561f
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,2 @@
+
+com.fasterxml.jackson.dataformat jackson-dataformat-cbor bundle s/2\..*/2.x/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..95839de
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,7 @@
+
+com.fasterxml.jackson.core jackson-core bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-core jar s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind bundle s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind jar s/2\..*/2.x/ * *
+com.fasterxml.jackson.dataformat jackson-dataformat-cbor bundle s/2\..*/2.x/ * *
+junit junit jar s/4\..*/4.x/ * *
diff --git a/debian/patches/depend-on-junit.diff b/debian/patches/depend-on-junit.diff
new file mode 100644
index 0000000..988a326
--- /dev/null
+++ b/debian/patches/depend-on-junit.diff
@@ -0,0 +1,18 @@
+Index: jackson-dataformat-cbor/pom.xml
+===================================================================
+--- jackson-dataformat-cbor.orig/pom.xml
++++ jackson-dataformat-cbor/pom.xml
+@@ -59,6 +59,13 @@ encoded data using Jackson abstractions
+       <version>${version.jackson.core}</version>
+       <scope>test</scope>
+     </dependency>
++
++    <dependency>
++      <groupId>junit</groupId>
++      <artifactId>junit</artifactId>
++      <version>4.11</version>
++      <scope>test</scope>
++    </dependency>
+   </dependencies>
+ 
+   <build>
diff --git a/debian/patches/fix-bundle-build.diff b/debian/patches/fix-bundle-build.diff
new file mode 100644
index 0000000..ed71331
--- /dev/null
+++ b/debian/patches/fix-bundle-build.diff
@@ -0,0 +1,17 @@
+Index: jackson-dataformat-cbor/pom.xml
+===================================================================
+--- jackson-dataformat-cbor.orig/pom.xml
++++ jackson-dataformat-cbor/pom.xml
+@@ -74,6 +74,12 @@ encoded data using Jackson abstractions
+           </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/series b/debian/patches/series
new file mode 100644
index 0000000..2460051
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix-bundle-build.diff
+depend-on-junit.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..1a19c06
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+VERSION_FILE=src/main/java/com/fasterxml/jackson/dataformat/cbor/PackageVersion.java
+
+%:
+	dh $@ --buildsystem=maven --with javahelper
+
+override_dh_auto_configure:
+	sh debian/replace-generate.sh $(VERSION_FILE)
+	dh_auto_configure
+
+override_dh_auto_clean:
+	rm -f $(VERSION_FILE)
+	dh_auto_clean
+
+override_dh_installchangelogs:
+	dh_installchangelogs release-notes/VERSION
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..b5b6fa3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/FasterXML/jackson-dataformat-cbor/releases .*/jackson-dataformat-cbor-(\d[\d\.]*)\.tar\.gz

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



More information about the pkg-java-commits mailing list