This is an automated email from the git hooks/post-receive script. tjaalton-guest pushed a commit to branch master in repository glassfish-fastinfoset.
commit da819c955304ea509d7ab3eae522c532785ab8ef Author: Timo Aaltonen <tjaal...@ubuntu.com> Date: Fri Jan 3 15:04:12 2014 +0200 initial packaging --- debian/README.source | 9 ++++ debian/changelog | 5 ++ debian/compat | 1 + debian/control | 25 ++++++++++ debian/copyright | 17 +++++++ debian/libglassfish-fastinfoset-java.poms | 32 +++++++++++++ debian/maven.cleanIgnoreRules | 1 + debian/maven.ignoreRules | 9 ++++ debian/maven.properties | 5 ++ debian/maven.publishedRules | 4 ++ debian/maven.rules | 10 ++++ debian/orig-tar.sh | 16 +++++++ debian/patches/series | 1 + debian/patches/xmlstreambuffer-1.5-support.diff | 62 +++++++++++++++++++++++++ debian/rules | 10 ++++ debian/source/format | 1 + debian/watch | 4 ++ 17 files changed, 212 insertions(+) diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..5896efd --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +Information about glassfish-fastinfoset +------------------------------ + +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..d4c85f2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +glassfish-fastinfoset (1.2.12-1) UNRELEASED; urgency=low + + * Initial release (Closes: #734061) + + -- Ade Lee <a...@redhat.com> Sun, 01 Dec 2013 23:49:16 -0500 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..24abfb4 --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: glassfish-fastinfoset +Section: java +Priority: optional +Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org> +Uploaders: Ade Lee <a...@redhat.com> +Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.5) +Build-Depends-Indep: libstax-java, libxmlstreambuffer-java, libxsom-java, junit4 +Standards-Version: 3.9.5 +Vcs-Git: git://anonscm.debian.org/pkg-java/glassfish-fastinfoset.git +Vcs-Browser: http://anonscm.debian.org/git/pkg-java/glassfish-fastinfoset.git +Homepage: http://fi.java.net + +Package: libglassfish-fastinfoset-java +Architecture: all +Depends: ${misc:Depends}, ${maven:Depends} +Recommends: ${maven:OptionalDepends} +Description: Java library implementing the Fast Infoset standard + Fast Infoset specifies a standardized binary encoding for the XML Information + Set. An XML infoset (such as a DOM tree, StAX events or SAX events in + programmatic representations) may be serialized to an XML 1.x document or, as + specified by the Fast Infoset standard, may be serialized to a fast infoset + document. + . + Fast infoset documents are generally smaller in size and faster to + parse and serialize than equivalent XML documents. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0892d5d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,17 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fastinfoset-project +Source: http://fi.java.net + +Files: * +Copyright: 2013, Oracle Corpration +License: Apache-2.0 + +Files: debian/* +Copyright: 2013, Ade Lee <a...@redhat.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/libglassfish-fastinfoset-java.poms b/debian/libglassfish-fastinfoset-java.poms new file mode 100644 index 0000000..4b0998d --- /dev/null +++ b/debian/libglassfish-fastinfoset-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 +fastinfoset/pom.xml --has-package-version +roundtrip-tests/pom.xml --ignore +utilities/pom.xml --has-package-version +samples/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..4574a6b --- /dev/null +++ b/debian/maven.ignoreRules @@ -0,0 +1,9 @@ + +com.sun.xml.fastinfoset FastInfosetRoundTripTests jar * * * +com.sun.xml.fastinfoset FastInfosetSamples jar * * * +org.apache.maven.plugins maven-javadoc-plugin * * * * +org.apache.maven.plugins maven-jxr-plugin * * * * +org.apache.maven.plugins maven-project-info-reports-plugin * * * * +org.apache.maven.plugins maven-release-plugin * * * * +org.apache.maven.wagon wagon-webdav * * * * +org.codehaus.mojo findbugs-maven-plugin * * * * diff --git a/debian/maven.properties b/debian/maven.properties new file mode 100644 index 0000000..c67a92a --- /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 + +project.build.sourceEncoding=UTF-8 diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules new file mode 100644 index 0000000..71d140d --- /dev/null +++ b/debian/maven.publishedRules @@ -0,0 +1,4 @@ + +com.sun.xml.fastinfoset FastInfoset jar s/1\..*/1.x/ * * +com.sun.xml.fastinfoset FastInfosetUtilities jar s/1\..*/1.x/ * * +com.sun.xml.fastinfoset fastinfoset-project pom s/1\..*/1.x/ * * diff --git a/debian/maven.rules b/debian/maven.rules new file mode 100644 index 0000000..c4cd101 --- /dev/null +++ b/debian/maven.rules @@ -0,0 +1,10 @@ + +com.sun.xml.fastinfoset FastInfoset jar s/1\..*/1.x/ * * +com.sun.xml.fastinfoset FastInfosetUtilities jar s/1\..*/1.x/ * * +com.sun.xml.fastinfoset fastinfoset-project pom s/1\..*/1.x/ * * +com.sun.xml.stream.buffer streambuffer jar s/0.7/1.5.1/ * * +com.sun.xml.stream.buffer streambuffer jar s/1\..*/1.x/ * * +com.sun.xsom xsom jar s/.*/debian/ * * +junit junit jar s/4\..*/4.x/ * * +stax stax-api jar s/1.0/1.0.1/ * * +s/javax.xml.bind/stax/ s/jsr173_api/stax-api/ * s/1.0/1.0.1/ * * diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh new file mode 100755 index 0000000..7934512 --- /dev/null +++ b/debian/orig-tar.sh @@ -0,0 +1,16 @@ +#!/bin/sh -e + +VERSION=$2 +TAR=../glassfish-fastinfoset_$VERSION.orig.tar.gz +DIR=glassfish-fastinfoset-$VERSION +TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta)/-\1-/;s/\./_/g') + +svn export https://svn.java.net/svn/fi~svn/tags/${TAG} $DIR +GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' --exclude 'roundtrip-tests' $DIR +rm -rf $DIR ../$TAG + +# move to directory 'tarballs' +if [ -r .svn/deb-layout ]; then + . .svn/deb-layout + mv $TAR $origDir && echo "moved $TAR to $origDir" +fi diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..9c6cb83 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +xmlstreambuffer-1.5-support.diff diff --git a/debian/patches/xmlstreambuffer-1.5-support.diff b/debian/patches/xmlstreambuffer-1.5-support.diff new file mode 100644 index 0000000..eb898d3 --- /dev/null +++ b/debian/patches/xmlstreambuffer-1.5-support.diff @@ -0,0 +1,62 @@ +--- a/utilities/src/main/java/com/sun/xml/fastinfoset/streambuffer/FastInfosetWriterSAXBufferProcessor.java 2011-03-30 23:52:37.000000000 +0200 ++++ b/utilities/src/main/java/com/sun/xml/fastinfoset/streambuffer/FastInfosetWriterSAXBufferProcessor.java-gil 2012-03-31 14:44:06.180707216 +0200 +@@ -71,8 +71,8 @@ + public final void process(FastInfosetWriter writer) throws SAXException { + _writer = writer; + +- final int item = readStructure(); +- switch(_eiiStateTable[item]) { ++ final int item = getEIIState(readStructure()); ++ switch(item) { + case STATE_DOCUMENT: + processDocument(); + break; +@@ -123,8 +123,8 @@ + boolean firstElementHasOccured = false; + int item; + do { +- item = readStructure(); +- switch(_eiiStateTable[item]) { ++ item = getEIIState(readStructure()); ++ switch(item) { + case STATE_ELEMENT_U_LN_QN: + firstElementHasOccured = true; + processElement(readStructureString(), readStructureString(), readStructureString()); +@@ -186,8 +186,8 @@ + } while(item != T_END || !firstElementHasOccured); + + while(item != T_END) { +- item = readStructure(); +- switch(_eiiStateTable[item]) { ++ item = getEIIState(readStructure()); ++ switch(item) { + case STATE_COMMENT_AS_CHAR_ARRAY_SMALL: + { + final int length = readStructure(); +@@ -244,7 +244,7 @@ + } + + do { +- item = _eiiStateTable[readStructure()]; ++ item = getEIIState(readStructure()); + switch(item) { + case STATE_ELEMENT_U_LN_QN: + processElement(readStructureString(), readStructureString(), readStructureString()); +@@ -365,7 +365,7 @@ + + private int processNamespaceAttributes(int item) throws SAXException { + do { +- switch(_niiStateTable[item]) { ++ switch(getNIIState(item)) { + case STATE_NAMESPACE_ATTRIBUTE: + // Undeclaration of default namespace + processNamespaceAttribute("", ""); +@@ -398,7 +398,7 @@ + + private void processAttributes(int item) throws SAXException { + do { +- switch(_aiiStateTable[item]) { ++ switch(getAIIState(item)) { + case STATE_ATTRIBUTE_U_LN_QN: + _attributes.addAttribute(readStructureString(), readStructureString(), readStructureString(), readStructureString(), readContentString()); + break; diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..92d3665 --- /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:javadoc 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..a8a93c9 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts="uversionmangle=s/-(alpha|beta)-/~$1/;s/_/\./g" \ + https://svn.java.net/svn/fi~svn/tags/ \ + (\d.*)/ debian debian/orig-tar.sh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/glassfish-fastinfoset.git _______________________________________________ pkg-java-commits mailing list pkg-java-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits