[jackson-dataformat-smile] 02/02: Initial Debianisation

Wolodja Wentland babilen-guest at alioth.debian.org
Fri Aug 23 16:15:03 UTC 2013


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

babilen-guest pushed a commit to branch master
in repository jackson-dataformat-smile.

commit 8b10f0d97a2b3789cbcfe0958e103e447fe30f15
Author: Wolodja Wentland <babilen at gmail.com>
Date:   Fri Aug 23 12:11:44 2013 +0100

    Initial Debianisation
---
 debian/README.source                               |    9 +++
 debian/changelog                                   |    5 ++
 debian/compat                                      |    1 +
 debian/control                                     |   68 ++++++++++++++++++++
 debian/copyright                                   |   35 ++++++++++
 .../libjackson2-dataformat-smile-doc.doc-base.api  |   10 +++
 debian/libjackson2-dataformat-smile-doc.install    |    2 +
 debian/libjackson2-dataformat-smile.classpath      |    1 +
 debian/libjackson2-dataformat-smile.poms           |   28 ++++++++
 debian/maven.cleanIgnoreRules                      |    1 +
 debian/maven.ignoreRules                           |    2 +
 debian/maven.properties                            |    5 ++
 debian/maven.publishedRules                        |    1 +
 debian/maven.rules                                 |    5 ++
 debian/replace-generate.sh                         |   34 ++++++++++
 debian/rules                                       |   19 ++++++
 debian/source/format                               |    1 +
 debian/watch                                       |    2 +
 18 files changed, 229 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..6535426
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about jackson-dataformat-smile
+------------------------------
+
+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..7d25bf5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jackson-dataformat-smile (2.2.2-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #720505)
+
+ -- Wolodja Wentland <debian at babilen5.org>  Thu, 22 Aug 2013 17:03:12 +0000
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..4a34a65
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,68 @@
+Source: jackson-dataformat-smile
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Hilko Bengen <bengen at debian.org>,
+ Wolodja Wentland <debian at babilen5.org>
+Build-Depends:
+ debhelper (>= 9),
+ default-jdk,
+ javahelper (>= 0.32),
+ maven-debian-helper (>= 1.6.5),
+ junit4,
+ libjackson2-core-java,
+ xmlstarlet
+Build-Depends-Indep:
+ libjackson2-databind-java,
+ default-jdk-doc,
+ libjackson2-core-java-doc,
+ libmaven-javadoc-plugin-java
+Standards-Version: 3.9.4
+Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/jackson-dataformat-smile
+Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/jackson-dataformat-smile
+Homepage: http://wiki.fasterxml.com/JacksonForSmile
+
+Package: libjackson2-dataformat-smile
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libjackson2-dataformat-smile-doc
+Description: fast and powerful JSON library for Java -- Smile dataformat
+ 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 Smile-("binary
+ JSON")-encoded data.
+
+Package: libjackson2-dataformat-smile-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libjackson2-dataformat-smile
+Description: Documentation for Jackson-dataformat-smile
+ 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-smile.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1e1bfa5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jackson-dataformat-smile
+Source: http://wiki.fasterxml.com/JacksonHome
+Comment: FasterXML used a dual licensing approach (Apache-2.0 or LGPL) [0]
+ for jackson 2 by making suitably licensed jar files available for download.
+ [1] Users were then free to choose the license they wanted by downloading
+ the respective jar.
+ .
+ The source code itself was, however, never explicitly licensed. After raising
+ this issue on the jackson-dev mailing list [2] FasterXML decided to license
+ future versions of jackson 2 under Apache-2.0 only [3]. In the case of
+ jackson-dataformat-smile a bug report has been opened on GitHub [4] which was
+ resolved quickly and an appropriate LICENSE and NOTICE file will be included
+ in the next release (2.2.3).
+ .
+ [0] http://wiki.fasterxml.com/JacksonLicensing
+ [1] http://wiki.fasterxml.com/JacksonDownload
+ [2] http://markmail.org/message/repexr3kb6gn4uam
+ [3] http://markmail.org/message/bwxz2hle5fhrhm3q
+     http://markmail.org/message/ckwelxnmoqlm5qr4
+ [4] https://github.com/FasterXML/jackson-dataformat-smile/issues/12
+
+Files: *
+Copyright: 2013, FasterXML, LLC, Seattle, USA <info at fasterxml.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2013, Wolodja Wentland <debian at babilen5.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-smile-doc.doc-base.api b/debian/libjackson2-dataformat-smile-doc.doc-base.api
new file mode 100644
index 0000000..83649d2
--- /dev/null
+++ b/debian/libjackson2-dataformat-smile-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libjackson2-dataformat-smile
+Title: API Javadoc for Jackson-dataformat-Smile
+Author: Jackson-dataformat-Smile developers
+Abstract: This is the API Javadoc provided for the
+ libjackson2-dataformat-smile library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjackson2-dataformat-smile/api/index.html
+Files: /usr/share/doc/libjackson2-dataformat-smile/api/*
diff --git a/debian/libjackson2-dataformat-smile-doc.install b/debian/libjackson2-dataformat-smile-doc.install
new file mode 100644
index 0000000..179faad
--- /dev/null
+++ b/debian/libjackson2-dataformat-smile-doc.install
@@ -0,0 +1,2 @@
+target/apidocs/* usr/share/doc/libjackson2-dataformat-smile/api
+
diff --git a/debian/libjackson2-dataformat-smile.classpath b/debian/libjackson2-dataformat-smile.classpath
new file mode 100644
index 0000000..bbc5c22
--- /dev/null
+++ b/debian/libjackson2-dataformat-smile.classpath
@@ -0,0 +1 @@
+usr/share/java/jackson-dataformat-smile.jar /usr/share/java/junit4.jar /usr/share/java/jackson-core.jar
diff --git a/debian/libjackson2-dataformat-smile.poms b/debian/libjackson2-dataformat-smile.poms
new file mode 100644
index 0000000..64b1188
--- /dev/null
+++ b/debian/libjackson2-dataformat-smile.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..40d1d22
--- /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.compiler.source=1.6
+maven.compiler.target=1.6
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..cd36e12
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,5 @@
+
+com.fasterxml.jackson.core jackson-core jar s/2\..*/2.x/ * *
+com.fasterxml.jackson.core jackson-databind jar s/2\..*/2.x/ * *
+com.fasterxml.jackson.dataformat jackson-dataformat-smile jar s/2\..*/2.x/ * *
+junit junit jar s/4\..*/4.x/ * *
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..d816069
--- /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/smile/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..1914725
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/FasterXML/jackson-dataformat-smile/releases .*/jackson-dataformat-smile-(\d[\d\.]*)\.tar\.gz

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



More information about the pkg-java-commits mailing list