[libnanoxml2-java] 02/09: Imported Debian patch 2.2.3.dfsg-1

Andreas Tille tille at debian.org
Wed Dec 23 17:43:34 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 48e68e83c9b90ab2186fc6a4268e57778a1b4140
Author: Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net>
Date:   Mon Jul 21 18:54:43 2008 +0000

    Imported Debian patch 2.2.3.dfsg-1
---
 debian/changelog                    |   7 ++
 debian/compat                       |   1 +
 debian/control                      |  29 +++++++++
 debian/copyright                    |  38 +++++++++++
 debian/libnanoxml2-java-doc.install |   3 +
 debian/libnanoxml2-java-doc.links   |   2 +
 debian/libnanoxml2-java.install     |   1 +
 debian/libnanoxml2-java.links       |   4 ++
 debian/origCleaner.sh               |  37 +++++++++++
 debian/rules                        | 125 ++++++++++++++++++++++++++++++++++++
 debian/watch                        |   5 ++
 11 files changed, 252 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dcbaf0d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+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..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8c92c87
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: libnanoxml2-java
+Section: libs
+Priority: optional
+Maintainer: Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net>
+Build-Depends: debhelper (>= 5),
+               classpath-doc,
+               default-jdk-builddep
+Standards-Version: 3.8.0
+Homepage: http://nanoxml.cyberelf.be/
+
+Package: libnanoxml2-java
+Architecture: all
+Depends: openjdk-6-jre | java2-runtime
+Suggests: libnanoxml2-java-doc
+Description: small XML parser for Java
+ NanoXML is a (actually more than one) small XML parser for Java.
+ Provides the Java packages net.n3.nanoxml.*, net.n3.nanoxml.sax.* and
+ nanoxml.* in different jars.
+ 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: classpath-doc
+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..261006d
--- /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 a jar.
+To reproduce call get-orig-source in debian/rules
+
+Upstream Author: 
+
+    Marc De Scheemaecker
+
+Copyright: 
+
+    Copyright (C) 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 (C) 2008, 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..25a521a
--- /dev/null
+++ b/debian/libnanoxml2-java-doc.install
@@ -0,0 +1,3 @@
+api /usr/share/doc/libnanoxml2-java/
+Examples/* /usr/share/doc/libnanoxml2-java/examples
+
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.install b/debian/libnanoxml2-java.install
new file mode 100644
index 0000000..e93b983
--- /dev/null
+++ b/debian/libnanoxml2-java.install
@@ -0,0 +1 @@
+*.jar /usr/share/java
diff --git a/debian/libnanoxml2-java.links b/debian/libnanoxml2-java.links
new file mode 100644
index 0000000..74ba0a0
--- /dev/null
+++ b/debian/libnanoxml2-java.links
@@ -0,0 +1,4 @@
+/usr/share/java/nanoxml2-2.2.3.jar /usr/share/java/nanoxml2.jar
+/usr/share/java/nanoxml2-lite-2.2.3.jar /usr/share/java/nanoxml2-lite.jar
+/usr/share/java/nanoxml2-sax-2.2.3.jar /usr/share/java/nanoxml2-sax.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..b61abea
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,125 @@
+#!/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?=/usr/lib/jvm/default-java/bin/java
+JAVAC?=/usr/lib/jvm/default-java/bin/javac
+JAR?=/usr/lib/jvm/default-java/bin/jar
+JFLAGS?=-source 1.4 -nowarn
+JAVADOC?=/usr/lib/jvm/default-java/bin/javadoc
+
+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 := nanoxml2-${VERSION}.jar
+LITE := nanoxml2-lite-${VERSION}.jar
+SAX := nanoxml2-sax-${VERSION}.jar
+
+#Architecture 
+build: build-stamp test
+
+build-stamp:
+	(cd Sources/Lite && \
+	${JAVAC} ${JFLAGS} -d ../../classes/Lite `find -iname *.java`)
+	(cd classes/Lite && \
+	${JAR} cf ../../${LITE} * )
+	(cd Sources/Java && \
+	${JAVAC} ${JFLAGS} -d ../../classes/Java `find -iname *.java`)
+	(cd classes/Java && ${JAR} cf ../../${NANOXML} * )
+	(cd Sources/SAX && ${JAVAC} ${JFLAGS} -d ../../classes/SAX \
+	-cp ../../${NANOXML} `find -iname *.java`)
+	(cd classes/SAX && \
+	echo Class-Path: /usr/share/java/${NANOXML} >> manifest && \
+	${JAR} cf ../../${SAX} net  -m manifest)
+	${JAVADOC} -author -link /usr/share/doc/classpath-doc/api/ -quiet \
+	-sourcepath Sources/Java/:Sources/Lite/:Sources/SAX/ -validhtml \
+	nanoxml net.n3.nanoxml net.n3.nanoxml.sax -d api
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp test
+
+	rm -rf classes || echo "no classes to remove"
+	rm ${SAX} ${NANOXML} ${LITE} || echo "no jars to remove"
+	rm -rf api
+	rm -rf debian/libnanoxml2-java-docs || echo "no old bin to remove"
+	rm -rf debian/libnanoxml2-java || echo "no old bin to remove"
+	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 
+
+	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 && \
+	${JAVAC} ${JFLAGS} -cp .:../../${LITE} `find -iname *.java` && \
+	for TESTFILE in *.xml; \
+		do if [ "`${JAVA} -cp .:../../${LITE} DumpXML_Lite $${TESTFILE}`" != "`cat $${TESTFILE}.out`" ]; \
+		then	echo ${LITE} failed $${TESTFILE}; \
+			exit 1; \
+		fi; \
+	done
+
+	cd Test/Java && \
+	${JAVAC} ${JFLAGS} -cp .:../../${NANOXML} `find -iname *.java` && \
+	for TESTFILE in *.xml; \
+		do if [ "`${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/watch b/debian/watch
new file mode 100644
index 0000000..1a242ac
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=dversionmangle=s/\.dfsg(.)*//g \
+http://nanoxml.cyberelf.be/downloads/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