debian/0000755000000000000000000000000011767633223007200 5ustar debian/control0000644000000000000000000000133111664311312010565 0ustar Source: stylebook Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Michael Koch , Jakub Adam Build-Depends: debhelper (>= 8) Build-Depends-Indep: default-jdk, ant, javahelper (>= 0.33~), libxerces2-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/stylebook Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/stylebook/ Package: libstylebook-java Architecture: all Depends: libxerces2-java, ${misc:Depends} Description: XML application for authoring web site content Stylebook is a way to convert a set of XML files into a proper web site with consistent navigation and layout. debian/source/0000755000000000000000000000000011767633222010477 5ustar debian/source/format0000644000000000000000000000001411370624373011702 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000004510524606770010060 0ustar /usr/share/java /usr/share/stylebook debian/compat0000644000000000000000000000000211653215076010372 0ustar 8 debian/install0000644000000000000000000000003610524606770010565 0ustar styles /usr/share/stylebook debian/patches/0000755000000000000000000000000011767633222010626 5ustar debian/patches/imageio.diff0000644000000000000000000000223411370624373013070 0ustar --- stylebook-1.0~b3~svn20061109.orig/src/org/apache/stylebook/printers/ImagePrinter.java +++ stylebook-1.0~b3~svn20061109/src/org/apache/stylebook/printers/ImagePrinter.java @@ -10,6 +10,7 @@ package org.apache.stylebook.printers; import org.apache.stylebook.*; import javax.imageio.*; import javax.imageio.plugins.jpeg.*; +import javax.imageio.stream.*; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; @@ -145,13 +146,13 @@ public class ImagePrinter extends Abstra } } - // Write out image (highest quality for jpeg data) + // Write out image ImageWriter encoder = (ImageWriter)ImageIO.getImageWritersByFormatName("jpeg").next(); - JPEGImageWriteParam param = new JPEGImageWriteParam(null); + ImageWriteParam param = encoder.getDefaultWriteParam(); param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); param.setCompressionQuality(1); - encoder.setOutput(out); + encoder.setOutput(new MemoryCacheImageOutputStream(out)); encoder.write(null, new IIOImage(img, null, null), param); out.flush(); } debian/patches/series0000644000000000000000000000001511370624373012034 0ustar imageio.diff debian/changelog0000644000000000000000000000351211767633212011051 0ustar stylebook (1.0~b3~svn20061109-6) unstable; urgency=low * Team upload. * d/rules: Specify source/target = 1.5 for all javac commands to ensure backwards compatibility and workaround Java 7 encoding errors. Thanks to James Page for the report and the patch. (Closes: #651182, LP: #888127) -- Niels Thykier Mon, 18 Jun 2012 16:09:12 +0200 stylebook (1.0~b3~svn20061109-5) unstable; urgency=low * Fix wrong jar installation names. * Add Jakub Adam to Uploaders. -- Jakub Adam Sun, 27 Nov 2011 02:00:34 +0100 stylebook (1.0~b3~svn20061109-4) unstable; urgency=low * Team upload. * Removed Marcus Better from uploaders - Thanks for your work on this package. * Added build-arch and build-indep targets. * Bumped Standards-Versions to 3.9.2 - no changes required. * Bumped debhelper compat to 8. - replaced dh_clean -k with dh_prep. - migrated to dh7 style rules * Use javahelper to install the jar file. * Set classpath in the xalan jar file. -- Niels Thykier Sun, 30 Oct 2011 10:37:19 +0100 stylebook (1.0~b3~svn20061109-3) unstable; urgency=low * Team upload [ Matthias Klose ] * (Build-)depend on default-jre/-jdk. [ Torsten Werner ] * Switch to source format 3.0. * Add missing ${misc:Depends}. * Change Section: java. * Update Standards-Version: 3.8.4. -- Torsten Werner Thu, 06 May 2010 22:40:10 +0200 stylebook (1.0~b3~svn20061109-2) unstable; urgency=low * Move to unstable. * Delete build tree in clean target. * Added myself to Uploaders. -- Michael Koch Mon, 16 Jul 2007 07:01:18 +0200 stylebook (1.0~b3~svn20061109-1) experimental; urgency=low * Initial release. (Closes: #397764) -- Marcus Better Thu, 9 Nov 2006 12:15:23 +0100 debian/copyright0000644000000000000000000000616210524606770011135 0ustar This package was debianized by Marcus Better on Thu, 09 Nov 2006 11:33:42 +0100. It was downloaded from . Upstream authors: Pierpaolo Fumagalil , Donald Leslie . Stylebook is Copyright (C) 1999-2000 The Apache Software Foundation. The Apache Software License, Version 1.1 Copyright (c) 1999 The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The names "Xerces" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. 5. Products derived from this software may not be called "Apache", nor may "Apache" appear in their name, without prior written permission of the Apache Software Foundation. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ==================================================================== This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation and was originally based on software copyright (c) 1999, International Business Machines, Inc., http://www.apache.org. For more information on the Apache Software Foundation, please see . The Debian packaging is Copyright (C) 2006 Marcus Better and is licensed under the Apache License, Version 1.1, as above. debian/rules0000755000000000000000000000267011767632640010267 0ustar #!/usr/bin/make -f JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS_BASE := /usr/share/java JAVACMD := $(JAVA_HOME)/bin/java DEB_JARS := ant ant-launcher xercesImpl DEB_CLASSPATH = $(shell for jar in $(DEB_JARS); do \ if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; \ if [ -f "$$jar".jar ]; then echo -n "$${jar}.jar:"; fi; \ if [ -f $(DEB_JARS_BASE)/"$$jar" ]; then echo -n "$(DEB_JARS_BASE)/$${jar}:"; fi; \ if [ -f $(DEB_JARS_BASE)/"$$jar".jar ]; then echo -n "$(DEB_JARS_BASE)/$${jar}.jar:"; fi; \ done; \ if [ -f "$(JAVA_HOME)/lib/tools.jar" ]; then echo -n "$(JAVA_HOME)/lib/tools.jar"; fi) DEB_ANT_ARGS := -Dbin.dir=build -Dant.build.javac.source=1.5 \ -Dant.build.javac.target=1.5 ANT_INVOKE := $(JAVACMD) -classpath $(DEB_CLASSPATH) \ org.apache.tools.ant.Main $(DEB_ANT_ARGS) PKGNAME := stylebook INSTALLDIR := $(CURDIR)/debian/lib$(PKGNAME)-java JAVALIBDIR := $(INSTALLDIR)/usr/share/java TARGETS := build build-arch build-indep clean binary-indep binary-arch binary install $(TARGETS): dh $@ override_dh_auto_build: $(ANT_INVOKE) override_dh_auto_clean: $(ANT_INVOKE) clean override_dh_auto_install: $(eval JARNAME := $(shell basename build/$(PKGNAME)-*_xalan-2.jar)) jh_classpath --classpath="/usr/share/java/xercesImpl.jar" build/$(JARNAME) dh_install -plibstylebook-java build/$(JARNAME) /usr/share/java dh_link -plibstylebook-java usr/share/java/$(JARNAME) usr/share/java/$(PKGNAME).jar .PHONY: $(TARGETS)