--- libnanoxml2-java-2.2.3.dfsg.orig/debian/watch +++ libnanoxml2-java-2.2.3.dfsg/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 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/libnanoxml2-java-doc.javadoc +++ libnanoxml2-java-2.2.3.dfsg/debian/libnanoxml2-java-doc.javadoc @@ -0,0 +1 @@ +api /usr/share/doc/libnanoxml2-java/api --- libnanoxml2-java-2.2.3.dfsg.orig/debian/libnanoxml2-java.links +++ libnanoxml2-java-2.2.3.dfsg/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 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/copyright +++ libnanoxml2-java-2.2.3.dfsg/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Sveinung Kvilhaugsvik + 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 + and is licensed under the GPL, see +`/usr/share/common-licenses/GPL' or the license above if you prefer that. --- libnanoxml2-java-2.2.3.dfsg.orig/debian/libnanoxml2-java-doc.install +++ libnanoxml2-java-2.2.3.dfsg/debian/libnanoxml2-java-doc.install @@ -0,0 +1,2 @@ +Examples/* /usr/share/doc/libnanoxml2-java/examples + --- libnanoxml2-java-2.2.3.dfsg.orig/debian/libnanoxml2-java-doc.links +++ libnanoxml2-java-2.2.3.dfsg/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 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/compat +++ libnanoxml2-java-2.2.3.dfsg/debian/compat @@ -0,0 +1 @@ +5 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/origCleaner.sh +++ libnanoxml2-java-2.2.3.dfsg/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} --- libnanoxml2-java-2.2.3.dfsg.orig/debian/libnanoxml2-java.jlibs +++ libnanoxml2-java-2.2.3.dfsg/debian/libnanoxml2-java.jlibs @@ -0,0 +1 @@ +*.jar --- libnanoxml2-java-2.2.3.dfsg.orig/debian/rules +++ libnanoxml2-java-2.2.3.dfsg/debian/rules @@ -0,0 +1,123 @@ +#!/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 *.jar + rm *.jar + prename 's/bar/jar/' *.bar + + ${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 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/changelog +++ libnanoxml2-java-2.2.3.dfsg/debian/changelog @@ -0,0 +1,45 @@ +libnanoxml2-java (2.2.3.dfsg-4) unstable; urgency=low + + * Removed no longer needed work around for 567899 (Closes: #573697) + + -- Sveinung Kvilhaugsvik 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 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 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 Mon, 21 Jul 2008 18:54:43 +0000 --- libnanoxml2-java-2.2.3.dfsg.orig/debian/control +++ libnanoxml2-java-2.2.3.dfsg/debian/control @@ -0,0 +1,32 @@ +Source: libnanoxml2-java +Section: java +Priority: optional +Maintainer: Sveinung Kvilhaugsvik +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: default-jdk-doc, + default-jdk, + bnd, + perl, + javahelper +Standards-Version: 3.8.4.0 +Homepage: http://devkix.com/nanoxml.php + +Package: libnanoxml2-java +Architecture: all +Depends: default-jre-headless | java2-runtime-headless, ${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.