[libnanoxml2-java] 02/02: Re-add debian/ dir after importing pristine-tar
Andreas Tille
tille at debian.org
Wed Dec 23 17:57:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libnanoxml2-java.
commit fac02e281e3b102b542aa3737e6ee992c59be03b
Author: Andreas Tille <tille at debian.org>
Date: Wed Dec 23 18:52:18 2015 +0100
Re-add debian/ dir after importing pristine-tar
---
debian/changelog | 63 ++++++++++++++++++
debian/compat | 1 +
debian/control | 36 +++++++++++
debian/copyright | 38 +++++++++++
debian/libnanoxml2-java-doc.install | 2 +
debian/libnanoxml2-java-doc.javadoc | 1 +
debian/libnanoxml2-java-doc.links | 2 +
debian/libnanoxml2-java.jlibs | 1 +
debian/libnanoxml2-java.links | 6 ++
debian/origCleaner.sh | 37 +++++++++++
debian/rules | 126 ++++++++++++++++++++++++++++++++++++
debian/source/format | 1 +
debian/watch | 6 ++
13 files changed, 320 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5273f26
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,63 @@
+libnanoxml2-java (2.2.3.dfsg-5) UNRELEASED; urgency=medium
+
+ [ Markus Koschany ]
+ * Team maintain the package in Debian Java maintainers so all members can
+ modify and upload it without asking first.
+ * Transition to bnd 2.1.0. (Closes: #805499)
+ * Do not depend on a Java runtime because the Java Policy does not require
+ this anymore.
+
+ [ Andreas Tille ]
+ * Move package to pkg-java repository as per private mail from Sveinung
+ Kvilhaugsvik
+ * source/format 3.0 quilt
+ * cme fix dpkg-control
+ * debhelper 9
+
+ -- Markus Koschany <apo at debian.org> Wed, 18 Nov 2015 21:05:35 +0100
+
+libnanoxml2-java (2.2.3.dfsg-4) unstable; urgency=low
+
+ * Removed no longer needed work around for 567899 (Closes: #573697)
+
+ -- Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net> Wed, 17 Mar 2010 02:01:04 +0100
+
+libnanoxml2-java (2.2.3.dfsg-3) unstable; urgency=low
+
+ * Depend on headless since full jre not needed
+ * Removed (C) from debian/copyright (Lintian fix)
+ * Added misc:Depends (Lintian fix)
+ * Changed section to java
+ * Use javahelper to shorten rules
+ + Use jh_build to build jars
+ + Use jh_installlibs to install jars
+ * Correct misunderstanding about Debian policy for naming jars
+ + Add links to old jar names in case someone used them
+ + Also link to how upstreams name the jars
+ * Should now follow Debian Policy 3.8.4.0
+ + Support nocheck in DEB_BUILD_OPTIONS
+ * depend on default-jdk-doc instead of classpath-doc (Closes: #567284)
+ * Don't build dep on default-jdk-builddep (pointed out by Matthew Johnson)
+ * Don't depend on openjdk as default (pointed out by Matthew Johnson)
+ * Use bnd to add OSGi metadata during build
+ * Use jh_installjavadoc to install and register javadocs
+ * Remove unused lines in clean target of rules
+
+ -- Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net> Fri, 05 Feb 2010 15:19:08 +0100
+
+libnanoxml2-java (2.2.3.dfsg-2) unstable; urgency=low
+
+ * Made description and copyright file more precise
+ * Build-Depends-Indep instead of Build-Depends (Lintian fix)
+ * Watchfile and homepage field updated (Closes: #504764)
+ * Fix FTBFS on Ubuntu (LP: #295686)
+
+ -- Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net> Sun, 24 Aug 2008 21:17:35 +0200
+
+libnanoxml2-java (2.2.3.dfsg-1) unstable; urgency=low
+
+ * Initial release (Closes: #478727)
+ * Removed generated files from upstream source
+ * Has watchfile
+
+ -- Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net> Mon, 21 Jul 2008 18:54:43 +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..52bfc50
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: libnanoxml2-java
+Maintainer: Debian Java maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net>
+Section: java
+Priority: optional
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: default-jdk-doc,
+ default-jdk,
+ bnd (>= 2.1.0),
+ perl,
+ javahelper
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/libnanoxml2-java.git
+Vcs-Git: git://anonscm.debian.org/pkg-java/libnanoxml2-java.git
+Homepage: http://devkix.com/nanoxml.php
+
+Package: libnanoxml2-java
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libnanoxml2-java-doc
+Description: small XML parser for Java
+ NanoXML is a (actually more than one) small XML parser for Java. It
+ provides the Java packages net.n3.nanoxml.*, net.n3.nanoxml.sax.* and
+ nanoxml.* in nanoxml2.jar, nanoxml2-sax.jar and nanoxml2-lite.jar.
+ The package nanoxml.* is source compatible with NanoXML 1 but is more
+ restrictive on what it will parse than NanoXML 1.
+
+Package: libnanoxml2-java-doc
+Architecture: all
+Section: doc
+Depends: default-jdk-doc,
+ ${misc:Depends}
+Description: documentation for libnanoxml2-java
+ NanoXML is a small XML parser for Java. This is the javadoc for it
+ (the Java packages net.n3.nanoxml.*, net.n3.nanoxml.sax.* and nanoxml.*)
+ and some examples.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a13dd64
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+This package was debianized by Sveinung Kvilhaugsvik
+<sveinung84 at users.sourceforge.net> on Wed, 23 Apr 2008 20:12:50 +0000.
+
+It was downloaded from http://nanoxml.cyberelf.be/
+It was modified to remove generated files.
+To reproduce call get-orig-source in debian/rules
+
+Upstream Author:
+
+ Marc De Scheemaecker
+
+Copyright:
+
+ Copyright ©2000-2002 Marc De Scheemaecker
+
+License:
+
+ Copyright ©2000-2002 Marc De Scheemaecker, All Rights Reserved.
+
+This software is provided 'as-is', without any express or implied warranty. In
+no event will the author be held liable for any damages arising from the use of
+this software.
+
+Permission is granted to anyone to use this software for any purpose, including
+commercial applications, and to alter it and redistribute it freely, subject to
+the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not claim
+ that you wrote the original software. If you use this software in a
+ product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+The Debian packaging is ©2008-2009, Sveinung Kvilhaugsvik
+<sveinung84 at users.sourceforge.net> and is licensed under the GPL, see
+`/usr/share/common-licenses/GPL' or the license above if you prefer that.
diff --git a/debian/libnanoxml2-java-doc.install b/debian/libnanoxml2-java-doc.install
new file mode 100644
index 0000000..b094a6e
--- /dev/null
+++ b/debian/libnanoxml2-java-doc.install
@@ -0,0 +1,2 @@
+Examples/* /usr/share/doc/libnanoxml2-java/examples
+
diff --git a/debian/libnanoxml2-java-doc.javadoc b/debian/libnanoxml2-java-doc.javadoc
new file mode 100644
index 0000000..2e2f46e
--- /dev/null
+++ b/debian/libnanoxml2-java-doc.javadoc
@@ -0,0 +1 @@
+api /usr/share/doc/libnanoxml2-java/api
diff --git a/debian/libnanoxml2-java-doc.links b/debian/libnanoxml2-java-doc.links
new file mode 100644
index 0000000..ec7a52d
--- /dev/null
+++ b/debian/libnanoxml2-java-doc.links
@@ -0,0 +1,2 @@
+/usr/share/doc/libnanoxml2-java/api /usr/share/doc/libnanoxml2-java-doc/api
+/usr/share/doc/libnanoxml2-java/examples /usr/share/doc/libnanoxml2-java-doc/examples
diff --git a/debian/libnanoxml2-java.jlibs b/debian/libnanoxml2-java.jlibs
new file mode 100644
index 0000000..d392f0e
--- /dev/null
+++ b/debian/libnanoxml2-java.jlibs
@@ -0,0 +1 @@
+*.jar
diff --git a/debian/libnanoxml2-java.links b/debian/libnanoxml2-java.links
new file mode 100644
index 0000000..a43472b
--- /dev/null
+++ b/debian/libnanoxml2-java.links
@@ -0,0 +1,6 @@
+/usr/share/java/nanoxml-sax-2.2.3.jar /usr/share/java/nanoxml2-2.2.3.jar
+/usr/share/java/nanoxml-lite-2.2.3.jar /usr/share/java/nanoxml2-lite-2.2.3.jar
+/usr/share/java/nanoxml-lite.jar /usr/share/java/nanoxml2-lite.jar
+/usr/share/java/nanoxml-sax-2.2.3.jar /usr/share/java/nanoxml2-sax-2.2.3.jar
+/usr/share/java/nanoxml-sax.jar /usr/share/java/nanoxml2-sax.jar
+/usr/share/java/nanoxml.jar /usr/share/java/nanoxml2.jar
diff --git a/debian/origCleaner.sh b/debian/origCleaner.sh
new file mode 100644
index 0000000..8ba3f07
--- /dev/null
+++ b/debian/origCleaner.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+# usage: origCleaner.sh ignord version deleteMe [tempfolder]
+
+# libnanoxml2-java_${2}.orig is not dsfg cleaned
+rm ${3} || echo No libnanoxml2-java_${2}.orig. Good...
+
+# TMPDIR is defined if called from get-orig-source and undefined if called from
+# uscan
+if [ -n "${4+x}" ] ; \
+ then TMPDIR=${4}; \
+ else TMPDIR=debian/orig.tmp; \
+fi
+mkdir ${TMPDIR} || exit 1
+
+# link uscan downloaded NanoXML, download it if not
+if [ -f ../NanoXML-${2}.tar.gz ] ; \
+ then ln ../NanoXML-${2}.tar.gz ${TMPDIR} || exit 1;
+ else (cd ${TMPDIR} && \
+ wget http://nanoxml.cyberelf.be/downloads/NanoXML-${2}.tar.gz) || \
+ exit 1; \
+fi
+
+(cd ${TMPDIR} &&
+tar -xzf NanoXML-${2}.tar.gz && \
+find NanoXML-${2} -iname *.jar -delete && \
+find NanoXML-${2} -iname *.pdf -delete && \
+rm -rf `find NanoXML-${2} -name HTML` && \
+mv NanoXML-${2} libnanoxml2-java-${2}.dfsg && \
+tar -czf libnanoxml2-java_${2}.dfsg.orig.tar.gz libnanoxml2-java-${2}.dfsg) || \
+exit 1
+
+if [ -n "${4+x}" ] ; \
+ then mv ${TMPDIR}/libnanoxml2-java_${2}.dfsg.orig.tar.gz . || exit 1; \
+ else mv ${TMPDIR}/libnanoxml2-java_${2}.dfsg.orig.tar.gz .. || exit 1; \
+fi
+
+rm -rf ${TMPDIR}
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2972c5e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,126 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+#
+# Modified by Sveinung Kvilhaugsvik. Any changes I have done are hereby
+# released under the GPL or the license of nanoxml as stated in copyright
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+JAVA_HOME?=/usr/lib/jvm/default-java
+JFLAGS?=-source 1.4 -nowarn
+
+SRCDIR := $(shell echo ./$(word $(words ${MAKEFILE_LIST}), ${MAKEFILE_LIST}) | \
+sed -r "s/debian\/rules$$//")
+VERSION := $(shell cd ${SRCDIR} && dpkg-parsechangelog | egrep '^Version:' | \
+cut -f 2 -d ' ' | sed -r 's/\.dfsg(.)*//g')
+
+NANOXML := nanoxml.jar
+LITE := nanoxml-lite.jar
+SAX := nanoxml-sax.jar
+
+#Architecture
+build: build-stamp
+
+build-stamp:
+ jh_build -o'${JFLAGS}' -N ${LITE} Sources/Lite/
+ jh_build -o'${JFLAGS}' -N ${NANOXML} Sources/Java/
+ CLASSPATH=${NANOXML} jh_build -o'${JFLAGS}' -N ${SAX} Sources/SAX/
+ jh_manifest -c /usr/share/java/${NANOXML} ${SAX}
+
+ bnd wrap --output $(NANOXML).tmp $(NANOXML)
+ bnd wrap --output $(LITE).tmp $(LITE)
+ bnd wrap --output $(SAX).tmp $(SAX)
+ mv $(NANOXML).tmp $(NANOXML)
+ mv $(LITE).tmp $(LITE)
+ mv $(SAX).tmp $(SAX)
+
+ ${JAVA_HOME}/bin/javadoc -author -link /usr/share/doc/default-jdk-doc/api -quiet \
+ -sourcepath Sources/Java/:Sources/Lite/:Sources/SAX/ -source 1.4 \
+ nanoxml net.n3.nanoxml net.n3.nanoxml.sax -d api
+ if [ $(filter nocheck, $(DEB_BUILD_OPTIONS)) ]; \
+ then echo "Disabeling tests"; \
+ else make -f debian/rules test; \
+ fi;
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp test
+
+ jh_clean
+ rm ${SAX} ${NANOXML} ${LITE} *.bar || echo "no jars to remove"
+ rm -rf api
+ rm -rf Test/*/*.class
+ rm -rf debian/orig.tmp || echo "No failed source fetch"
+
+ dh_clean
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+
+ jh_installlibs -i
+ jh_installjavadoc -plibnanoxml2-java-doc
+ dh_install -i
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build install
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch:
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install
+
+test:
+ set -e
+ cd Test/Lite && \
+ ${JAVA_HOME}/bin/javac ${JFLAGS} -cp .:../../${LITE} `find -iname *.java` && \
+ for TESTFILE in *.xml; \
+ do if [ "`${JAVA_HOME}/bin/java -cp .:../../${LITE} DumpXML_Lite $${TESTFILE}`" != "`cat $${TESTFILE}.out`" ]; \
+ then echo ${LITE} failed $${TESTFILE}; \
+ exit 1; \
+ fi; \
+ done
+
+ cd Test/Java && \
+ ${JAVA_HOME}/bin/javac ${JFLAGS} -cp .:../../${NANOXML} `find -iname *.java` && \
+ for TESTFILE in *.xml; \
+ do if [ "`${JAVA_HOME}/bin/java -cp .:../../${NANOXML} DumpXML $${TESTFILE}`" != "`cat $${TESTFILE}.out`" ] ;\
+ then echo ${NANOXML} failed $${TESTFILE}; \
+ exit 1; \
+ fi; \
+ done
+ touch $@
+
+get-orig-source:
+ set -e
+ sh ${SRCDIR}/debian/origCleaner.sh thisIsIgnored ${VERSION} alsoIgnored ${SRCDIR}/debian/orig.tmp
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..4656f3f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts=dversionmangle=s/\.dfsg(.)*//g \
+http://devkix.com/nanoxml.php \
+NanoXML-(.+)\.tar\.gz \
+debian \
+debian/origCleaner.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libnanoxml2-java.git
More information about the pkg-java-commits
mailing list