--- lucene2-2.9.4+ds1.orig/debian/copyright.old +++ lucene2-2.9.4+ds1/debian/copyright.old @@ -0,0 +1,21 @@ +This package was debianized by Jan-Pascal van Best on +Thu, 12 Jul 2007 08:21:19 +0200 + +It was downloaded from +http://www.apache.org/dist/lucene/java/lucene-2.2.0-src.tar.gz + +The lucene2_2.2.0.orig.tar.gz tarball was created by removing all +third party jars from the above upstream source. Use the script +debian/get-orig-source.sh to download the upstream source and +create lucene2_2.2.0.orig.tar.gz + +Copyright Holders: Doug Cutting , Erik Hatcher +, Otis Gospodnetic et.al. + +Lucene is licensed under the Apache License, version 2.0. On Debian +systems, the complete text of the Apache License, version 2.0, can +be found in `/usr/share/common-licenses/Apache-2.0'. + +The Debian packaging (the files under debian/) is +Copyright 2007,2008,2009 Jan-Pascal van Best . It is +also licensed under the terms of the Apache License, version 2.0. --- lucene2-2.9.4+ds1.orig/debian/get-orig-source.sh +++ lucene2-2.9.4+ds1/debian/get-orig-source.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +DEHS=`( uscan --dehs )` + +URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -` +VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -` + +DEBIAN_SOURCE_VERSION="$VERSION+ds1" + +DESTDIR=$PWD/.. +SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz +SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc +SOURCETAR=$DESTDIR/lucene2_$DEBIAN_SOURCE_VERSION.orig.tar + +KEYURL="http://www.apache.org/dist/lucene/java/KEYS" +KEYFILE="debian/KEYS" +KEYRING="debian/lucene-keyring.gpg" + +# Download source tarball and signature file +if [ ! -r "$SOURCEFILE" ]; then + wget "$URL" -O $SOURCEFILE +fi + +wget "$URL.asc" -O $SIGFILE + +# If necessary, recreate keyring used for signing +# Only do this if the keyring is not yet downloaded +if [ ! -r $KEYFILE ]; then + wget "$KEYURL" -O "$KEYFILE" +fi + +if [ ! -r $KEYRING ]; then + touch $KEYRING + gpg --no-default-keyring --primary-keyring $KEYRING --import $KEYFILE +fi + +# Check signature +gpgv --quiet --keyring $KEYRING $SIGFILE $SOURCEFILE + +echo "Check whether the archive has been signed by Mark Robert Miller (CODE SIGNING KEY) , key ID EB0199F8" + +# Repackage upstream source file without the third party jars +TEMPDIR=`mktemp -d` +echo "Unpacking into tempdir $TEMPDIR..." +tar xzf $SOURCEFILE -C $TEMPDIR + +echo "Removing third party jars..." +find $TEMPDIR -name \*.jar -exec rm {} \; + +echo "Removing pre-generated javacc output files..." +# Some generated files are excepted because they are not properly generated by +# the build system +fgrep -lR "Generated By:JavaCC:" $TEMPDIR | grep -v "analysis/standard/ParseException.java\|precedence\|surround" | xargs -n5 rm + +echo "Packing new orig source tarball $SOURCETAR..." +rm -f $SOURCETAR $SOURCETAR.gz +cd $TEMPDIR +tar cf $SOURCETAR * +gzip -9 $SOURCETAR +cd $DESTDIR + +echo "Removing tempdir..." +rm -rf "$TEMPDIR" + --- lucene2-2.9.4+ds1.orig/debian/lucli.1 +++ lucene2-2.9.4+ds1/debian/lucli.1 @@ -0,0 +1,63 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH LUCLI 1 "September 4, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +lucli \- command line interface to the Lucene full-text indexing library +.SH SYNOPSIS +.B lucli +.SH DESCRIPTION +\fBlucli\fP is a program that allows you to work directly with Lucene indexes. +Once inside +.B lucli +you can use the following commands: +.TP +\fBcount\fP +Return the number of hits for a search. Example: count foo +.TP +\fBexplain\fP +Explanation that describes how the document scored against query. Example: explain foo +.TP +\fBhelp\fP +Display help about commands +.TP +\fBindex\fP +Choose a different lucene index. Example index my_index +.TP +\fBinfo\fP +Display info about the current Lucene index. Example: info +.TP +\fBoptimize\fP +Optimize the current index +.TP +\fBquit\fP +Quit/exit the program +.TP +\fBsearch\fP +Search the current index. Example: search foo +.TP +\fBterms\fP +Show the first 100 terms in this index. Supply a field name to only show terms in a specific field. Example: terms +.TP +\fBtokens\fP +Does a search and shows the top 10 tokens for each document. Verbose! Example: tokens foo +.br +.SH AUTHOR +lucli was written as a part of Lucene, the Java full-text indexing library. +See http://lucene.apache.org for more information. +.PP +This manual page was written by Jan-Pascal van Best , +for the Debian project (but may be used by others). --- lucene2-2.9.4+ds1.orig/debian/TODO.Debian +++ lucene2-2.9.4+ds1/debian/TODO.Debian @@ -0,0 +1,9 @@ +TODO +---- + +- Convert Debian packaging to 3.0 (quilt) source format + +Stuff to do regarding packaging of lucene-2.x.x: + +- Split into -core and -contrib package (maybe even further split up -contrib). + --- lucene2-2.9.4+ds1.orig/debian/liblucene2-java.prerm +++ lucene2-2.9.4+ds1/debian/liblucene2-java.prerm @@ -0,0 +1,28 @@ +#!/bin/sh +set -e + +# prerm maintainer script for the Debian liblucene2-java package. +# +# summary of how this script can be called: +# * remove +# * upgrade +# * failed-upgrade +# * remove in-favour +# * deconfigure in-favour +# removing +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + remove|upgrade) + update-alternatives --remove lucli /usr/lib/liblucene2-java/lucli + ;; + *) + ;; +esac + +#DEBHELPER# + +exit 0 + --- lucene2-2.9.4+ds1.orig/debian/changelog +++ lucene2-2.9.4+ds1/debian/changelog @@ -0,0 +1,265 @@ +lucene2 (2.9.4+ds1-4) unstable; urgency=low + + [ Benjamin Drung ] + * Team upload. + * Upload to unstable (Closes: #640494). + * Use versioned format link in debian/copyright (Closes: #631632). + * Build with default-jdk instead of openjdk-6-jdk. + * Use dpkg-source version 1.0 until we switch to quilt. + + [ Jan-Pascal van Best ] + * Removed Jan-Pascal van Best from Uploaders + + -- Benjamin Drung Mon, 19 Sep 2011 21:37:46 +0200 + +lucene2 (2.9.4+ds1-3) experimental; urgency=low + + * Team upload. + - Upload to experimental to avoid breaking eclipse in sid. + * Fixed the Bundle-SymbolicName of the lucene-core.jar. + (Closes: 631235) + * Dropped JRE dependencies - no longer required by the Java Policy. + * Do not install CHANGES.txt - dh_installchangelogs already installs + this as the upstream changelog. + * Bumped Standards-Version to 3.9.2 - no changes required. + + -- Niels Thykier Wed, 03 Aug 2011 12:42:12 +0200 + +lucene2 (2.9.4+ds1-2) unstable; urgency=low + + * Team upload. + * Change dependency on libdb5.1-java to libdb-java (Closes: #628288) + + -- Mehdi Dogguy Wed, 06 Jul 2011 15:14:40 +0200 + +lucene2 (2.9.4+ds1-1) unstable; urgency=low + + * New upstream version: 2.9.4 + * Added a Breaks: eclipse-platform (<= 3.5.2-6), forward-port from + 2.9.2+ds1-1squeeze1 (Closes: #595356) + * Put lucli under update-alternatives control to allow liblucene3-java-contrib + to take over + * Change dependency on libdb4.7-java to libdb5.1-java (Closes: #621398) + * Fixed debian/watch for new Apache archive repository layout + * Bump standards version to 3.9.1 (no changes needed) + + -- Jan-Pascal van Best Thu, 21 Apr 2011 22:01:28 +0200 + +lucene2 (2.9.3+ds1-1) unstable; urgency=low + + * New upstream release 2.9.3 + * Bump standards version to 3.9.0 (no changes needed) + * Added OSGI Require-Bundle metadata in contrib libraries (Closes: #578196) + + -- Jan-Pascal van Best Fri, 06 Aug 2010 16:14:31 +0200 + +lucene2 (2.9.2+ds1-1) unstable; urgency=low + + * New upstream release + * Add patch to fix Java networking during package build (workaround for + #560056). + * Bump standards version to 3.8.4 (no changes needed) + + -- Jan-Pascal van Best Thu, 18 Mar 2010 13:03:42 +0100 + +lucene2 (2.9.1+ds1-5) unstable; urgency=low + + * Override OSGi Bundle-SymbolicName for lucene-analyzers to be + `analysis' instead of `analyzers' (Closes: #566445) + + -- Jan-Pascal van Best Sat, 23 Jan 2010 20:27:45 +0100 + +lucene2 (2.9.1+ds1-4) unstable; urgency=low + + * Disable calling svnversion during package build + * Backport upstream fix (svn 834011): fix bug that causes false positive + failure in the test (Closes: #562308) + + -- Jan-Pascal van Best Fri, 22 Jan 2010 12:49:57 +0100 + +lucene2 (2.9.1+ds1-3) unstable; urgency=low + + * Mention in this changelog that CVE-2007-2383 has been fixed + (Closes: #558355; Fix CVE-2007-2383) + * Providing OSGi metadata in the Manifest for the + core and contrib packages (needed for building Eclipse). + + -- Jan-Pascal van Best Wed, 20 Jan 2010 13:54:48 +0100 + +lucene2 (2.9.1+ds1-2) unstable; urgency=low + + * Removed (unused) embedded Prototype javascript library + (Closes: #555225, #555226; Fix CVE-2007-2383) + * Added README.source containing information about how to create the Debian + source from the upstream source tarball + + -- Jan-Pascal van Best Thu, 19 Nov 2009 20:45:04 +0100 + +lucene2 (2.9.1+ds1-1) unstable; urgency=low + + * New upstream release 2.9.1 + + -- Jan-Pascal van Best Fri, 06 Nov 2009 21:22:26 +0100 + +lucene2 (2.9.0+ds1-3) unstable; urgency=low + + * Fix contrib/ant unit test for running under pbuilder + * Disable backwards compatibility tests because these download older versions + from the Apache Lucene svn repository + * Moved a number of dependencies to Recommends: because they are only + dependencies of a contrib library: + libicu4j-java: contrib/collation + libjline-java: contrib/lucli + libjtidy-java: contrib/ant + libregexp-java: contrib/regex + libcommons-beanutils-java, libcommons-collections3-java, + libcommons-compress-java, libcommons-digester-java, + libcommons-logging-java: contrib/benchmark + libdb4.7-java, libdb-je-java: contrib/db + * Changed JRE depends to the -headless versions + + -- Jan-Pascal van Best Thu, 05 Nov 2009 22:49:39 +0100 + +lucene2 (2.9.0+ds1-2) unstable; urgency=low + + * Updated Java source and target version to 1.5 (Closes: #549812) + * Added missing dependency on libicu4j-java (for contrib/collation) + * Added missing dependency on libjtidy-java (for contrib/ant) + * Fix lucli script (shebang line was places after the license block) + * Converted debian/copyright to machine-readable format + + -- Jan-Pascal van Best Wed, 04 Nov 2009 10:27:47 +0100 + +lucene2 (2.9.0+ds1-1) unstable; urgency=low + + * New upstream version + * Updated Debian patches for Lucene 2.9 + * Bumped standards version to 3.8.3 (no changes needed) + + -- Jan-Pascal van Best Fri, 09 Oct 2009 16:02:03 +0200 + +lucene2 (2.4.1+ds1-1) unstable; urgency=low + + * New upstream version (2.4.1). + * Changed Section from "text" to the new section "java". + + -- Jan-Pascal van Best Tue, 09 Jun 2009 14:24:27 +0200 + +lucene2 (2.4.0+ds1-5) unstable; urgency=low + + * Changed Breaks to Conflicts to prevent trouble with buildds still + running Etch. + + -- Jan-Pascal van Best Sun, 01 Mar 2009 07:31:37 +0100 + +lucene2 (2.4.0+ds1-4) unstable; urgency=low + + * Added a Breaks: control field to indicate incompatibility with versions + of solr-common before 1.2.0+ds2-3 (Closes: 516291). + + -- Jan-Pascal van Best Fri, 27 Feb 2009 23:39:14 +0100 + +lucene2 (2.4.0+ds1-3) unstable; urgency=low + + * Re-enable Highlighter unit test because it no longer causes network access + (Closes: 50678). + * Added ${misc:Depends} dependencies to fix possible debhelper dependencies. + * Cleaned up package description of liblucene2-java (removed list of contrib + libraries) + * Removed two invalid tests also removed upstream (Closes: #516475). + + -- Jan-Pascal van Best Thu, 26 Feb 2009 20:57:33 +0100 + +lucene2 (2.4.0+ds1-2) unstable; urgency=low + + * switch to libdb4.6-java as we need the armel binary of it since OOo/armel + needs us + * add myself to Uploaders: + + -- Rene Engelhard Mon, 24 Nov 2008 00:18:01 +0100 + +lucene2 (2.4.0+ds1-1) unstable; urgency=low + + * New upstream version (2 patches patched) + * Add DM-Upload-Allowed: Yes to debian/control + + -- Jan-Pascal van Best Sat, 11 Oct 2008 22:46:02 +0200 + +lucene2 (2.3.2+ds1-1) unstable; urgency=low + + * New upstream release + * Use openjdk to build lucene2, move to main (Closes: #488895) + * Update TODO.Debian to reflect move to openjdk + * Update README.Debian to reflect inclusion of bdb-je (in 2.3.0+ds1-1) + * Bump Standards-Version to 3.8.0 + * Update debian/copyright to refer to the text of the Apache license in + /usr/share/common-licenses/ + * Clean up some cruft (failed-unittest-log.txt, KEYS, rules-backup) per + suggestion of Jeff Breidenbach + + -- Jan-Pascal van Best Mon, 28 Jul 2008 21:57:05 +0200 + +lucene2 (2.3.1+ds1-1) unstable; urgency=low + + [ Michael Koch ] + * Updated watch file to work with repackaged version number. + + [ Jan-Pascal van Best ] + * New upstream release + + -- Jan-Pascal van Best Thu, 27 Mar 2008 06:47:48 +0100 + +lucene2 (2.3.0+ds1-1) unstable; urgency=low + + [ Varun Hiremath ] + * New upstream release + * Enable bdb-je integration (Closes: #450569) + * debian/patches: + - Remove 55_disable-db-jre-compilation.dpatch + + Add 55_fix-contrib-db-je-libs.dpatch to enable bdb-je integration + * Move the following patches to old dir as they are no longer applicable: + + old/20_remove-gdata-server.dpatch + + old/81_fix-javadocs-links.dpatch + + old/82_fix-javadoc-external-link-for-gcj.dpatch + + old/80_fix-javadocs-classpath.dpatch + * debian/control: + + Add libdb-je-java to Build-Depends-Indep + + Add Homepage header and replace XS-Vcs with Vcs + + Bump debhelper compat to 6 + + Bump Standards-Version to 3.7.3 + + [ Jan-Pascal van Best ] + * Removed generated (javacc) files from orig.tar.gz. + * Updated Debian version to x.y.z+ds1-1, since it is a repackaged source + * Install the class documentation into the -doc package instead of into the + main package + * Added Debian packaging copyright information + * Added missing descriptions to patch files + * Prevent the test run to download anything, which would not work for + autobuilders + + -- Jan-Pascal van Best Fri, 01 Feb 2008 14:18:11 +0100 + +lucene2 (2.2.0-2) unstable; urgency=low + + * Use libdb4.5-java instead of libdb4.3-java, which is removed from Debian. + * Move to cdbs + * Expanded man page a little + + -- Jan-Pascal van Best Tue, 04 Sep 2007 21:02:06 +0200 + +lucene2 (2.2.0-1) unstable; urgency=low + + * New upstream release (2.2.0) + * Repackaged source tarball, removing third party jars + * Added links in lucene javadocs to locally installed ant and regexp javadocs + * Updated README.Debian for running the example webapp with tomcat5.5 + + -- Jan-Pascal van Best Sat, 14 Jul 2007 12:42:29 +0200 + +lucene2 (2.1.0-1) unstable; urgency=low + + * New upstream release (2.1.0) + * Fixes compilation of lucli, dbd, dbd-je, regex contrib jar files + + -- Jan-Pascal van Best Tue, 10 Apr 2007 14:23:52 +0200 --- lucene2-2.9.4+ds1.orig/debian/compat +++ lucene2-2.9.4+ds1/debian/compat @@ -0,0 +1 @@ +6 --- lucene2-2.9.4+ds1.orig/debian/rules +++ lucene2-2.9.4+ds1/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk +include /usr/share/cdbs/1/class/ant.mk + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_INSTALL_CHANGELOGS_liblucene2-java := CHANGES.txt + +JAVA_HOME := /usr/lib/jvm/default-java + +DEB_ANT_BUILD_TARGET := javacc jar-core build-contrib war-demo javadocs +DEB_ANT_CHECK_TARGET := test +DEB_ANT_CLEAN_TARGET := clean clean-javacc + +# Needed for running javacc and the unit tests +DEB_JARS = ant-nodeps ant-contrib ant-junit junit + +# Upstream Lucene name +UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*" | sed -e "s/~/-/" ) +UPSTREAM_BASENAME := lucene-$(UPSTREAM_VERSION) +CHANGESFILE = ../lucene2_$(DEB_VERSION)_$(DEB_BUILD_ARCH).changes + +clean:: + # 'ant test' in contrib/db leaves some stuff behind... + rm -rf $(CURDIR)/contrib/db/bdb/index + # Same for 'ant test' in contrib/benchmark + rm -rf $(CURDIR)/contrib/benchmark/temp/* + rm -rf $(CURDIR)/contrib/benchmark/work/index + rm -rf $(CURDIR)/contrib/benchmark/work/reuters + rm -rf $(CURDIR)/contrib/benchmark/work/reuters-out + # Tags for backward compatibility testing + rm -rf $(CURDIR)/tags + # remove keyring, since it is a binary file + rm -f debian/lucene-keyring.gpg + rm -f debian/KEYS + # remove all javacc-generated files from src and contrib, except those + # that are not regenerated properly + # Now done in build.xml target clean-javacc + #fgrep -Rl "Generated By:JavaCC:" $(CURDIR)/src/ $(CURDIR)/contrib/ | grep -v analysis/standard/ParseException.java\\\|precedence\\\|surround | xargs rm -f + +install/liblucene2-java:: + # Install the libraries into the liblucene2-java package + + # Install the core library + install -m 0644 build/lucene-core-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java + ln -s lucene-core-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-core.jar + + # Install contrib libraries + CONTRIB_JARS=`find build/contrib/ -name \*-$(UPSTREAM_VERSION).jar` ; \ + for jarfile in $$CONTRIB_JARS; do \ + install -m 0644 "$$jarfile" $(CURDIR)/debian/liblucene2-java/usr/share/java ; \ + CONTRIB=`echo $$jarfile | sed "s/.*\\/lucene-\\([-a-z]*\\)-.*\\.jar/\\1/"` ; \ + ln -s lucene-$$CONTRIB-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-$$CONTRIB.jar ; \ + done + install -d $(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java + install contrib/lucli/run.sh $(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java/lucli + gzip $(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java/lucli.1.gz + +install/liblucene2-java-doc:: + # Install the documentation into the liblucene2-java-doc package + + mkdir -p $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/ + cp -r docs $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/ + cp -r build/docs/* $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/ + # Remove empty directories + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/css + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/scripts + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/translations + # Remove unused embedded prototype library + rm -f $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/prototype.js + install -d $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo + install -m 644 build/lucene-demos-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/ + install -m 644 build/luceneweb.war $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/ + +remove-source: + rm -f build.xml + rm -f common-build.xml + rm -f *.txt + rm -f *stamp + rm -f *pom.xml.template + rm -rf debian/patched + rm -rf build dist docs example lib src contrib + +restore-from-source: remove-source + tar xzf ../lucene2_$(DEB_UPSTREAM_VERSION).orig.tar.gz + mv $(UPSTREAM_BASENAME)/* . + rmdir $(UPSTREAM_BASENAME) + +get-orig-source: + debian/get-orig-source.sh + +check: + lintian -i $(CHANGESFILE) + zgrep "^---" ../lucene2_$(DEB_VERSION).diff.gz | grep -v debian ; [ $$? != 0 ] + ( for p in $(DEB_ALL_PACKAGES); do \ + dpkg --contents ../$${p}_$(DEB_VERSION)_all.deb ; \ + done ) | less + +upload: + dupload -t mentors $(CHANGESFILE) + +.PHONY: patched build clean binary-indep binary-arch binary install install-indep install-arch configure --- lucene2-2.9.4+ds1.orig/debian/README.source +++ lucene2-2.9.4+ds1/debian/README.source @@ -0,0 +1,5 @@ +The lucene2_2.2.0.orig.tar.gz tarball was created by removing all +third party jars from the above upstream source. Use the script +debian/get-orig-source.sh to download the upstream source and +create lucene2_2.2.0.orig.tar.gz + --- lucene2-2.9.4+ds1.orig/debian/control +++ lucene2-2.9.4+ds1/debian/control @@ -0,0 +1,66 @@ +Source: lucene2 +Section: java +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: Barry Hawkins , + Jeff Breidenbach , + Michael Koch , + Rene Engelhard +DM-Upload-Allowed: yes +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/lucene2/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/lucene2/ +Homepage: http://lucene.apache.org/java/ +Build-Depends: ant-contrib, + ant-optional (>= 1.8), + cdbs (>= 0.4.49), + debhelper (>= 6), + default-jdk, + dpatch (>= 2.0), + javacc, + junit +Build-Depends-Indep: libcommons-beanutils-java (>= 1.7.0), + libcommons-collections3-java (>= 3.1), + libcommons-compress-java (>= 1.0), + libcommons-digester-java (>= 1.7), + libcommons-logging-java (>= 1.0.4), + libdb-java (>= 5.1.4), + libdb-je-java (>= 3.2.68), + libicu4j-java (>= 3.8.1), + libjline-java (>= 0.9.5), + libjtidy-java (>= 7+svn20070309), + libregexp-java (>= 1.4) +Standards-Version: 3.9.2 + +Package: liblucene2-java +Architecture: all +Depends: ${misc:Depends} +Recommends: libcommons-beanutils-java (>= 1.7.0), + libcommons-collections3-java (>= 3.1), + libcommons-compress-java (>= 1.0), + libcommons-digester-java (>= 1.7), + libcommons-logging-java (>= 1.0.4), + libdb-java (>= 5.1.4), + libdb-je-java (>= 3.2.68), + libicu4j-java (>= 3.8.1), + libjline-java (>= 0.9.5), + libjtidy-java (>= 7+svn20070309), + libregexp-java (>= 1.4) +Breaks: eclipse-platform (<= 3.5.2-11), solr-common (<< 1.2.0+ds2-3) +Description: Full-text search engine library for Java(TM) + Lucene is a full-text search engine for the Java(TM) programming language. + Lucene is not a complete application, but rather a code library and API + that can easily be used to add search capabilities to applications. + . + This package contains the Lucene core library and a number of additional + (contributed) libraries. + +Package: liblucene2-java-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Recommends: ant-doc, libregexp-java (>= 1.4) +Description: Documentation for Lucene + Lucene is a full-text search engine for the Java(TM) programming language. + Lucene is not a complete application, but rather a code library and API + that can easily be used to add search capabilities to applications. + This package contains class API documentation for Lucene. --- lucene2-2.9.4+ds1.orig/debian/dirs +++ lucene2-2.9.4+ds1/debian/dirs @@ -0,0 +1,2 @@ +usr/share/java + --- lucene2-2.9.4+ds1.orig/debian/watch +++ lucene2-2.9.4+ds1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+ds\d// \ +http://www.apache.org/dist/lucene/java/(2\.9\.\d)/lucene-(2\.9.\d)-src\.tar\.gz --- lucene2-2.9.4+ds1.orig/debian/liblucene2-java.postinst +++ lucene2-2.9.4+ds1/debian/liblucene2-java.postinst @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for liblucene2-java +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + update-alternatives \ + --install /usr/bin/lucli \ + lucli \ + /usr/lib/liblucene2-java/lucli \ + 20 \ + --slave /usr/share/man/man1/lucli.1.gz \ + lucli.1.gz \ + /usr/lib/liblucene2-java/lucli.1.gz + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + # dummy + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- lucene2-2.9.4+ds1.orig/debian/ant.properties +++ lucene2-2.9.4+ds1/debian/ant.properties @@ -0,0 +1,17 @@ +# Ant properties file for Debian lucene source package + +# Version number for upstream source; errors in the +# upstream source require that it be overridden. +version=2.9.4 + +# javacc settings used by Lucene build +javacc.home=/usr/share/java +javacc.jar=/usr/share/java/javacc.jar + +# javac settings used by Lucene compilation +javac.debug=on +javac.verbose=yes +# build.rmic=kaffe +build.compiler=javac1.5 +compile.debug=on +compile.optimize=on --- lucene2-2.9.4+ds1.orig/debian/README.Debian +++ lucene2-2.9.4+ds1/debian/README.Debian @@ -0,0 +1,58 @@ +Debian notes for Lucene-2.2.0 +----------------------------- + +There are two binary packages: +- liblucene2-java contains the core lucene library and most + contrib libraries +- liblucene2-java-doc contains Lucene documentation, API + docs, and example applications + +Not all contrib libraries are included: +- gdata-server depends on many libraries, of which at least the + Google Data API (com.google.gdata) packages are not in Debian + +The Javadoc(TM) for Lucene are included in the liblucene2-java-doc +package, in /usr/share/doc/liblucene2-java-doc/docs/api + +The Lucene demo applications are included in the liblucene2-java-doc +package, in /usr/share/doc/liblucene2-java-doc/demo. The demonstration +applications require additional configuration to be used. To configure +and run the demonstration command-line applications for Lucene, see +the following documentation and source code walkthrough: + + /usr/share/doc/liblucene2-java-doc/docs/demo.html + +Several modifications are required if you wish to run the Lucene web +application on a stock Debian tomcat5.5 configuration. Note that Debian's +default Tomcat configuration may have changed since these instructions +were written. + +1) The Lucene web application looks for Lucene index data in + /opt/lucene/index, although we may change this location in a + future version of the Debian package. When calling IndexHTML, + make sure the index files are stored there. + +2) Install the Lucene demo application by decompressing + /usr/share/doc/liblucene2-java-doc/demo/luceneweb.war.gz + and copying the resulting luceneweb.war file to + /var/lib/tomcat5.5/webapps: + gzip -cd /usr/share/doc/liblucene2-java-doc/demo/luceneweb.war.gz > /var/lib/tomcat5.5/webapps/luceneweb.war + +3) You will need to add a file (e.g., named 60lucenedemo.policy) + to /etc/tomcat5.5/policy.d/ to allow the Lucene demo web application + to access a number of files and settings: + + // Allows luceneweb demo to work + grant codeBase "file:${catalina.base}/webapps/luceneweb/-" { + permission java.util.PropertyPermission "disableLuceneLocks", "read"; + permission java.util.PropertyPermission "java.io.tmpdir", "read"; + permission java.util.PropertyPermission "org.apache.lucene.*", "read"; + permission java.io.FilePermission "/opt/lucene/index", "read,write"; + permission java.io.FilePermission "/opt/lucene/index/*", "read,write"; + permission java.io.FilePermission "/var/lib/tomcat5.5/temp", "read,write,delete"; + permission java.io.FilePermission "/var/lib/tomcat5.5/temp/*", "read,write,delete"; + }; + + -- Barry Hawkins , Fri, 5 May 2006 23:53:38 -0400 + Jan-Pascal van Best , Thu, 12 Jul 2007 07:57:20 +0200 + --- lucene2-2.9.4+ds1.orig/debian/uscan-url.xslt +++ lucene2-2.9.4+ds1/debian/uscan-url.xslt @@ -0,0 +1,10 @@ + + + + + + + + + + --- lucene2-2.9.4+ds1.orig/debian/copyright +++ lucene2-2.9.4+ds1/debian/copyright @@ -0,0 +1,93 @@ +Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 +Upstream-Name: lucene2 +Source: http://lucene.apache.org/java/ + +Files: * +Copyright: 2006-2009 The Apache Software Foundation +License: Apache-2 + +Files: debian/* +Copyright: 2007-2009 Jan-Pascal van Best +License: Apache-2 + +Files: src/java/org/apache/lucene/util/UnicodeUtil.java +Copyright: 2001-2004 Unicode, Inc. +License: Unicode and Apache-2 + +Files: src/java/org/apache/lucene/util/ArrayUtil.java +Copyright: 1991-2005 Python Software Foundation +License: PSF-2.4 and Apache-2 + +License: Apache-2 + On Debian systems, the complete text of the Apache + License, version 2.0, can be found in the + `/usr/share/common-licenses/Apache-2.0' file. + +License: PSF-2.4 + PSF LICENSE AGREEMENT FOR PYTHON 2.4 + ------------------------------------ + . + 1. This LICENSE AGREEMENT is between the Python Software Foundation + ("PSF"), and the Individual or Organization ("Licensee") accessing and + otherwise using Python 2.4 software in source or binary form and its + associated documentation. + . + 2. Subject to the terms and conditions of this License Agreement, PSF + hereby grants Licensee a nonexclusive, royalty-free, world-wide + license to reproduce, analyze, test, perform and/or display publicly, + prepare derivative works, distribute, and otherwise use Python 2.4 + alone or in any derivative version, provided, however, that PSF's + License Agreement and PSF's notice of copyright, i.e., "Copyright (c) + 2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved" + are retained in Python 2.4 alone or in any derivative version prepared + by Licensee. + . + 3. In the event Licensee prepares a derivative work that is based on + or incorporates Python 2.4 or any part thereof, and wants to make + the derivative work available to others as provided herein, then + Licensee hereby agrees to include in any such work a brief summary of + the changes made to Python 2.4. + . + 4. PSF is making Python 2.4 available to Licensee on an "AS IS" + basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR + IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND + DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.4 WILL NOT + INFRINGE ANY THIRD PARTY RIGHTS. + . + 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON + 2.4 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS + A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.4, + OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + . + 6. This License Agreement will automatically terminate upon a material + breach of its terms and conditions. + . + 7. Nothing in this License Agreement shall be deemed to create any + relationship of agency, partnership, or joint venture between PSF and + Licensee. This License Agreement does not grant permission to use PSF + trademarks or trade name in a trademark sense to endorse or promote + products or services of Licensee, or any third party. + . + 8. By copying, installing or otherwise using Python 2.4, Licensee + agrees to be bound by the terms and conditions of this License + Agreement. + +License: Unicode + Disclaimer + . + This source code is provided as is by Unicode, Inc. No claims are + made as to fitness for any particular purpose. No warranties of any + kind are expressed or implied. The recipient agrees to determine + applicability of information provided. If this file has been + purchased on magnetic or optical media from Unicode, Inc., the + sole remedy for any claim will be exchange of defective media + within 90 days of receipt. + . + Limitations on Rights to Redistribute This Code + . + Unicode, Inc. hereby grants the right to freely use the information + supplied in this file in the creation of products supporting the + Unicode Standard, and to make copies of this file in any form + for internal or external distribution as long as this notice + remains attached. --- lucene2-2.9.4+ds1.orig/debian/docs +++ lucene2-2.9.4+ds1/debian/docs @@ -0,0 +1,3 @@ +BUILD.txt +NOTICE.txt +README.txt --- lucene2-2.9.4+ds1.orig/debian/uscan-upstream-version.xslt +++ lucene2-2.9.4+ds1/debian/uscan-upstream-version.xslt @@ -0,0 +1,10 @@ + + + + + + + + + + --- lucene2-2.9.4+ds1.orig/debian/patches/82_disable-svnversion-calls.dpatch +++ lucene2-2.9.4+ds1/debian/patches/82_disable-svnversion-calls.dpatch @@ -0,0 +1,48 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 82_disable-svnversion-calls.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/common-build.xml lucene2/common-build.xml +--- lucene2~/common-build.xml 2010-08-06 11:29:27.000000000 +0200 ++++ lucene2/common-build.xml 2010-08-06 11:30:19.000000000 +0200 +@@ -99,15 +99,6 @@ + + + +- +- +- +- + + + +@@ -305,7 +296,7 @@ + + + ++ value="${version} - ${DSTAMP} ${TSTAMP}"/> + + + + +- +- +- +- +- + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/contrib/db/bdb-je/build.xml lucene2/contrib/db/bdb-je/build.xml +--- lucene2~/contrib/db/bdb-je/build.xml 2010-06-05 23:08:23.000000000 +0200 ++++ lucene2/contrib/db/bdb-je/build.xml 2010-08-06 10:15:30.000000000 +0200 +@@ -27,7 +27,7 @@ + + + +- ++ + + + +@@ -51,17 +51,5 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- ++ + --- lucene2-2.9.4+ds1.orig/debian/patches/60_fix-contrib-lucli-libs.dpatch +++ lucene2-2.9.4+ds1/debian/patches/60_fix-contrib-lucli-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 60_fix-contrib-lucli-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/lucli to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/lucli/build.xml trunk/contrib/lucli/build.xml +--- trunk~/contrib/lucli/build.xml 2007-06-04 06:02:20.000000000 +0200 ++++ trunk/contrib/lucli/build.xml 2007-06-05 13:52:51.000000000 +0200 +@@ -25,7 +25,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/contrib/db/bdb/build.xml lucene2/contrib/db/bdb/build.xml +--- lucene2~/contrib/db/bdb/build.xml 2010-06-05 23:08:23.000000000 +0200 ++++ lucene2/contrib/db/bdb/build.xml 2010-08-06 10:07:42.000000000 +0200 +@@ -21,13 +21,11 @@ + Lucene Berkeley DB integration + + +- +- + + + + +- ++ + + + +@@ -51,12 +49,6 @@ + + + +- +- +- +- +- + + + + +- +- ++ + + --- lucene2-2.9.4+ds1.orig/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch +++ lucene2-2.9.4+ds1/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch @@ -0,0 +1,34 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fix bug that causes false positive failure in the test +## DP: Apache Lucene svn revision 834011 + +@DPATCH@ +diff -urNad lucene2~/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java lucene2/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java +--- lucene2~/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java 2009-10-23 17:21:47.000000000 +0200 ++++ lucene2/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java 2010-01-22 12:49:03.000000000 +0100 +@@ -80,7 +80,8 @@ + searcher = new IndexSearcher(directory); + + String qtxt = "one"; +- for (int i = 0; i < docText.length; i++) { ++ // start from 1, so that the 0th doc never matches ++ for (int i = 1; i < docText.length; i++) { + qtxt += ' ' + docText[i]; // large query so that search will be longer + } + QueryParser queryParser = new QueryParser(FIELD_NAME, new WhitespaceAnalyzer()); +diff -urNad lucene2~/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java lucene2/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java +--- lucene2~/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java 2009-10-23 17:21:47.000000000 +0200 ++++ lucene2/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java 2010-01-22 12:44:21.000000000 +0100 +@@ -82,7 +82,8 @@ + searcher = new IndexSearcher(directory); + + String qtxt = "one"; +- for (int i = 0; i < docText.length; i++) { ++ // start from 1, so that the 0th doc never matches ++ for (int i = 1; i < docText.length; i++) { + qtxt += ' ' + docText[i]; // large query so that search will be longer + } + QueryParser queryParser = new QueryParser(FIELD_NAME, new WhitespaceAnalyzer()); --- lucene2-2.9.4+ds1.orig/debian/patches/80_prevent-downloading-data-files.dpatch +++ lucene2-2.9.4+ds1/debian/patches/80_prevent-downloading-data-files.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 80_prevent-downloading-data-files.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/contrib/benchmark/build.xml lucene2/contrib/benchmark/build.xml +--- lucene2~/contrib/benchmark/build.xml 2010-08-06 10:17:10.000000000 +0200 ++++ lucene2/contrib/benchmark/build.xml 2010-08-06 10:31:07.000000000 +0200 +@@ -171,8 +171,8 @@ + + + +- +- ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/61_lucli-script.dpatch +++ lucene2-2.9.4+ds1/debian/patches/61_lucli-script.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 61_lucli-script.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix the lucli run.sh script to use the jar files in the +## DP: standard locations. + +@DPATCH@ +diff -urNad lucene2~/contrib/lucli/run.sh lucene2/contrib/lucli/run.sh +--- lucene2~/contrib/lucli/run.sh 2009-10-09 13:00:12.000000000 +0200 ++++ lucene2/contrib/lucli/run.sh 2009-10-09 13:01:00.000000000 +0200 +@@ -1,3 +1,4 @@ ++#!/bin/sh + + # Licensed to the Apache Software Foundation (ASF) under one or more + # contributor license agreements. See the NOTICE file distributed with +@@ -14,9 +15,8 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-LUCLI=. ++LUCLI=/usr/share/java + LUCLI_MEMORY=128M +-#JAVA_HOME=/home/dror/j2sdk1.4.1_03/ +-CLASSPATH=${CLASSPATH}:$LUCLI/lib/jline.jar:$LUCLI/lib/lucene.jar:$LUCLI/dist/lucli-dev.jar ++CLASSPATH=${CLASSPATH}:$LUCLI/jline.jar:$LUCLI/lucene-core.jar:$LUCLI/lucene-lucli.jar + export CLASSPATH +-$JAVA_HOME/bin/java -Xmx${LUCLI_MEMORY} lucli.Lucli ++java -Xmx${LUCLI_MEMORY} lucli.Lucli --- lucene2-2.9.4+ds1.orig/debian/patches/83_fix-java-IPv4-networking.dpatch +++ lucene2-2.9.4+ds1/debian/patches/83_fix-java-IPv4-networking.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 83_fix-java-IPv4-networking.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +--- lucene2-2.9.1+ds1.orig/common-build.xml ++++ lucene2-2.9.1+ds1/common-build.xml +@@ -54,7 +54,7 @@ + + + +- ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/31_fix-contrib-ant-test-wrong-encoding.dpatch +++ lucene2-2.9.4+ds1/debian/patches/31_fix-contrib-ant-test-wrong-encoding.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 31_fix-contrib-ant-test-wrong-encoding.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: The URL decoding caused the test to fail when building with pbuilder, +## DP: because the '+' sign in the Debian version number was converted to +## DP: a space. This patch removes the URL decoding. + +@DPATCH@ +diff -urNad lucene2~/contrib/ant/src/test/org/apache/lucene/ant/DocumentTestCase.java lucene2/contrib/ant/src/test/org/apache/lucene/ant/DocumentTestCase.java +--- lucene2~/contrib/ant/src/test/org/apache/lucene/ant/DocumentTestCase.java 2009-06-27 12:58:40.000000000 +0200 ++++ lucene2/contrib/ant/src/test/org/apache/lucene/ant/DocumentTestCase.java 2009-11-05 09:34:23.000000000 +0100 +@@ -33,7 +33,7 @@ + String fullname = + this.getClass().getResource(filename).getFile(); + +- File file = new File(URLDecoder.decode(fullname, "UTF-8")); ++ File file = new File(fullname); + + return file; + } --- lucene2-2.9.4+ds1.orig/debian/patches/00list +++ lucene2-2.9.4+ds1/debian/patches/00list @@ -0,0 +1,19 @@ +01_remove_all_jarfiles.dpatch +05_add-osgi-metadata-in-manifests.dpatch +10_fix-javacc-locations.dpatch +11_fix-javacc-generated-files.dpatch +12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch +20_fix-java-compiler-version.dpatch +30_fix-contrib-ant-libs.dpatch +31_fix-contrib-ant-test-wrong-encoding.dpatch +40_fix-contrib-benchmark-libs.dpatch +45_fix-contrib-collation-libs.dpatch +50_fix-contrib-db-libs +55_fix-contrib-db-je-libs +60_fix-contrib-lucli-libs.dpatch +61_lucli-script.dpatch +70_fix-contrib-regex-libs.dpatch +80_prevent-downloading-data-files +81_disable-test-tag-backcompat-tests.dpatch +82_disable-svnversion-calls +83_fix-java-IPv4-networking.dpatch --- lucene2-2.9.4+ds1.orig/debian/patches/45_fix-contrib-collation-libs.dpatch +++ lucene2-2.9.4+ds1/debian/patches/45_fix-contrib-collation-libs.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 45_fix-contrib-collation-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/contrib/collation/build.xml lucene2/contrib/collation/build.xml +--- lucene2~/contrib/collation/build.xml 2009-08-19 20:22:41.000000000 +0200 ++++ lucene2/contrib/collation/build.xml 2009-08-20 11:16:40.000000000 +0200 +@@ -26,7 +26,7 @@ + + + +- ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/70_fix-contrib-regex-libs.dpatch +++ lucene2-2.9.4+ds1/debian/patches/70_fix-contrib-regex-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 70_fix-contrib-regex-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/regex to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/regex/build.xml trunk/contrib/regex/build.xml +--- trunk~/contrib/regex/build.xml 2007-06-04 06:02:22.000000000 +0200 ++++ trunk/contrib/regex/build.xml 2007-06-05 13:58:54.000000000 +0200 +@@ -24,7 +24,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix lucene's build configuration to find javacc + +@DPATCH@ +diff -urNad lucene2-2.3.0~/common-build.xml lucene2-2.3.0/common-build.xml +--- lucene2-2.3.0~/common-build.xml 2008-01-26 15:39:14.000000000 +0530 ++++ lucene2-2.3.0/common-build.xml 2008-01-26 15:42:13.000000000 +0530 +@@ -69,7 +69,8 @@ + + + +- ++ ++ + + + +@@ -101,7 +102,7 @@ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Source version 1.5 needed because of annotations. The Debian package +## DP: already depends on java >= 1.5 + +@DPATCH@ +diff -urNad lucene2~/common-build.xml lucene2/common-build.xml +--- lucene2~/common-build.xml 2009-11-03 22:32:24.000000000 +0100 ++++ lucene2/common-build.xml 2009-11-03 22:35:55.000000000 +0100 +@@ -58,8 +58,8 @@ + + + +- +- ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/11_fix-javacc-generated-files.dpatch +++ lucene2-2.9.4+ds1/debian/patches/11_fix-javacc-generated-files.dpatch @@ -0,0 +1,42 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 11_fix-javacc-generated-files.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/contrib/queryparser/build.xml lucene2/contrib/queryparser/build.xml +--- lucene2~/contrib/queryparser/build.xml 2009-10-08 18:23:39.000000000 +0200 ++++ lucene2/contrib/queryparser/build.xml 2009-10-08 18:24:45.000000000 +0200 +@@ -54,8 +54,8 @@ + match="^ public ParseException\(Token currentTokenVal.*$(\s\s[^}].*\n)* \}" + replace=" public ParseException(Token currentTokenVal, + int[][] expectedTokenSequencesVal, String[] tokenImageVal) { +- super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise( +- currentTokenVal, expectedTokenSequencesVal, tokenImageVal))); ++ super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, new Object[]{initialise( ++ currentTokenVal, expectedTokenSequencesVal, tokenImageVal)})); + this.currentToken = currentTokenVal; + this.expectedTokenSequences = expectedTokenSequencesVal; + this.tokenImage = tokenImageVal; +@@ -72,7 +72,7 @@ + +@@ -88,6 +88,11 @@ + replace=" static private String add_escapes(String str) {" + flags="g" + byline="false"/> ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/05_add-osgi-metadata-in-manifests.dpatch +++ lucene2-2.9.4+ds1/debian/patches/05_add-osgi-metadata-in-manifests.dpatch @@ -0,0 +1,161 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_add-osgi-metadata-in-manifests.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2010-08-06 13:44:30.000000000 +0200 ++++ lucene2/build.xml 2010-08-06 13:44:32.000000000 +0200 +@@ -21,6 +21,16 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/common-build.xml lucene2/common-build.xml +--- lucene2~/common-build.xml 2010-08-06 13:44:30.000000000 +0200 ++++ lucene2/common-build.xml 2010-08-06 13:46:16.000000000 +0200 +@@ -23,6 +23,8 @@ + for standalone use. + + ++ ++ + + + ++ ++ ++ ++ + + + +@@ -328,6 +357,12 @@ + + + ++ ++ ++ ++ ++ ++ + + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- ++ + + + +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/contrib/analyzers/smartcn/build.xml lucene2/contrib/analyzers/smartcn/build.xml +--- lucene2~/contrib/analyzers/smartcn/build.xml 2010-08-06 13:44:30.000000000 +0200 ++++ lucene2/contrib/analyzers/smartcn/build.xml 2010-08-06 13:44:32.000000000 +0200 +@@ -30,6 +30,15 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' lucene2~/contrib/contrib-build.xml lucene2/contrib/contrib-build.xml +--- lucene2~/contrib/contrib-build.xml 2010-08-06 13:44:30.000000000 +0200 ++++ lucene2/contrib/contrib-build.xml 2010-08-06 13:44:32.000000000 +0200 +@@ -24,7 +24,21 @@ + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/30_fix-contrib-ant-libs.dpatch +++ lucene2-2.9.4+ds1/debian/patches/30_fix-contrib-ant-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 30_fix-contrib-ant-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/ant to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/ant/build.xml trunk/contrib/ant/build.xml +--- trunk~/contrib/ant/build.xml 2007-06-04 06:02:05.000000000 +0200 ++++ trunk/contrib/ant/build.xml 2007-06-05 13:30:58.000000000 +0200 +@@ -25,7 +25,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2009-09-18 01:03:43.000000000 +0200 ++++ lucene2/build.xml 2009-11-05 10:43:38.000000000 +0100 +@@ -80,8 +80,8 @@ + +- + + +@@ -100,50 +100,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Specified tag '${tag}' could not be found in directory '${tags.dir}/${tag}'. +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + --- lucene2-2.9.4+ds1.orig/debian/patches/40_fix-contrib-benchmark-libs.dpatch +++ lucene2-2.9.4+ds1/debian/patches/40_fix-contrib-benchmark-libs.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 39_fix-contrib-benchmark-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/contrib/benchmark/build.xml lucene2/contrib/benchmark/build.xml +--- lucene2~/contrib/benchmark/build.xml 2009-08-20 09:34:18.000000000 +0200 ++++ lucene2/contrib/benchmark/build.xml 2009-08-20 09:35:09.000000000 +0200 +@@ -107,9 +107,13 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/99debug_print-unittest-results.dpatch +++ lucene2-2.9.4+ds1/debian/patches/99debug_print-unittest-results.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 99debug_print-unittest-results-final.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2010-01-25 15:04:52.000000000 +0100 ++++ lucene2/build.xml 2010-01-25 15:28:13.000000000 +0100 +@@ -88,8 +88,11 @@ + + + ++ description="Runs unit tests for the core Lucene code"> ++ ++ ++ ++ + --- lucene2-2.9.4+ds1.orig/debian/patches/01_remove_all_jarfiles.dpatch +++ lucene2-2.9.4+ds1/debian/patches/01_remove_all_jarfiles.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh +## 01_remove_all_jarfiles.dpatch -- Jan-Pascal van Best +## +## DP: We want to be use we do not build using jar files contained +## DP: in the Lucene distribution tarball, so we start by removing +## DP: all jar files. + +OPERATION="$1" +DIRECTORY="$2" + +if [ -z "$OPERATION" ]; then + echo "Illegal arguments" + exit 1 +fi + +if [ -z "$DIRECTORY" ]; then + DIRECTORY="." +fi + +case "$OPERATION" in + -patch) + echo "Removing all jar files under $DIRECTORY" + find $DIRECTORY -name \*.jar -exec rm {} \; + ;; + -unpatch) + echo "Unable to magic back jar files..." + ;; + *) + echo "Illegal command line $1 $2" + exit 1 + ;; +esac + --- lucene2-2.9.4+ds1.orig/debian/patches/old/81_fix-javadocs-links.dpatch +++ lucene2-2.9.4+ds1/debian/patches/old/81_fix-javadocs-links.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 81_fix-javadocs-links.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/build.xml trunk/build.xml +--- trunk~/build.xml 2007-07-13 10:09:09.000000000 +0200 ++++ trunk/build.xml 2007-07-13 10:09:36.000000000 +0200 +@@ -595,6 +595,8 @@ + + + ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/old/11_run-javacc-for-contrib-queryparser.dpatch +++ lucene2-2.9.4+ds1/debian/patches/old/11_run-javacc-for-contrib-queryparser.dpatch @@ -0,0 +1,105 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 11_run-javacc-for-contrib-queryparser.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2009-08-20 23:05:16.000000000 +0200 ++++ lucene2/build.xml 2009-08-20 23:05:18.000000000 +0200 +@@ -568,13 +568,16 @@ + + + ++ ++ ++ + + + + + + +- ++ + + + + + ++ ++ ++ ++ + + + +diff -urNad lucene2~/contrib/queryparser/build.xml lucene2/contrib/queryparser/build.xml +--- lucene2~/contrib/queryparser/build.xml 2009-08-20 23:05:16.000000000 +0200 ++++ lucene2/contrib/queryparser/build.xml 2009-08-20 23:06:20.000000000 +0200 +@@ -35,6 +35,59 @@ + ++ ++ ++ ++ ++ ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/old/82_fix-javadoc-external-link-for-gcj.dpatch +++ lucene2-2.9.4+ds1/debian/patches/old/82_fix-javadoc-external-link-for-gcj.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 82_fix-javadoc-external-link-for-gcj.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: It seems the html doclet included with gcj cannot handle the http +## DP: redirect sent by the Sun web server + +@DPATCH@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2007-08-08 14:27:26.000000000 +0200 ++++ lucene2/build.xml 2007-08-08 14:27:46.000000000 +0200 +@@ -27,7 +27,7 @@ + + + +- ++ + + + --- lucene2-2.9.4+ds1.orig/debian/patches/old/80_fix-javadocs-classpath.dpatch +++ lucene2-2.9.4+ds1/debian/patches/old/80_fix-javadocs-classpath.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 80_fix-javadocs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add depencies to the Javadoc classpath to avoid warnings during +## DP: generation of the apidocs. + +@DPATCH@ +diff -urNad trunk~/build.xml trunk/build.xml +--- trunk~/build.xml 2007-07-13 09:35:18.000000000 +0200 ++++ trunk/build.xml 2007-07-13 09:35:42.000000000 +0200 +@@ -41,6 +41,11 @@ + + + ++ ++ ++ ++ ++ + + + --- lucene2-2.9.4+ds1.orig/debian/source/format +++ lucene2-2.9.4+ds1/debian/source/format @@ -0,0 +1 @@ +1.0