--- libpdfbox-java-0.7.3.dfsg.orig/debian/rules +++ libpdfbox-java-0.7.3.dfsg/debian/rules @@ -0,0 +1,65 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +get-orig-source: + uscan --force-download + +configure: configure-stamp +configure-stamp: $(QUILT_STAMPFN) + dh_testdir + find /usr/share/fonts/cmap/ -type f | xargs cp -n -t Resources/cmap/ + touch $@ + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + JAVA_HOME=/usr/lib/jvm/default-java ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 package javadoc + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + ant clean + rm -f build-stamp configure-stamp install-stamp + dh_clean Resources/cmap/* + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + touch $@ + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libpdfbox-java-0.7.3.dfsg.orig/debian/libpdfbox-java-doc.install +++ libpdfbox-java-0.7.3.dfsg/debian/libpdfbox-java-doc.install @@ -0,0 +1 @@ +website/build/site/javadoc/* usr/share/doc/libpdfbox-java-doc/html --- libpdfbox-java-0.7.3.dfsg.orig/debian/README.source +++ libpdfbox-java-0.7.3.dfsg/debian/README.source @@ -0,0 +1,26 @@ +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. + +See /usr/share/doc/quilt/README.source for a detailed explanation. + + +The source tarball of the package was generated by +dh_wraporig v.0.1.285 script which +can be obtained from alioth's exppsy project repository: +http://svn.debian.org/wsvn/pkg-exppsy/tools/dh_wraporig + +For this package dh_wraporig performed following actions: +* Extracted files from + md5:b8d01eb03b409ba288aba3fb0194589f ../PDFBox-0.7.3.zip +* Removed following files/directories: + ./bin ./external ./Resources/colorspace-profiles ./Resources/cmap/* + +Additional information: +* Following patches were present to be applied to the original source + at build time +01_buildxml +02_external +03_lucene +04_cmyk + --- libpdfbox-java-0.7.3.dfsg.orig/debian/dh_wraporig.local +++ libpdfbox-java-0.7.3.dfsg/debian/dh_wraporig.local @@ -0,0 +1,24 @@ +# later on should be changed to svn-upgrade +# but now that would just annoy +post_command= + +# files/directories to delete. bash patterns +delete_files='./bin ./external ./Resources/colorspace-profiles ./Resources/cmap/*' + +# suffix to attach +suffix_out=.dfsg +suffix_version_out=.dfsg + +# for now we better simply create a symlink +# do_orig_symlink=" pleasedo ;-) " + +# do we need original tarball? I guess so for now, +# if not - uncomment +# do_delete_originals=" kill the beast " + +# Create README.Debian-source +do_create_readme=" of course " + +# where to put the new tarball +dest_dir=".." + --- libpdfbox-java-0.7.3.dfsg.orig/debian/changelog +++ libpdfbox-java-0.7.3.dfsg/debian/changelog @@ -0,0 +1,58 @@ +libpdfbox-java (0.7.3.dfsg-3ubuntu1) lucid; urgency=low + + * debian/rules + - Change JAVA_HOME to correspond to default-jdk. + - Add ant properties to compile code with target JVM 1.4. + * debian/control + - Change build dependency from java-gcj-compat-dev to default-jdk. + - Change run time dependency to default-jre. + + -- Onkar Shinde Sat, 05 Dec 2009 11:42:18 +0530 + +libpdfbox-java (0.7.3.dfsg-3) unstable; urgency=low + + * Change XS-Vcs-* fields to Vcs-*. + * Set Standards-Version to 3.8.2: Rename debian/README.Debian-source to + debian/README.source and mention quilt usage. + * debian/rules: explicitly set JAVA_HOME; create install-stamp target. + * Change debian/copyright to some version of the new machine-readable + format. + * Change patch system from dpatch to quilt. + * debian/control: set Section to java. + * Change my email address in debian/rules and debian/copyright. + * debian/copyright: add a note why libpdfbox-java is in contrib; thanks to + Bastien ROUCARIES for the bug report (closes: #539311). + * debian/rules: add "-n" to the "cp" command. + + -- gregor herrmann Mon, 10 Aug 2009 18:39:40 +0200 + +libpdfbox-java (0.7.3.dfsg-2ubuntu1) intrepid; urgency=low + + * debian/rules + - Add -u option to cp command. Fixes FTBFS. (LP: #252384) + - Add ant properties to compile code with target JVM 1.5. + * debian/README.source + - Add to comply with standards version 3.8.0. + * debian/control + - Change build dependency from java-gcj-compat-dev to default-jdk. + - Change run time dependency to default-jre. + - Standards version 3.8.0. + - Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Onkar Shinde Mon, 28 Jul 2008 00:51:47 +0530 + +libpdfbox-java (0.7.3.dfsg-2) unstable; urgency=low + + * Move upstream URL from the description to the new Homepage field. + * Fix typo in short description, thanks to Marco van Zwetselaar + (closes: #444772). + + -- gregor herrmann Sun, 30 Sep 2007 22:19:47 +0200 + +libpdfbox-java (0.7.3.dfsg-1) unstable; urgency=low + + * Initial release (closes: #404519). + + -- gregor herrmann Sun, 26 Aug 2007 18:12:52 +0200 + --- libpdfbox-java-0.7.3.dfsg.orig/debian/copyright +++ libpdfbox-java-0.7.3.dfsg/debian/copyright @@ -0,0 +1,166 @@ +Upstream source location: http://sourceforge.net/projects/pdfbox + +The .dfsg tarball has been created by removing: +* ./bin directory (contains windows stuff) +* ./external directory (contains pre-compiled binaries which are not used by + the Debian package) +* ./Resources/colorspace-profiles (contains non-free color profiles, we use + the one from the scribus package instead) +* ./Resources/cmap/* (contains non-free cmap file, we use the ones already + in Debian instead) + +The package is in contrib, since it build-depends on the following packages +which are in non-free: +cmap-adobe-cns1 +cmap-adobe-gb1 +cmap-adobe-japan1 +cmap-adobe-japan2 +cmap-adobe-korea1 +gs-cjk-resource + + +Files: * +Copyright: © 2003-2005, www.pdfbox.org +License: BSD-2 + Redistribution and use in source and binary forms, with or without + modification, are permitted under the terms of the BSD License. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS 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 REGENTS OR 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. + +Files: src/org/pdfbox/searchengine/lucene/IndexFiles.java +Copyright: © 2001 The Apache Software Foundation. +License: Apache-1.1 + The Apache Software License, Version 1.1 + . + 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 "Apache" and "Apache Software Foundation" and + "Apache Lucene" 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", + "Apache Lucene", 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. For more + information on the Apache Software Foundation, please see + . + +Files: Resources/afm/* +Copyright: + © 1985, 1987, 1989, 1990, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. +License: other + This file and the 14 PostScript(R) AFM files it accompanies may be used, + copied, and distributed for any purpose and without charge, with or without + modification, provided that all copyright notices are retained; that the + AFM files are not distributed without this file; that all modifications to + this file or any of the AFM files are prominently noted in the modified + file(s); and that this paragraph is not modified. Adobe Systems has no + responsibility or obligation to support the use of the AFM files. + +Files: Resources/ttf/* +Copyright: © 2003 by Bitstream, Inc. All Rights Reserved. + Bitstream Vera is a trademark of Bitstream, Inc. +License: other + Permission is hereby granted, free of charge, to any person obtaining a copy + of the fonts accompanying this license ("Fonts") and associated + documentation files (the "Font Software"), to reproduce and distribute the + Font Software, including without limitation the rights to use, copy, merge, + publish, distribute, and/or sell copies of the Font Software, and to permit + persons to whom the Font Software is furnished to do so, subject to the + following conditions: + . + The above copyright and trademark notices and this permission notice shall + be included in all copies of one or more of the Font Software typefaces. + . + The Font Software may be modified, altered, or added to, and in particular + the designs of glyphs or characters in the Fonts may be modified and + additional glyphs or characters may be added to the Fonts, only if the fonts + are renamed to names not containing either the words "Bitstream" or the word + "Vera". + . + This License becomes null and void to the extent applicable to Fonts or Font + Software that has been modified and is distributed under the "Bitstream + Vera" names. + . + The Font Software may be sold as part of a larger software package but no + copy of one or more of the Font Software typefaces may be sold by itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, + TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME + FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING + ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF + THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE + FONT SOFTWARE. + . + Except as contained in this notice, the names of Gnome, the Gnome + Foundation, and Bitstream Inc., shall not be used in advertising or + otherwise to promote the sale, use or other dealings in this Font Software + without prior written authorization from the Gnome Foundation or Bitstream + Inc., respectively. For further information, contact: fonts at gnome dot + org. + . + http://www.bitstream.com + +Files: website/src/* +Copyright: © 2002-{2004,2005} The Apache Software Foundation +License: Apache-2.0 + 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. + +Files: debian/* +Copyright: + © 2007-2009, gregor herrmann + © 2007-2009, tony mancill +License: GPL-1+ + +See `/usr/share/common-licenses/GPL'. --- libpdfbox-java-0.7.3.dfsg.orig/debian/compat +++ libpdfbox-java-0.7.3.dfsg/debian/compat @@ -0,0 +1 @@ +5 --- libpdfbox-java-0.7.3.dfsg.orig/debian/dirs +++ libpdfbox-java-0.7.3.dfsg/debian/dirs @@ -0,0 +1 @@ +usr/share/java --- libpdfbox-java-0.7.3.dfsg.orig/debian/watch +++ libpdfbox-java-0.7.3.dfsg/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\.dfsg$// \ + http://sf.net/pdfbox/PDFBox-(.+)\.zip debian dh_wraporig --- libpdfbox-java-0.7.3.dfsg.orig/debian/links +++ libpdfbox-java-0.7.3.dfsg/debian/links @@ -0,0 +1 @@ +usr/share/java/PDFBox-0.7.3-dev.jar usr/share/java/pdfbox.jar --- libpdfbox-java-0.7.3.dfsg.orig/debian/control +++ libpdfbox-java-0.7.3.dfsg/debian/control @@ -0,0 +1,33 @@ +Source: libpdfbox-java +Section: contrib/java +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: gregor herrmann +Uploaders: tony mancill +Build-Depends: debhelper (>= 5), ant, quilt (>= 0.40) +Build-Depends-Indep: default-jdk, liblucene2-java, libbcmail-java, libbcprov-java, checkstyle, junit, libfontbox-java, scribus, cmap-adobe-cns1, cmap-adobe-gb1, cmap-adobe-japan1, cmap-adobe-japan2, cmap-adobe-korea1, gs-cjk-resource +Standards-Version: 3.8.2 +Homepage: http://www.pdfbox.org/ +Vcs-Svn: http://svn.toastfreeware.priv.at/debian/libpdfbox-java/trunk/ +Vcs-Browser: http://svn.toastfreeware.priv.at/wsvn/ToastfreewareDebian/libpdfbox-java/trunk/ + +Package: libpdfbox-java +Architecture: all +Depends: default-jre | java2-runtime +Description: PDF library for Java + PDFBox is an open source Java PDF library for working with PDF documents. + This project allows creation of new PDF documents, manipulation of existing + documents and the ability to extract content from documents. PDFBox also + includes several command line utilities. + +Package: libpdfbox-java-doc +Architecture: all +Section: contrib/doc +Suggests: libpdfbox-java +Description: PDF library for Java (documentation) + PDFBox is an open source Java PDF library for working with PDF documents. + This project allows creation of new PDF documents, manipulation of existing + documents and the ability to extract content from documents. PDFBox also + includes several command line utilities. + . + This package contains the documentation for the library. --- libpdfbox-java-0.7.3.dfsg.orig/debian/libpdfbox-java.install +++ libpdfbox-java-0.7.3.dfsg/debian/libpdfbox-java.install @@ -0,0 +1 @@ +lib/PDFBox-0.7.3-dev.jar usr/share/java --- libpdfbox-java-0.7.3.dfsg.orig/debian/patches/05_lucenedemo.patch +++ libpdfbox-java-0.7.3.dfsg/debian/patches/05_lucenedemo.patch @@ -0,0 +1,82 @@ +Author: +Description: Work around missing lucene demo. +--- libpdfbox-java.orig/src/org/pdfbox/searchengine/lucene/IndexFiles.java ++++ libpdfbox-java/src/org/pdfbox/searchengine/lucene/IndexFiles.java +@@ -61,9 +61,9 @@ + + import org.apache.lucene.analysis.standard.StandardAnalyzer; + +-import org.apache.lucene.demo.HTMLDocument; +- ++import org.apache.lucene.ant.HtmlDocument; + import org.apache.lucene.document.Document; ++import org.apache.lucene.document.DateField; + + import org.apache.lucene.index.IndexReader; + import org.apache.lucene.index.IndexWriter; +@@ -207,7 +207,7 @@ + while (uidIter.term() != null && uidIter.term().field().equals( "uid" ) ) + { + System.out.println("deleting " + +- HTMLDocument.uid2url(uidIter.term().text())); ++ uid2url(uidIter.term().text())); + reader.deleteDocuments(uidIter.term()); + uidIter.next(); + } +@@ -240,7 +240,7 @@ + { + if (uidIter != null) + { +- String uid = HTMLDocument.uid(file); // construct uid for doc ++ String uid = uid(file); // construct uid for doc + + while( uidIter.term() != null && + uidIter.term().field().equals( "uid" ) && +@@ -249,7 +249,7 @@ + if (deleting) + { // delete stale docs + System.out.println("deleting " + +- HTMLDocument.uid2url(uidIter.term().text())); ++ uid2url(uidIter.term().text())); + reader.deleteDocuments(uidIter.term()); + } + uidIter.next(); +@@ -287,7 +287,7 @@ + path.endsWith(".TXT")) + { + System.out.println( "Indexing Text document: " + file ); +- doc = HTMLDocument.Document(file); ++ doc = HtmlDocument.Document(file); + } + else if( path.endsWith( ".PDF" ) ) + { +@@ -304,4 +304,27 @@ + writer.addDocument(doc); + } + } +-} +\ No newline at end of file ++ ++ ++ /* ++ * The following 2 methods are taken from the ++ * org.apache.lucene.demo.HTMLDocument class shipped with ++ * Lucene 1.4.3. ++ */ ++ private static char dirSep = System.getProperty("file.separator").charAt(0); ++ ++ private static String uid(File f) { ++ // Append path and date into a string in such a way that lexicographic ++ // sorting gives the same results as a walk of the file hierarchy. Thus ++ // null (\u0000) is used both to separate directory components and to ++ // separate the path from the date. ++ return f.getPath().replace(dirSep, '\u0000') + ++ "\u0000" + ++ DateField.timeToString(f.lastModified()); ++ } ++ ++ private static String uid2url(String uid) { ++ String url = uid.replace('\u0000', '/'); // replace nulls with slashes ++ return url.substring(0, url.lastIndexOf('/')); // remove date from end ++ } ++} --- libpdfbox-java-0.7.3.dfsg.orig/debian/patches/04_cmyk.patch +++ libpdfbox-java-0.7.3.dfsg/debian/patches/04_cmyk.patch @@ -0,0 +1,21 @@ +Author: +Description: use the color profile from the scribus package instead of the (non-free) +color profile in ./Resources/colorspace-profiles +--- libpdfbox-java.orig/src/org/pdfbox/pdmodel/graphics/color/PDDeviceCMYK.java ++++ libpdfbox-java/src/org/pdfbox/pdmodel/graphics/color/PDDeviceCMYK.java +@@ -106,7 +106,7 @@ + InputStream profile = null; + try + { +- profile = ResourceLoader.loadResource( "Resources/colorspace-profiles/CMYK.pf" ); ++ profile = ResourceLoader.loadResource( "/usr/lib/scribus/profiles/GenericCMYK.icm" ); + ICC_Profile iccProfile = ICC_Profile.getInstance( profile ); + cSpace = new ICC_ColorSpace( iccProfile ); + } +@@ -134,4 +134,4 @@ + { + throw new IOException( "Not implemented" ); + } +-} +\ No newline at end of file ++} --- libpdfbox-java-0.7.3.dfsg.orig/debian/patches/series +++ libpdfbox-java-0.7.3.dfsg/debian/patches/series @@ -0,0 +1,4 @@ +01_buildxml.patch +02_external.patch +04_cmyk.patch +05_lucenedemo.patch --- libpdfbox-java-0.7.3.dfsg.orig/debian/patches/01_buildxml.patch +++ libpdfbox-java-0.7.3.dfsg/debian/patches/01_buildxml.patch @@ -0,0 +1,53 @@ +Author: +Description: comment out "propertyfile" in build.xml +--- libpdfbox-java.orig/build.xml ++++ libpdfbox-java/build.xml +@@ -45,6 +45,7 @@ + + + ++ + + + +@@ -67,7 +68,9 @@ + + + +- ++ ++ ++ + + + +@@ -160,9 +163,11 @@ + + + ++ + + + +@@ -404,8 +409,8 @@ + classpathref="build.classpath" + encoding="ISO-8859-1" + breakiterator="yes"> +- +- ++ ++ + + + +@@ -418,4 +423,4 @@ + + + +- +\ No newline at end of file ++ --- libpdfbox-java-0.7.3.dfsg.orig/debian/patches/02_external.patch +++ libpdfbox-java-0.7.3.dfsg/debian/patches/02_external.patch @@ -0,0 +1,61 @@ +Author: +Description: use debian jars instead of external/ directory +--- libpdfbox-java.orig/build.xml ++++ libpdfbox-java/build.xml +@@ -22,28 +22,29 @@ + + + +- ++ ++ + +- ++ + +- ++ + +- +- ++ ++ + +- +- ++ ++ + +- +- ++ ++ + +- +- ++ ++ + +- +- ++ ++ + +- ++ + + + +@@ -55,9 +56,12 @@ + + + ++ ++ + + +