--- tagsoup-1.2.orig/debian/rules +++ tagsoup-1.2/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +# debian/rules for tagsoup + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/ant.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +PACKAGE := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ') +VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | cut -f1 -d-) + +JAVA_HOME := /usr/lib/jvm/default-java + +DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 +DEB_ANT_BUILD_TARGET := dist docs-api +API_DOCS := tagsoup-$(VERSION)/doc/api + + +get-orig-source: + mkdir orig_tmp + cd orig_tmp && \ + wget http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-$(VERSION)-src.zip && \ + unzip tagsoup-$(VERSION)-src.zip && \ + mv tagsoup-$(VERSION) tagsoup-$(VERSION).orig && \ + tar czf ../../tagsoup_$(VERSION).orig.tar.gz --exclude=.svn tagsoup-$(VERSION).orig + rm -rf orig_tmp + + +binary-post-install/lib$(PACKAGE)-java:: + dh_install -plib$(PACKAGE)-java dist/lib/$(PACKAGE)-$(VERSION).jar usr/share/java + dh_link -plib$(PACKAGE)-java usr/share/java/$(PACKAGE)-$(VERSION).jar usr/share/java/$(PACKAGE).jar + dh_installchangelogs CHANGES + +binary-post-install/lib$(PACKAGE)-java-doc:: + dh_install -plib$(PACKAGE)-java-doc docs/api usr/share/doc/lib$(PACKAGE)-java --- tagsoup-1.2.orig/debian/copyright +++ tagsoup-1.2/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Paul Cager on +Sat, 18 Nov 2006 23:12:15 +0000 + +The Debian packaging is Copyright (C) 2006 Paul Cager and is licensed under +the GNU General Public License version 2. On Debian systems, the complete text +of the GNU General Public -License version 2 can be found in +`/usr/share/common-licenses/GPL-2'. + +It was downloaded from http://home.ccil.org/~cowan/XML/tagsoup/ + +Upstream Author: John Cowan + Tatu Saloranta + +Copyright: (C) 2005-2008 John Cowan + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +On Debian systems the Apache License, Version 2.0 can be found in the +file `/usr/share/common-licenses/Apache-2.0'. --- tagsoup-1.2.orig/debian/watch +++ tagsoup-1.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-(.*)-src.zip --- tagsoup-1.2.orig/debian/manpages +++ tagsoup-1.2/debian/manpages @@ -0,0 +1 @@ +tagsoup.1 --- tagsoup-1.2.orig/debian/compat +++ tagsoup-1.2/debian/compat @@ -0,0 +1 @@ +7 --- tagsoup-1.2.orig/debian/libtagsoup-java-doc.doc-base +++ tagsoup-1.2/debian/libtagsoup-java-doc.doc-base @@ -0,0 +1,9 @@ +Document: libtagsoup-java +Title: API Javadoc for tagsoup +Author: tagsoup developers +Abstract: This is the API Javadoc provided by the tagsoup library. +Section: Programming + +Format: HTML +Index: /usr/share/doc/libtagsoup-java/api/index.html +Files: /usr/share/doc/libtagsoup-java/api/* --- tagsoup-1.2.orig/debian/changelog +++ tagsoup-1.2/debian/changelog @@ -0,0 +1,59 @@ +tagsoup (1.2-2ubuntu1) natty; urgency=low + + * Build-depend on ant1.7 instead of ant. + + -- Matthias Klose Sat, 09 Apr 2011 23:04:22 +0000 + +tagsoup (1.2-2) unstable; urgency=low + + * (Build-)Depends on default-jdk (Closes: #526303). + * Rever to /usr/share/common-licenses/Apache-2.0 in debian/copyright. + * Build-Depends on debhelper >= 7. + * Let all packages depend on ${misc:Depends}. + * Moved package to section 'java'. + * Added myself to Uploaders. + * Updated Standards-Version to 3.8.3. + + -- Michael Koch Wed, 16 Sep 2009 22:59:22 +0200 + +tagsoup (1.2-1) unstable; urgency=low + + * New upstream release. + * Standards version 3.7.3. + * Added new Homepage and svn control fields. + * Upstream license changed to Apache 2. + + -- Paul Cager Mon, 07 Jan 2008 22:24:24 +0000 + +tagsoup (1.1.3-1) unstable; urgency=low + + * New upstream release. + - Fixed Saxon crash with a NullPointerException when processing a second + document. + - Fixed bug in CDATAElementsFeature. + - Added JAXP support - Tatu Saloranta's JAXP package. + * Sanitised rules file. + + -- Paul Cager Sun, 13 May 2007 20:28:44 +0100 + +tagsoup (1.1-1) experimental; urgency=low + + * New upstream release. + + -- Paul Cager Thu, 22 Mar 2007 20:32:37 +0000 + +tagsoup (1.0.4-1) experimental; urgency=low + + * New upstream release. + * Changed to debhelper version 5. + * Split off a "-doc" package. + * Switched to pkg-java maintainer. + * Removed hard-coded version numbers from "install" and "links" files. + + -- Paul Cager Mon, 26 Feb 2007 15:52:03 +0000 + +tagsoup (1.0.1-1) unstable; urgency=low + + * Initial Release. Closes: #359170 + + -- Paul Cager Sat, 18 Nov 2006 23:12:15 +0000 --- tagsoup-1.2.orig/debian/control +++ tagsoup-1.2/debian/control @@ -0,0 +1,46 @@ +Source: tagsoup +Section: java +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: Paul Cager , Michael Koch +Build-Depends: ant1.7, debhelper (>= 7), cdbs (>= 0.4.5.3), default-jdk +Build-Depends-Indep: ant1.7-optional, libxalan2-java +Standards-Version: 3.8.3 +Homepage: http://home.ccil.org/~cowan/XML/tagsoup/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/tagsoup/ +Vcs-Svn: svn+ssh://svn.debian.org/svn/pkg-java/trunk/tagsoup + +Package: libtagsoup-java +Architecture: all +Depends: ${misc:Depends} +Suggests: libtagsoup-java-doc +Description: SAX-compliant parser for real-life HTML + TagSoup, a SAX-compliant parser written in Java that, instead of parsing + well-formed or valid XML, parses HTML as it is found in the wild: poor, + nasty and brutish, though quite often far from short. TagSoup is designed + for people who have to process this stuff using some semblance of a + rational application design. + . + By providing a SAX interface, it allows standard XML tools to be applied + to even the worst HTML. TagSoup also includes a command-line processor + that reads HTML files and can generate either clean HTML or well-formed + XML that is a close approximation to XHTML. + . + TagSoup is designed as a parser, not a whole application; it isn't + intended to permanently clean up bad HTML, as HTML Tidy does, only to + parse it on the fly. Therefore, it does not convert presentation HTML + to CSS or anything similar. It does guarantee well-structured results: + tags will wind up properly nested, default attributes will + appear appropriately, and so on. + +Package: libtagsoup-java-doc +Architecture: all +Section: doc +Depends: classpath-doc, ${misc:Depends} +Suggests: libtagsoup-java +Description: API Documentation for TagSoup + Documentation for TagSoup, a SAX-compliant parser written in Java that instead + of parsing well-formed or valid XML, parses HTML as it is found in the wild: + poor, nasty and brutish, though quite often far from short. TagSoup is designed + for people who have to process this stuff using some semblance of a + rational application design.