This is an automated email from the git hooks/post-receive script. apo-guest pushed a commit to annotated tag debian/0.0_R8+dfsg2-1 in repository xhtmlrenderer.
commit c8c968c6f43109bd728a1366b6fa00844bb44e6e Author: Miguel Landaeta <[email protected]> Date: Wed Jan 12 20:38:21 2011 -0430 initial debianization --- debian/changelog | 5 + debian/classpath | 2 + debian/compat | 1 + debian/control | 54 +++++++++ debian/copyright | 175 ++++++++++++++++++++++++++++++ debian/libcore-renderer-java-doc.doc-base | 8 ++ debian/libcore-renderer-java-doc.docs | 1 + debian/libcore-renderer-java-doc.javadoc | 1 + debian/libcore-renderer-java.jlibs | 2 + debian/orig-tar.excludes | 9 ++ debian/orig-tar.sh | 18 +++ debian/patches/01_use_debian_jars.diff | 86 +++++++++++++++ debian/patches/series | 1 + debian/rules | 37 +++++++ debian/source/format | 1 + debian/watch | 5 + 16 files changed, 406 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..58267bd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +xhtmlrenderer (0.0~R8-1) UNRELEASED; urgency=low + + * Initial release. (Closes: #608284). + + -- Miguel Landaeta <[email protected]> Wed, 12 Jan 2011 20:35:51 -0430 diff --git a/debian/classpath b/debian/classpath new file mode 100644 index 0000000..6a7ecf0 --- /dev/null +++ b/debian/classpath @@ -0,0 +1,2 @@ +build/core-renderer.jar /usr/share/java/itext.jar +build/core-renderer-minimal.jar /usr/share/java/itext.jar diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d29a767 --- /dev/null +++ b/debian/control @@ -0,0 +1,54 @@ +Source: xhtmlrenderer +Section: java +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Miguel Landaeta <[email protected]> +Build-Depends: debhelper (>= 7.0.50~), default-jdk, javahelper, ant +Build-Depends-Indep: libitext-java (>= 2.0) +Standards-Version: 3.9.1 +Homepage: https://xhtmlrenderer.dev.java.net/ +Vcs-Git: git://git.debian.org/git/pkg-java/xhtmlrenderer.git +Vcs-Browser: http://git.debian.org/?p=pkg-java/xhtmlrenderer.git + +Package: libcore-renderer-java +Architecture: all +Depends: libitext-java (>= 2.0), ${misc:Depends} +Description: Java library that provides an XML/XHTML/CSS 2.1 Renderer + xhtmlrender is an XML/CSS renderer, which means it takes + XML files as input, applies formatting and styling using + CSS, and generates a rendered representation of that XML as + output. The output may go to the screen (in a GUI), to an + image or to a PDF file. + . + The main target for content is XHTML 1.0 (strict), an XML + document format that standardizes HTML. However, + xhtmlrenderer accepts any well-formed XML for rendering as + long as CSS is provided that tells how to lay it out. + . + In the case of XHTML, default stylesheets are provided out + of the box and packaged within the library. + +Package: libcore-renderer-java-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Recommends: libcore-renderer-java +Suggests: default-jdk-doc +Description: Documentation for libcore-renderer-java + Documentation for xhtmlrender that is an XML/CSS renderer, + which means it takes XML files as input, applies formatting + and styling using CSS, and generates a rendered representation + of that XML as output. The output may go to the screen (in a + GUI), to an image or to a PDF file. + . + The main target for content is XHTML 1.0 (strict), an XML + document format that standardizes HTML. However, + xhtmlrenderer accepts any well-formed XML for rendering as + long as CSS is provided that tells how to lay it out. + . + In the case of XHTML, default stylesheets are provided out + of the box and packaged within the library. + . + This package contains the javadoc files of + libcore-renderer-java and the user guide reference for + xhtmlrenderer. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f4a2b13 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,175 @@ +The sources where downloaded from +http://pigeonholdings.com/projects/flyingsaucer/R8/downloads/flyingsaucer-R8-src.zip. + +Files: * +Copyright: © 2004-2009, Joshua Marinacci <[email protected]>, + © 2004-2009, Patrick Wright, + © 2004-2009, The Flying Saucer Team, + © 2004-2008, Torbjörn Gannholm, + © 2004-2008, Wisconsin Court System, + © 2007,2009, Christophe Marchand, + © 2007-2008, Sean Bright, + © 2005, Scott Cytacki, + © 2007, Jason Blumenkrantz, + © 2007, Nick Reddel +License: LGPL-2.1 + +Files: demos/docbook/MozBook/MozBook.css +Author: David Horton +License: Public Domain + +Files: demos/docbook/docbook-css-0.4/* +Copyright: © 2004, David Holroyd and contributors +License: other (BSD-like) + Permission to use, copy, modify and distribute this software and its + documentation for any purpose and without fee is hereby granted in + perpetuity, provided that the above copyright notice appear in all + copies, and that both the copyright notice and this permission notice + appear in supporting documentation. The contributors make no + representations about the suitability of this software for any + purpose. It is provided "as is" without express or implied warranty. + + THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: demos/docbook/wysiwygdocbook1.01/* +Copyright: © 2004, David Holroyd and contributors, + © 2005 Michael Thiele, and contributors +License: other (BSD-like) + Permission to use, copy, modify and distribute this software and its + documentation for any purpose and without fee is hereby granted in + perpetuity, provided that the above copyright notice appear in all + copies, and that both the copyright notice and this permission notice + appear in supporting documentation. The contributors make no + representations about the suitability of this software for any + purpose. It is provided "as is" without express or implied warranty. + + THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: demos/docbook/dtd/*, + src/schema/docbook/*.mod, + src/schema/docbook/*.dtd +Copyright: © 1992-2004, HaL Computer Systems, Inc., + © 1992-2002, O'Reilly & Associates, Inc., + © 1992-2002, ArborText, Inc., + © 1992-2002, Fujitsu Software Corporation, + © 1992-2002, Norman Walsh, + © 1992-2002, Sun Microsystems, Inc., + © 1992-2002, Organization for the Advancement of Structured Information Standards (OASIS) +License: other + Permission to use, copy, modify and distribute the DocBook XML DTD + and its accompanying documentation for any purpose and without fee + is hereby granted in perpetuity, provided that the above copyright + notice and this paragraph appear in all copies. The copyright + holders make no representation about the suitability of the DTD for + any purpose. It is provided "as is" without expressed or implied + warranty. + + If you modify the DocBook XML DTD in any way, except for declaring and + referencing additional sets of general entities and declaring + additional notations, label your DTD as a variant of DocBook. See + the maintenance documentation for more information. + +Files: src/schema/*.ent +Copyright: © 1986, International Organization for Standardization +License: other + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +Files: src/schema/xhtml/*.mod, + src/schema/xhtml/*.dtd +Copyright: © 1998-2001, W3C (MIT, INRIA, Keio) +Comment: Even though those *.mod and *.dtd files don't indicate a license, + those files are copies of the ones distributed in w3c-dtd-xhtml package. + Those files are known to be licensed under W3C Software Licence which + is compatible with the GPL2 license. +License: W3C Software License + W3C Software License + + According to http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html, + "while schemas and DTDs are frequently part of our specifications and + seemingly fall under the document copyright terms, you may use them under + the W3C Software License." + + http://www.w3.org/Consortium/Legal/copyright-software-19980720 : + + + W3C ® SOFTWARE NOTICE AND LICENSE + + Copyright © 1994-2002 World Wide Web Consortium, (Massachusetts + Institute of Technology, Institut National de Recherche en Informatique + et en Automatique, Keio University). All Rights Reserved. + http://www.w3.org/Consortium/Legal/ + + This W3C work (including software, documents, or other related items) + is being provided by the copyright holders under the following + license. By obtaining, using and/or copying this work, you (the + licensee) agree that you have read, understood, and will comply with + the following terms and conditions: + + Permission to use, copy, modify, and distribute this software and its + documentation, with or without modification, for any purpose and + without fee or royalty is hereby granted, provided that you include + the following on ALL copies of the software and documentation or + portions thereof, including modifications, that you make: + 1. The full text of this NOTICE in a location viewable to users of + the redistributed or derivative work. + 2. Any pre-existing intellectual property disclaimers, notices, or + terms and conditions. If none exist, a short notice of the + following form (hypertext is preferred, text is permitted) should + be used within the body of any redistributed or derivative code: + "Copyright © [$date-of-software] World Wide Web Consortium, + (Massachusetts Institute of Technology, Institut National de + Recherche en Informatique et en Automatique, Keio University). + All Rights Reserved. http://www.w3.org/Consortium/Legal/" + 3. Notice of any changes or modifications to the W3C files, including + the date changes were made. (We recommend you provide URIs to the + location from which the code is derived.) + THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT + HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR + DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, + TRADEMARKS OR OTHER RIGHTS. + + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL + OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR + DOCUMENTATION. + + The name and trademarks of copyright holders may NOT be used in + advertising or publicity pertaining to the software without specific, + written prior permission. Title to copyright in this software and any + associated documentation will at all times remain with copyright + holders. + + ____________________________________ + + This formulation of W3C's notice and license became active on August + 14 1998 so as to improve compatibility with GPL. This version ensures + that W3C software licensing terms are no more restrictive than GPL and + consequently W3C software may be distributed in GPL packages. See the + older formulation for the policy prior to this date. Please see our + Copyright FAQ for common questions about using materials from our + site, including specific terms and conditions for packages like + libwww, Amaya, and Jigsaw. Other questions about this notice can be + directed to [email protected]. + +Files: debian/* +Copyright: © 2011, Miguel Landaeta <[email protected]> +License: LGPL-2.1 + +License: LGPL-2.1 + The full text of the GNU Lesser General Public License is + distributed in /usr/share/common-licenses/LGPL-2.1 on Debian systems. diff --git a/debian/libcore-renderer-java-doc.doc-base b/debian/libcore-renderer-java-doc.doc-base new file mode 100644 index 0000000..82f4a84 --- /dev/null +++ b/debian/libcore-renderer-java-doc.doc-base @@ -0,0 +1,8 @@ +Document: libcore-renderer-java-userguide +Title: The Flying Saucer User's Guide +Abstract: XML/XHTML/CSS renderer written in Java +Section: Programming + +Format: HTML +Index: /usr/share/doc/libcore-renderer-java-doc/guide/users-guide-R8.html +Files: /usr/share/doc/libcore-renderer-java-doc/guide/* diff --git a/debian/libcore-renderer-java-doc.docs b/debian/libcore-renderer-java-doc.docs new file mode 100644 index 0000000..03cfcf8 --- /dev/null +++ b/debian/libcore-renderer-java-doc.docs @@ -0,0 +1 @@ +doc/guide diff --git a/debian/libcore-renderer-java-doc.javadoc b/debian/libcore-renderer-java-doc.javadoc new file mode 100644 index 0000000..d17d71d --- /dev/null +++ b/debian/libcore-renderer-java-doc.javadoc @@ -0,0 +1 @@ +doc/full/api/ usr/share/doc/libcore-renderer-java/api diff --git a/debian/libcore-renderer-java.jlibs b/debian/libcore-renderer-java.jlibs new file mode 100644 index 0000000..b5c5b74 --- /dev/null +++ b/debian/libcore-renderer-java.jlibs @@ -0,0 +1,2 @@ +build/core-renderer-minimal.jar +build/core-renderer.jar diff --git a/debian/orig-tar.excludes b/debian/orig-tar.excludes new file mode 100644 index 0000000..bdb1283 --- /dev/null +++ b/debian/orig-tar.excludes @@ -0,0 +1,9 @@ +# jars without source code +xhtmlrenderer-*/lib/*.jar +xhtmlrenderer-*/lib/dev/* + +# file licensed under CC-2.5 (non-free) +xhtmlrenderer-*/demos/browser/xhtml/recipebook-xml.css + +# unclear license, unimportant file anyway +xhtmlrenderer-*/demos/docbook/xml/plugin-implement.xml diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh new file mode 100755 index 0000000..fa84630 --- /dev/null +++ b/debian/orig-tar.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +# called by uscan with '--upstream-version' <version> <file> +echo "version $2" +package=`dpkg-parsechangelog | sed -n 's/^Source: //p'` +version="$(echo $2 | sed 's/^/0\.0~/')" +tarball=$3 +TAR=${package}_${version}.orig.tar.gz +DIR=${package}-${version}.orig + +unzip $tarball -d $DIR + +GZIP=--best tar --numeric --group 0 --owner 0 --anchored \ + -X debian/orig-tar.excludes -c -v -z -f $TAR $DIR + +rm -rf $tarball $DIR diff --git a/debian/patches/01_use_debian_jars.diff b/debian/patches/01_use_debian_jars.diff new file mode 100644 index 0000000..61435f6 --- /dev/null +++ b/debian/patches/01_use_debian_jars.diff @@ -0,0 +1,86 @@ +Description: Build the package using the libraries available in Debian + Replace all references to .jar files bundled by upstream with the ones + provided by Debian and disable references to libraries not available + in Debian. The SVG module is not built because it Build-Depends on + SVG Salamander and that library is not packaged yet. +Author: Miguel Landaeta <[email protected]> +Bug-Debian: http://bugs.debian.org/608284 +Forwarded: no +Last-Update: 2011-01-01 + +--- xhtmlrenderer-R8.orig/build.xml ++++ xhtmlrenderer-R8/build.xml +@@ -70,7 +70,7 @@ + <antcall target="jar.core-minimal" /> + <antcall target="jar.browser" /> + <antcall target="jar.about" /> +- <antcall target="jar.svg" /> ++ <!--<antcall target="jar.svg" />--> + <antcall target="jar.docbook" /> + </target> + +--- xhtmlrenderer-R8.orig/etc/build/preset-defs.xml ++++ xhtmlrenderer-R8/etc/build/preset-defs.xml +@@ -55,14 +55,19 @@ + </sequential> + </macrodef> + ++ <!-- Pack200Task.jar is not available in Debian and it is ++ not needed to build this package + <taskdef name="pack200" + classname="com.sun.tools.apache.ant.pack200.Pack200Task" + classpath="${libraries.dev.dir}/Pack200Task.jar" + /> ++ --> + <!-- Create our unpacker task --> ++ <!-- + <taskdef name="unpack200" + classname="com.sun.tools.apache.ant.pack200.Unpack200Task" + classpath="${libraries.dev.dir}/Pack200Task.jar"/> ++ --> + + </project> + +--- xhtmlrenderer-R8.orig/etc/build/properties.xml ++++ xhtmlrenderer-R8/etc/build/properties.xml +@@ -101,8 +101,8 @@ + + <!-- path reference for all JAR files in /lib --> + <path id="libraries.all"> +- <fileset dir="${libraries.dir}"> +- <include name="*.jar"/> ++ <fileset dir="/usr/share/java"> ++ <include name="itext.jar"/> + </fileset> + </path> + +--- xhtmlrenderer-R8.orig/etc/build/dist.xml ++++ xhtmlrenderer-R8/etc/build/dist.xml +@@ -102,6 +102,7 @@ + <include name="svgSalamander.jar"/> + </fileset> + </copy> ++ <!-- + <pack200 src="${dest.dir}/core-renderer.jar" + destfile="${dist.dir}/${app.version}/demo/packed/core-renderer.jar.pack.gz" + gzipoutput="true"/> +@@ -114,6 +115,7 @@ + <pack200 src="${libraries.dev.dir}/svgSalamander.jar" + destfile="${dist.dir}/demo_repo/packed/svgSalamander.jar.pack.gz" + gzipoutput="true"/> ++ --> + + <copy file="${src.packaging.dir}/template.jar.var" + tofile="${dist.dir}/${app.version}/demo/core-renderer.jar.var"/> +@@ -159,9 +161,11 @@ + <include name="@{demoname}.jar"/> + </fileset> + </copy> ++ <!-- + <pack200 src="${dest.dir}/@{demoname}.jar" + destfile="${dist.dir}/${app.version}/demo/@{demoname}/packed/@{demoname}.jar.pack.gz" + gzipoutput="true"/> ++ --> + <copy file="${src.packaging.dir}/template.jar.var" + tofile="${dist.dir}/${app.version}/demo/@{demoname}/@{demoname}.jar.var"/> + <replace file="${dist.dir}/${app.version}/demo/@{demoname}/@{demoname}.jar.var" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..048ab09 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01_use_debian_jars.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..9dde970 --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +VERSION := $(shell dpkg-parsechangelog | grep ^Version: | sed 's/^.\+: \(.\+\)-.\+$$/\1/') +UPSTREAM_VERSION := $(shell echo $(VERSION) | sed 's/^0.0~//') +JARS := core-renderer core-renderer-minimal +export JAVA_HOME=/usr/lib/jvm/default-java + +%: + dh --with javahelper $@ + +override_dh_auto_build: + ant jar + ant docs + jh_classpath + +override_dh_auto_clean: + dh_auto_clean + -rm -rf doc/full doc/user + +override_dh_link: + # provide compatibility with the versioning scheme used by upstream + for jar in $(JARS); do \ + dh_link usr/share/java/$$jar.jar \ + usr/share/java/$$jar-$(UPSTREAM_VERSION).jar; \ + done + +override_jh_classpath: + # already called during build + +get-orig-source: + cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \ + uscan \ + --verbose \ + --no-symlink \ + --destdir $(CURDIR) \ + --watchfile debian/watch \ + --force-download diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..90fff57 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=dversionmangle=s/0\.0~// \ +https://xhtmlrenderer.dev.java.net/ \ +http://pigeonholdings.com/projects/flyingsaucer/R8/downloads/flyingsaucer-(.*)-src.zip \ +debian debian/orig-tar.sh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/xhtmlrenderer.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

