--- freehep-xml-2.1.2+dfsg1.orig/debian/control +++ freehep-xml-2.1.2+dfsg1/debian/control @@ -0,0 +1,25 @@ +Source: freehep-xml +Section: java +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: Giovanni Mascellani , + Gabriele Giacone <1o5g4r8o@gmail.com> +Build-Depends: debhelper (>= 7), cdbs, maven-debian-helper, default-jdk, quilt +Build-Depends-Indep: libfreehep-io-java, libfreehep-util-java, + libfreehep-swing-java, junit, libjdom1-java, libmaven-exec-plugin-java +Standards-Version: 3.8.4 +Vcs-Git: git://git.debian.org/git/pkg-java/freehep/freehep-xml.git +Vcs-Browser: http://git.debian.org/?p=pkg-java/freehep/freehep-xml.git +Homepage: http://java.freehep.org/ + +Package: libfreehep-xml-java +Architecture: all +Depends: ${misc:Depends}, ${maven:Depends}, openjdk-6-jre | java2-runtime +Recommends: ${maven:OptionalDepends} +Description: FreeHEP XML Library + This library provides tools to read and write XML and XHTML files. You can + write XML and XHTML files using a Writer-like interface, with additional + methods to add tags and attributes, or save and restore on object + configuration with XML. + . + FreeHEP is a collection of Java libraries used in High Energy Physics. --- freehep-xml-2.1.2+dfsg1.orig/debian/compat +++ freehep-xml-2.1.2+dfsg1/debian/compat @@ -0,0 +1 @@ +7 --- freehep-xml-2.1.2+dfsg1.orig/debian/maven.rules +++ freehep-xml-2.1.2+dfsg1/debian/maven.rules @@ -0,0 +1,3 @@ +org.codehaus.mojo exec-maven-plugin maven-plugin s/.*/1.1.1/ +junit junit jar s/.*/3.x/ * +s/jdom/org.jdom/ jdom jar s/.*/debian/ * --- freehep-xml-2.1.2+dfsg1.orig/debian/gbp.conf +++ freehep-xml-2.1.2+dfsg1/debian/gbp.conf @@ -0,0 +1,7 @@ + +[DEFAULT] +cleaner = fakeroot debian/rules clean +upstream-branch = upstream +debian-branch = build +pristine-tar = True + --- freehep-xml-2.1.2+dfsg1.orig/debian/copyright +++ freehep-xml-2.1.2+dfsg1/debian/copyright @@ -0,0 +1,23 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Name: FreeHEP XML +Maintainer: The FreeHEP team +Source: http://java.freehep.org/ + +Files: * +Copyright: 2000-2007, CERN, Geneva, Switzerland + 2000-2007, SLAC, Stanford, California, U.S.A. + 2000-2007, University of California Santa Cruz, U.S.A. +License: LGPL-2.1+ + On Debian GNU/Linux system you can find the complete text of the + LGPL-2.1 license in '/usr/share/common-licenses/LGPL-2.1' + No license files are included in upstream tarball but copyright holders + list is available at + + and adopted license at + +Files: debian/* +Copyright: 2010, Giovanni Mascellani + 2010, Gabriele Giacone <1o5g4r8o@gmail.com> +License: GPL-3+ + On Debian GNU/Linux system you can find the complete text of the + GPL-3 license in '/usr/share/common-licenses/GPL-3' --- freehep-xml-2.1.2+dfsg1.orig/debian/rules +++ freehep-xml-2.1.2+dfsg1/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +TG_BRANCHES = patch/XMLCharacterProperties.java + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/maven.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +-include /usr/share/topgit/tg2quilt.mk + +JAVA_HOME := /usr/lib/jvm/default-java + --- freehep-xml-2.1.2+dfsg1.orig/debian/maven.properties +++ freehep-xml-2.1.2+dfsg1/debian/maven.properties @@ -0,0 +1 @@ +maven.test.skip=false --- freehep-xml-2.1.2+dfsg1.orig/debian/README.source +++ freehep-xml-2.1.2+dfsg1/debian/README.source @@ -0,0 +1,39 @@ +Information about freehep-xml +----------------------------- + +DEBIANIZATION + +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. + + +QUILT + +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. Please see: + + /usr/share/doc/quilt/README.source + +for more information on how to apply the patches, modify patches, or +remove a patch. + + +REPACKAGING + +The original tarball for this package has been modified, because it +included some code with problematic copyright status. The following +files and directories were deleted: + * src/main/java/org/freehelp/xml/util/XMLCharacterProperties.java (Apache 1.1 + license, not GPL compatible); + * src/main/resources/org/freehep/xml/util/dtd/* (licensing terms unclear + and files not needed in the build process; updated versions + can be found on http://www.w3.org/). + +The removed code wasn't needed, or it was simply replaceable. See +quilt patches for replacing code. + --- freehep-xml-2.1.2+dfsg1.orig/debian/libfreehep-xml-java.poms +++ freehep-xml-2.1.2+dfsg1/debian/libfreehep-xml-java.poms @@ -0,0 +1 @@ +pom.xml --no-parent --- freehep-xml-2.1.2+dfsg1.orig/debian/watch +++ freehep-xml-2.1.2+dfsg1/debian/watch @@ -0,0 +1,2 @@ +# Watch file missing, because upstream releases are available only via +# SVN, but uscan is unable to read in a SVN repository. --- freehep-xml-2.1.2+dfsg1.orig/debian/changelog +++ freehep-xml-2.1.2+dfsg1/debian/changelog @@ -0,0 +1,17 @@ +freehep-xml (2.1.2+dfsg1-3) unstable; urgency=low + + * Moved default-jdk from Build-Depends-Indep to Build-Depends + + -- Gabriele Giacone <1o5g4r8o@gmail.com> Wed, 03 Mar 2010 23:13:23 +0100 + +freehep-xml (2.1.2+dfsg1-2) unstable; urgency=low + + * Removing unneeded patch for jdom. + + -- Giovanni Mascellani Sat, 27 Feb 2010 16:29:11 +0100 + +freehep-xml (2.1.2+dfsg1-1) unstable; urgency=low + + * Initial release (Closes: #564962) + + -- Gabriele Giacone <1o5g4r8o@gmail.com> Sat, 27 Feb 2010 12:32:13 +0100 --- freehep-xml-2.1.2+dfsg1.orig/debian/patches/series +++ freehep-xml-2.1.2+dfsg1/debian/patches/series @@ -0,0 +1 @@ +patch/XMLCharacterProperties.java.diff -p1 --- freehep-xml-2.1.2+dfsg1.orig/debian/patches/patch/XMLCharacterProperties.java.diff +++ freehep-xml-2.1.2+dfsg1/debian/patches/patch/XMLCharacterProperties.java.diff @@ -0,0 +1,99 @@ +From: Giovanni Mascellani +Subject: [PATCH] patch/XMLCharacterProperties.java + +Substitute for XMLCharacterProperties.java, which is not compatible with LGPL. + +Signed-off-by: Giovanni Mascellani + +--- + .../freehep/xml/util/XMLCharacterProperties.java | 80 ++++++++++++++++++++ + 1 files changed, 80 insertions(+), 0 deletions(-) + +diff --git a/src/main/java/org/freehep/xml/util/XMLCharacterProperties.java b/src/main/java/org/freehep/xml/util/XMLCharacterProperties.java +new file mode 100644 +index 0000000..25295cd +--- /dev/null ++++ b/src/main/java/org/freehep/xml/util/XMLCharacterProperties.java +@@ -0,0 +1,80 @@ ++/* ++ * Copyright 2010 by Giovanni Mascellani ++ * ++ * This class is meant as a substitute for the original XMLCharacterProperties ++ * in FreeHEP-XML, which is picked out from Xerces, but it licensed ++ * under Apache 1.1 license (GPL-incompatible). IT IS NOT A COMPLETE ++ * REPLACEMENT: it just implements the three methods needed by JAS Plotter. ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ * ++ */ ++ ++package org.freehep.xml.util; ++ ++public class XMLCharacterProperties { ++ ++ public static boolean isLetter(char c) { ++ return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')); ++ } ++ ++ public static boolean isDigit(char c) { ++ return (c >= '0') && (c <= '9'); ++ } ++ ++ /* ++ * [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+ ++ */ ++ public static boolean validVersionNum(String name) { ++ int len = name.length(); ++ if (len == 0) return false; ++ for (int i = 0; i < len; i++) { ++ char c = name.charAt(i); ++ if (!(isLetter(c) || isDigit(c) || c == '_' || c == '.' || c == ':' || c == '-')) return false; ++ } ++ return true; ++ } ++ ++ /* ++ * [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* ++ */ ++ public static boolean validEncName(String name) { ++ int len = name.length(); ++ if (len == 0) return false; ++ if (!isLetter(name.charAt(0))) return false; ++ for (int i = 1; i < len; i++) { ++ char c = name.charAt(i); ++ if (!(isLetter(c) || isDigit(c) || c == '.' || c == '_' || c == '-')) return false; ++ } ++ return true; ++ } ++ ++ /* ++ * [5] Name ::= (Letter | '_' | ':') (NameChar)* ++ */ ++ public static boolean validName(String name) { ++ int len = name.length(); ++ if (len == 0) return false; ++ char c = name.charAt(0); ++ if (!(isLetter(c) || c == '_' || c == ':')) return false; ++ for (int i = 1; i < len; i++) { ++ c = name.charAt(i); ++ if (!(isLetter(c) || isDigit(c) || c == '_' || c == '.' || c == ':' || c == '-')) return false; ++ } ++ return true; ++ } ++ ++} ++ +-- +tg: (6d7665d..) patch/XMLCharacterProperties.java (depends on: master)