commit
125e080133
BIN
dev-tools.tar.xz
Normal file
BIN
dev-tools.tar.xz
Normal file
Binary file not shown.
67
lucene-3.6.2-analysis-OSGi-MANIFEST.MF
Normal file
67
lucene-3.6.2-analysis-OSGi-MANIFEST.MF
Normal file
@ -0,0 +1,67 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Vendor: The Apache Software Foundation
|
||||
Bundle-Localization: plugin
|
||||
X-Compile-Target-JDK: 1.5
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Bundle-SymbolicName: org.apache.lucene.analysis
|
||||
Require-Bundle: org.apache.lucene.core;bundle-version="[3.6.0,4.0.0)"
|
||||
Export-Package: org.apache.lucene.analysis.ar;version="3.6.2",
|
||||
org.apache.lucene.analysis.bg;version="3.6.2",
|
||||
org.apache.lucene.analysis.br;version="3.6.2",
|
||||
org.apache.lucene.analysis.ca;version="3.6.2",
|
||||
org.apache.lucene.analysis.cjk;version="3.6.2",
|
||||
org.apache.lucene.analysis.cn;version="3.6.2",
|
||||
org.apache.lucene.analysis.compound;version="3.6.2",
|
||||
org.apache.lucene.analysis.compound.hyphenation;version="3.6.2",
|
||||
org.apache.lucene.analysis.cz;version="3.6.2",
|
||||
org.apache.lucene.analysis.da;version="3.6.2",
|
||||
org.apache.lucene.analysis.de;version="3.6.2",
|
||||
org.apache.lucene.analysis.el;version="3.6.2",
|
||||
org.apache.lucene.analysis.en;version="3.6.2",
|
||||
org.apache.lucene.analysis.es;version="3.6.2",
|
||||
org.apache.lucene.analysis.eu;version="3.6.2",
|
||||
org.apache.lucene.analysis.fa;version="3.6.2",
|
||||
org.apache.lucene.analysis.fi;version="3.6.2",
|
||||
org.apache.lucene.analysis.fr;version="3.6.2",
|
||||
org.apache.lucene.analysis.gl;version="3.6.2",
|
||||
org.apache.lucene.analysis.hi;version="3.6.2",
|
||||
org.apache.lucene.analysis.hu;version="3.6.2",
|
||||
org.apache.lucene.analysis.hunspell;version="3.6.2",
|
||||
org.apache.lucene.analysis.hy;version="3.6.2",
|
||||
org.apache.lucene.analysis.id;version="3.6.2",
|
||||
org.apache.lucene.analysis.in;version="3.6.2",
|
||||
org.apache.lucene.analysis.it;version="3.6.2",
|
||||
org.apache.lucene.analysis.lv;version="3.6.2",
|
||||
org.apache.lucene.analysis.miscellaneous;version="3.6.2",
|
||||
org.apache.lucene.analysis.ngram;version="3.6.2",
|
||||
org.apache.lucene.analysis.nl;version="3.6.2",
|
||||
org.apache.lucene.analysis.no;version="3.6.2",
|
||||
org.apache.lucene.analysis.path;version="3.6.2",
|
||||
org.apache.lucene.analysis.payloads;version="3.6.2",
|
||||
org.apache.lucene.analysis.position;version="3.6.2",
|
||||
org.apache.lucene.analysis.pt;version="3.6.2",
|
||||
org.apache.lucene.analysis.query;version="3.6.2",
|
||||
org.apache.lucene.analysis.reverse;version="3.6.2",
|
||||
org.apache.lucene.analysis.ro;version="3.6.2",
|
||||
org.apache.lucene.analysis.ru;version="3.6.2",
|
||||
org.apache.lucene.analysis.shingle;version="3.6.2",
|
||||
org.apache.lucene.analysis.sinks;version="3.6.2",
|
||||
org.apache.lucene.analysis.snowball;version="3.6.2",
|
||||
org.apache.lucene.analysis.sv;version="3.6.2",
|
||||
org.apache.lucene.analysis.synonym;version="3.6.2",
|
||||
org.apache.lucene.analysis.th;version="3.6.2",
|
||||
org.apache.lucene.analysis.tr;version="3.6.2",
|
||||
org.apache.lucene.analysis.util;version="3.6.2",
|
||||
org.apache.lucene.analysis.wikipedia;version="3.6.2"
|
||||
Bundle-Version: 3.6.2
|
||||
Specification-Title: Lucene Search Engine: analyzers
|
||||
Specification-Vendor: The Apache Software Foundation
|
||||
Bundle-Vendor: fedoraproject.org
|
||||
Bundle-Name: Lucene contributed extensions
|
||||
Extension-Name: org.apache.lucene
|
||||
Implementation-Title: org.apache.lucene
|
||||
Import-Package: org.xml.sax;resolution:=optional,
|
||||
javax.xml.parsers;resolution:=optional,
|
||||
org.xml.sax.helpers;resolution:=optional
|
||||
Bundle-ManifestVersion: 2
|
||||
|
||||
28
lucene-3.6.2-core-OSGi-MANIFEST.MF
Normal file
28
lucene-3.6.2-core-OSGi-MANIFEST.MF
Normal file
@ -0,0 +1,28 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Vendor: The Apache Software Foundation
|
||||
Bundle-Localization: plugin
|
||||
X-Compile-Target-JDK: 1.5
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Bundle-SymbolicName: org.apache.lucene.core
|
||||
Import-Package: javax.management
|
||||
Export-Package: org.apache.lucene;version="3.6.2",
|
||||
org.apache.lucene.analysis;version="3.6.2",
|
||||
org.apache.lucene.analysis.standard;version="3.6.2",
|
||||
org.apache.lucene.analysis.standard.std31;version="3.6.2",
|
||||
org.apache.lucene.analysis.tokenattributes;version="3.6.2",
|
||||
org.apache.lucene.collation;version="3.6.2",
|
||||
org.apache.lucene.document;version="3.6.2",
|
||||
org.apache.lucene.index;version="3.6.2",
|
||||
org.apache.lucene.queryParser;version="3.6.2",
|
||||
org.apache.lucene.search;version="3.6.2",
|
||||
org.apache.lucene.search.function;version="3.6.2",
|
||||
org.apache.lucene.search.payloads;version="3.6.2",
|
||||
org.apache.lucene.search.spans;version="3.6.2",
|
||||
org.apache.lucene.store;version="3.6.2",
|
||||
org.apache.lucene.util;version="3.6.2",
|
||||
org.apache.lucene.util.fst;version="3.6.2",
|
||||
org.apache.lucene.util.packed;version="3.6.2"
|
||||
Bundle-Version: 3.6.2
|
||||
Bundle-Vendor: fedoraproject.org
|
||||
Bundle-Name: High-performance, full-featured text search engine
|
||||
Bundle-ManifestVersion: 2
|
||||
33
lucene-3.6.2-hamcrest-core.patch
Normal file
33
lucene-3.6.2-hamcrest-core.patch
Normal file
@ -0,0 +1,33 @@
|
||||
diff -Nru lucene-3.6.2/build.xml lucene-3.6.2.hamcrest-core/build.xml
|
||||
--- lucene-3.6.2/build.xml 2012-04-04 07:32:32.000000000 +0200
|
||||
+++ lucene-3.6.2.hamcrest-core/build.xml 2015-08-07 17:17:28.683822710 +0200
|
||||
@@ -258,6 +258,7 @@
|
||||
<path id="javadoc.classpath">
|
||||
<path refid="classpath"/>
|
||||
<pathelement location="${ant.home}/lib/ant.jar"/>
|
||||
+ <pathelement location="/usr/share/java/hamcrest/core.jar"/>
|
||||
<fileset dir="." includes="test-framework/lib/,contrib/analyzers/phonetic/lib/,contrib/benchmark/lib/,contrib/icu/lib/,contrib/queries/lib/" excludes="**/lib/*.txt"/>
|
||||
</path>
|
||||
|
||||
diff -Nru lucene-3.6.2/common-build.xml lucene-3.6.2.hamcrest-core/common-build.xml
|
||||
--- lucene-3.6.2/common-build.xml 2012-07-21 19:25:04.000000000 +0200
|
||||
+++ lucene-3.6.2.hamcrest-core/common-build.xml 2015-08-07 17:17:28.644824541 +0200
|
||||
@@ -1004,6 +1004,7 @@
|
||||
windowtitle="${Name} ${version} API"
|
||||
doctitle="@{title}"
|
||||
maxmemory="${javadoc.maxmemory}"
|
||||
+ additionalparam="-Xdoclint:none"
|
||||
bottom="Copyright &copy; ${year} Apache Software Foundation. All Rights Reserved.">
|
||||
<tag name="lucene.experimental"
|
||||
description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>
|
||||
diff -Nru lucene-3.6.2/test-framework/build.xml lucene-3.6.2.hamcrest-core/test-framework/build.xml
|
||||
--- lucene-3.6.2/test-framework/build.xml 2012-04-02 19:06:33.000000000 +0200
|
||||
+++ lucene-3.6.2.hamcrest-core/test-framework/build.xml 2015-08-07 17:17:28.614825950 +0200
|
||||
@@ -28,6 +28,7 @@
|
||||
<pathelement location="${common.dir}/build/core/classes/java"/>
|
||||
<path refid="junit-path"/>
|
||||
<path refid="ant-path"/>
|
||||
+ <fileset dir="/usr/share/java" includes="hamcrest/core.jar"/>
|
||||
</path>
|
||||
|
||||
<!--
|
||||
26
lucene-3.6.2-javascript.patch
Normal file
26
lucene-3.6.2-javascript.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff -Nru lucene-3.6.2/common-build.xml lucene-3.6.2.javascript/common-build.xml
|
||||
--- lucene-3.6.2/common-build.xml 2017-02-08 11:18:07.939751772 +0100
|
||||
+++ lucene-3.6.2.javascript/common-build.xml 2017-02-08 11:18:03.656994630 +0100
|
||||
@@ -1012,22 +1012,6 @@
|
||||
description="NOTE: This API is for internal purposes only and might change in incompatible ways in the next release."/>
|
||||
<link offline="true" packagelistLoc="${javadoc.dir}"/>
|
||||
<link offline="true" href="${javadoc.link}" packagelistLoc="${javadoc.packagelist.dir}/java5"/>
|
||||
- <bottom><![CDATA[
|
||||
- <script src='{@docRoot}/prettify.js' type='text/javascript'></script>
|
||||
- <script type='text/javascript'>
|
||||
- (function(){
|
||||
- var oldonload = window.onload;
|
||||
- if (typeof oldonload != 'function') {
|
||||
- window.onload = prettyPrint;
|
||||
- } else {
|
||||
- window.onload = function() {
|
||||
- oldonload();
|
||||
- prettyPrint();
|
||||
- }
|
||||
- }
|
||||
- })();
|
||||
- </script>
|
||||
- ]]></bottom>
|
||||
|
||||
<sources />
|
||||
|
||||
BIN
lucene-3.6.2-src.tgz
Normal file
BIN
lucene-3.6.2-src.tgz
Normal file
Binary file not shown.
117
lucene3.spec
Normal file
117
lucene3.spec
Normal file
@ -0,0 +1,117 @@
|
||||
Summary: High-performance, full-featured text search engine
|
||||
Name: lucene3
|
||||
Version: 3.6.2
|
||||
Release: 1
|
||||
Epoch: 0
|
||||
License: ASL 2.0 and BSD
|
||||
URL: http://lucene.apache.org/
|
||||
Source0: https://archive.apache.org/dist/lucene/java/%{version}/lucene-%{version}-src.tgz
|
||||
Source1: lucene-%{version}-core-OSGi-MANIFEST.MF
|
||||
Source2: lucene-%{version}-analysis-OSGi-MANIFEST.MF
|
||||
Patch0: lucene_contrib_icu4j_v50.patch
|
||||
Patch1: lucene-3.6.2-hamcrest-core.patch
|
||||
Patch2: lucene-3.6.2-javascript.patch
|
||||
Patch3: test-framework.patch
|
||||
#svn export http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_6_2/dev-tools@r145
|
||||
#tar caf dev-tools.tar.xz dev-tools/
|
||||
Source4: dev-tools.tar.xz
|
||||
BuildRequires: ant ant-junit apache-commons-codec apache-commons-compress
|
||||
BuildRequires: apache-commons-digester apache-ivy apache-parent hamcrest-core icu4j ivy-local
|
||||
BuildRequires: javacc java-javadoc jtidy junit lucene3 regexp xerces-j2 subversion
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Apache Lucene is a high-performance, full-featured text search
|
||||
engine library written entirely in Java. It is a technology suitable
|
||||
for nearly any application that requires full-text search, especially
|
||||
cross-platform.
|
||||
|
||||
%package contrib
|
||||
Summary: Lucene contributed extensions
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
%description contrib
|
||||
%{summary}.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for Lucene
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n lucene-%{version}
|
||||
find . -name "*.jar" -delete
|
||||
tar xfs %{SOURCE4}
|
||||
pushd dev-tools
|
||||
find . -name "pom.xml.template" -exec sed -i "s/@version@/%{version}/g" '{}' \;
|
||||
popd
|
||||
iconv --from=ISO-8859-1 --to=UTF-8 CHANGES.txt > CHANGES.txt.new
|
||||
find . -name '*pom.xml.template' -exec \
|
||||
sed -i "s:@version@:%{version}:g" '{}' \;
|
||||
sed -i -e "s|3.5.0|3.6.2|g" backwards/ivy.xml
|
||||
%patch0 -p2
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p0
|
||||
|
||||
%build
|
||||
mkdir -p docs
|
||||
mkdir -p lib
|
||||
export OPT_JAR_LIST="ant/ant-junit junit hamcrest/core"
|
||||
export CLASSPATH=$(build-classpath jtidy regexp commons-codec commons-digester commons-compress icu4j ivy xmvn)
|
||||
ant -Divy.mode=local -Dbuild.sysclasspath=first \
|
||||
-Djavacc.home=%{_bindir}/javacc \
|
||||
-Djavacc.jar=%{_javadir}/javacc.jar \
|
||||
-Djavacc.jar.dir=%{_javadir} \
|
||||
-Djavadoc.link=file://%{_javadocdir}/java \
|
||||
-Dversion=%{version} \
|
||||
-Dfailonjavadocwarning=false \
|
||||
-Dmaven-tasks.uptodate=true \
|
||||
-Djavac.source=1.6 \
|
||||
-Djavac.target=1.6 \
|
||||
-Djavac.source.backwards=1.6 \
|
||||
-Djavac.target.backwards=1.6 \
|
||||
jar-lucene-core jar-test-framework docs javadocs build-contrib
|
||||
mkdir META-INF
|
||||
unzip -o build/core/lucene-core-%{version}.jar META-INF/MANIFEST.MF
|
||||
cp %{SOURCE1} META-INF/MANIFEST.MF
|
||||
sed -i '/^\r$/d' META-INF/MANIFEST.MF
|
||||
zip build/core/lucene-core-%{version}.jar META-INF/MANIFEST.MF
|
||||
unzip -o build/contrib/analyzers/common/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF
|
||||
cp %{SOURCE2} META-INF/MANIFEST.MF
|
||||
sed -i '/^\r$/d' META-INF/MANIFEST.MF
|
||||
zip build/contrib/analyzers/common/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF
|
||||
mv build/contrib/analyzers/common build/contrib/analyzers/analyzers
|
||||
mv dev-tools/maven/lucene/contrib/analyzers/common dev-tools/maven/lucene/contrib/analyzers/analyzers
|
||||
sed -i -e '/relativePath/d' dev-tools/maven/pom.xml.template
|
||||
%mvn_artifact dev-tools/maven/pom.xml.template
|
||||
%mvn_artifact dev-tools/maven/lucene/pom.xml.template
|
||||
%mvn_artifact dev-tools/maven/lucene/core/pom.xml.template build/core/lucene-core-%{version}.jar
|
||||
%mvn_artifact dev-tools/maven/lucene/contrib/pom.xml.template
|
||||
%mvn_package :lucene-contrib-aggregator contrib
|
||||
for c in benchmark demo facet grouping highlighter icu instantiated join \
|
||||
memory misc pruning queries queryparser remote spatial spellchecker xml-query-parser ; do
|
||||
%mvn_artifact dev-tools/maven/lucene/contrib/$c/pom.xml.template build/contrib/$c/lucene-${c}-%{version}.jar
|
||||
%mvn_package :lucene-${c} contrib
|
||||
done
|
||||
for c in analyzers kuromoji phonetic smartcn stempel ; do
|
||||
%mvn_artifact dev-tools/maven/lucene/contrib/analyzers/$c/pom.xml.template build/contrib/analyzers/$c/lucene-${c}-%{version}.jar
|
||||
%mvn_package :lucene-${c} contrib
|
||||
done
|
||||
%mvn_compat_version : 3 3.6.2
|
||||
|
||||
%install
|
||||
%mvn_install -J build/docs/api
|
||||
|
||||
%files -f .mfiles
|
||||
%doc CHANGES.txt README.txt
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
|
||||
%files contrib -f .mfiles-contrib
|
||||
%doc contrib/CHANGES.txt
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
|
||||
%changelog
|
||||
* Sat Aug 22 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.6.2-1
|
||||
- package init
|
||||
4
lucene3.yaml
Normal file
4
lucene3.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
22
lucene_contrib_icu4j_v50.patch
Normal file
22
lucene_contrib_icu4j_v50.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/lucene-3.6.2/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/BreakIteratorWrapper.java b/lucene-3.6.2/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/BreakIteratorWrapper.java
|
||||
index 61d4b01..0626c38 100644
|
||||
--- a/lucene-3.6.2/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/BreakIteratorWrapper.java
|
||||
+++ b/lucene-3.6.2/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/BreakIteratorWrapper.java
|
||||
@@ -21,7 +21,6 @@ import java.text.CharacterIterator;
|
||||
|
||||
import com.ibm.icu.lang.UCharacter;
|
||||
import com.ibm.icu.text.BreakIterator;
|
||||
-import com.ibm.icu.text.DictionaryBasedBreakIterator;
|
||||
import com.ibm.icu.text.RuleBasedBreakIterator;
|
||||
import com.ibm.icu.text.UTF16;
|
||||
|
||||
@@ -67,8 +66,7 @@ abstract class BreakIteratorWrapper {
|
||||
* it like a generic BreakIterator.
|
||||
*/
|
||||
static BreakIteratorWrapper wrap(BreakIterator breakIterator) {
|
||||
- if (breakIterator instanceof RuleBasedBreakIterator
|
||||
- && !(breakIterator instanceof DictionaryBasedBreakIterator))
|
||||
+ if (breakIterator instanceof RuleBasedBreakIterator)
|
||||
return new RBBIWrapper((RuleBasedBreakIterator) breakIterator);
|
||||
else
|
||||
return new BIWrapper(breakIterator);
|
||||
28
test-framework.patch
Normal file
28
test-framework.patch
Normal file
@ -0,0 +1,28 @@
|
||||
--- test-framework/src/java/org/apache/lucene/util/LuceneJUnitDividingSelector.java.orig 2018-12-09 12:01:09.097932363 +0000
|
||||
+++ test-framework/src/java/org/apache/lucene/util/LuceneJUnitDividingSelector.java 2018-12-09 12:06:47.378695945 +0000
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
import org.apache.tools.ant.BuildException;
|
||||
import org.apache.tools.ant.types.Parameter;
|
||||
+import org.apache.tools.ant.types.Resource;
|
||||
import org.apache.tools.ant.types.selectors.BaseExtendSelector;
|
||||
|
||||
/** Divides filesets into equal groups */
|
||||
@@ -31,7 +32,7 @@
|
||||
private int part;
|
||||
|
||||
@Override
|
||||
- public void setParameters(Parameter[] pParameters) {
|
||||
+ public void setParameters(Parameter... pParameters) {
|
||||
super.setParameters(pParameters);
|
||||
for (int j = 0; j < pParameters.length; j++) {
|
||||
Parameter p = pParameters[j];
|
||||
@@ -63,4 +64,8 @@
|
||||
counter = counter % divisor + 1;
|
||||
return counter == part;
|
||||
}
|
||||
+ @Override
|
||||
+ public boolean isSelected(Resource r) {
|
||||
+ return false;
|
||||
+ }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user