update to 8.8.1 [release 8.8.1-1mamba;Sun Apr 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 00:07:41 +01:00
parent 3bff9073eb
commit 68301b9436
6 changed files with 16 additions and 389 deletions

View File

@ -1,15 +0,0 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 2.3 (IBM Corporation)
Bundle-ManifestVersion: 2
Export-Package: org.apache.lucene,org.apache.lucene.analysis,org.apach
e.lucene.analysis.de,org.apache.lucene.analysis.standard,org.apache.l
ucene.document,org.apache.lucene.index,org.apache.lucene.queryParser,
org.apache.lucene.search,org.apache.lucene.search.spans,org.apache.lu
cene.store,org.apache.lucene.util
Bundle-Version: 1.9.1.v20080530-1600
Bundle-SymbolicName: org.apache.lucene
Bundle-Name: Apache Lucene
Bundle-Localization: plugin
Bundle-Vendor: Apache Software Foundation

View File

@ -1,17 +0,0 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 2.3 (IBM Corporation)
Bundle-ManifestVersion: 2
Export-Package: org.apache.lucene.analysis.br,org.apache.lucene.analys
is.cjk,org.apache.lucene.analysis.cn,org.apache.lucene.analysis.cz,or
g.apache.lucene.analysis.de,org.apache.lucene.analysis.el,org.apache.
lucene.analysis.fr,org.apache.lucene.analysis.nl,org.apache.lucene.an
alysis.ru
Bundle-Version: 1.9.1.v20080530-1600
Require-Bundle: org.apache.lucene;bundle-version="[1.9.1,2.0.0)";visib
ility:=reexport
Bundle-SymbolicName: org.apache.lucene.analysis
Bundle-Name: Apache Lucene Analysis
Bundle-Localization: plugin
Bundle-Vendor: Apache Software Foundation

View File

@ -1,11 +0,0 @@
--- lucene-2.4.1/common-build.xml.Xmax 2009-10-16 11:40:25.093879193 -0600
+++ lucene-2.4.1/common-build.xml 2009-10-16 11:44:34.401817699 -0600
@@ -480,8 +480,6 @@
source="${javac.source}"
target="${javac.target}">
<nested/>
- <compilerarg line="-Xmaxwarns 10000000"/>
- <compilerarg line="-Xmaxerrs 10000000"/>
</javac>
</sequential>
</macrodef>

View File

@ -1,13 +0,0 @@
--- lucene-2.4.1/build.xml 2009-03-02 18:11:17.000000000 +0100
+++ lucene-2.4.1/build.xml-gil 2009-03-17 16:22:31.000000000 +0100
@@ -239,8 +239,8 @@
<packageset dir="contrib/analyzers/src/java"/>
<packageset dir="contrib/ant/src/java"/>
<packageset dir="contrib/benchmark/src/java"/>
- <packageset dir="contrib/db/bdb-je/src/java"/>
- <packageset dir="contrib/db/bdb/src/java"/>
+ <!-- <packageset dir="contrib/db/bdb-je/src/java"/> -->
+ <!-- <packageset dir="contrib/db/bdb/src/java"/> -->
<packageset dir="contrib/highlighter/src/java"/>
<packageset dir="contrib/instantiated/src/java"/>
<packageset dir="contrib/lucli/src/java"/>

View File

@ -1,11 +0,0 @@
--- lucene-2.4.1/common-build.xml.fixmanifests 2009-03-02 10:11:17.000000000 -0700
+++ lucene-2.4.1/common-build.xml 2009-10-16 11:39:18.387815444 -0600
@@ -281,7 +281,7 @@
<attribute name="Implementation-Title" value="org.apache.lucene"/>
<!-- impl version can be any string -->
<attribute name="Implementation-Version"
- value="${version} ${svnversion} - ${DSTAMP} ${TSTAMP}"/>
+ value="${version} - ${DSTAMP} ${TSTAMP}"/>
<attribute name="Implementation-Vendor"
value="The Apache Software Foundation"/>
<attribute name="X-Compile-Source-JDK"

View File

@ -1,360 +1,54 @@
%define javahome %{_jvmdir}/jdk
Name: java-lucene
Version: 8.5.1
Version: 8.8.1
Release: 1mamba
Summary: High-performance, full-featured text search engine
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://lucene.apache.org/
URL: https://lucene.apache.org/
Source0: https://downloads.apache.org/lucene/java/%{version}/lucene-%{version}.tgz
Source1: java-lucene-1.9-OSGi-MANIFEST.MF
Source2: java-lucene-1.9-analysis-OSGi-MANIFEST.MF
Patch0: java-lucene-2.4.1-db-javadoc.patch
Patch1: java-lucene-2.4.1-fixmanifests.patch
Patch2: java-lucene-2.4.1-Xmax.patch
License: Apache Software License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
#BuildRequires: apache-ant
#BuildRequires: apache-ant-junit
#BuildRequires: jakarta-commons-beanutils
#BuildRequires: jakarta-commons-digester
#BuildRequires: jakarta-commons-logging
#BuildRequires: java-jline
#BuildRequires: jakarta-regexp
#%if "%{stage1}" != "1"
#BuildRequires: java-BDB3
#BuildRequires: java-bdb48
#%endif
#BuildRequires: javacc
#BuildRequires: java-junit3
#BuildRequires: java-tidy
BuildRequires: jpackage-utils
#BuildRequires: xerces-j2
#BuildRequires: xml-commons-apis
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: javapackages
Provides: java-lucene-contrib
Obsoletes: java-lucene-contrib < 8.8.1
Provides: java-lucene-demo
Obsoletes: java-lucene-demo < 8.8.1
%description
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
%package contrib
Summary: %{name} contributed extensions
Group: Applications/Networking
Requires: %{name} = %{version}-%{release}
%description contrib
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains %{name} contributed extensions
%package contrib-db
Summary: %{name} contributed Berkeley DB extensions
Group: Applications/Networking
Requires: %{name} = %{version}-%{release}
%if "%{stage1}" != "1"
Requires: java-bdb48
Requires: java-BDB3
%endif
%description contrib-db
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains %{name} contributed Berkeley DB extensions
%package contrib-db-javadoc
Summary: Javadoc for %{name}-contrib-db
Group: Documentation
%description contrib-db-javadoc
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains javadoc for %{name}-contrib-db
%package demo
Summary: %{name} demonstration library
Group: Applications/Networking
Requires: %{name} = %{version}-%{release}
%description demo
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains %{name} demonstration library
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains javadoc for %{name}
%package javadoc-jars
Summary: Javadoc for %{name} in jar file format
Group: Documentation
%description javadoc-jars
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains javadoc for %{name} in jar file format
%package manual
Group: Documentation
Summary: Manual for %{name}
%description manual
Jakarta Lucene is a high-performance, full-featured text search engine written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
This package contains manual for %{name}.
%prep
%setup -q -n lucene-%{version}
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#
#for j in $(find . -name "*.jar"); do
# mv $j ${j}.no
#done
%build
:<< __OBSOLETE
mkdir -p docs
mkdir -p lib
unset JAVA_HOME
export JAVA_HOME=%{javahome}
%if "%{stage1}" != "1"
export CLASSPATH=$(build-classpath bdb db jline jtidy regexp commons-digester \
commons-collections commons-logging xerces-j2 junit-3.8.2 xml-commons-apis ant/ant-junit)
%else
export CLASSPATH=$(build-classpath jline jtidy regexp commons-digester \
commons-collections commons-logging xerces-j2 junit-3.8.2 xml-commons-apis ant/ant-junit)
%endif
ant -Dbuild.sysclasspath=first \
-Djavacc.home=%{_bindir}/javacc \
-Djavacc.jar=%{_javadir}/javacc.jar \
-Djavacc.jar.dir=%{_javadir} \
-Dversion=%{version} \
-Djavadoc.link=%{_javadocdir}/java \
package
mkdir META-INF
cp %{SOURCE1} META-INF/MANIFEST.MF
zip -u build/lucene-core-%{version}.jar META-INF/MANIFEST.MF
cp %{SOURCE2} META-INF/MANIFEST.MF
zip -u build/contrib/analyzers/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_javadir}/lucene
for f in sandbox memory grouping highlighter backward-codecs benchmark replicator demo expressions classification \
suggest misc core queries luke spatial-extras facet codecs monitor join spatial3d; do
install -m 644 $f/lucene-$f-%{version}.jar \
%{buildroot}%{_javadir}/lucene-$f-%{version}.jar
ln -sf lucene-$f-%{version}.jar %{buildroot}%{_javadir}/lucene-$f.jar
done
find . -type f -name '*.jar' -exec cp {} %{buildroot}%{_datadir}/java/lucene \;
ln -sf lucene-core-%{version}.jar %{buildroot}%{_javadir}/lucene.jar
ln -sf lucene-core-%{version}.jar %{buildroot}%{_javadir}/lucene-%{version}.jar
:<< __OBSOLETE
install -m 644 build/lucene-core-%{version}.jar \
%{buildroot}%{_javadir}/lucene-%{version}.jar
install -m 644 build/lucene-demos-%{version}.jar \
%{buildroot}%{_javadir}/lucene-demos-%{version}.jar
(
cd %{buildroot}%{_javadir}
ln -sf lucene-%{version}.jar lucene-core-%{version}.jar
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
mkdir -p %{buildroot}%{_javadir}/lucene-contrib \
%{buildroot}%{_javadocdir}/lucene-%{version}-jars
# lucene-similarity-2.4.1-javadoc.jar ??
for c in analyzers ant benchmark highlighter instantiated lucli memory misc queries regex similarity snowball spellchecker surround swing wikipedia wordnet xml-query-parser; do
install -m 644 build/contrib/$c/lucene-${c}-%{version}.jar \
%{buildroot}%{_javadir}/lucene-contrib
# if [ -e build/contrib/$c/lucene-${c}-%{version}-javadoc.jar ]; then
# install -m 644 build/contrib/$c/lucene-${c}-%{version}-javadoc.jar \
# %{buildroot}%{_javadocdir}/lucene-%{version}-jars
# fi
done
for c in bdb bdb-je; do
install -m 644 build/contrib/db/$c/lucene-${c}-%{version}.jar \
%{buildroot}%{_javadir}/lucene-contrib
# if [ -e build/contrib/db/$c/lucene-${c}-%{version}-javadoc.jar ]; then
# install -m 644 build/contrib/db/$c/lucene-${c}-%{version}-javadoc.jar \
# %{buildroot}%{_javadocdir}/lucene-%{version}-jars
# fi
done
(
cd %{buildroot}%{_javadir}/lucene-contrib
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
#install -m 644 build/lucene-core-%{version}-javadoc.jar \
# %{buildroot}%{_javadocdir}/lucene-%{version}-jars
#install -m 644 build/lucene-demos-%{version}-javadoc.jar \
# %{buildroot}%{_javadocdir}/lucene-%{version}-jars
#(
# cd %{buildroot}%{_javadocdir}/lucene-%{version}-jars
# for jar in *-%{version}-javadoc.jar; do
# ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
# done
#)
mkdir -p %{buildroot}%{_javadocdir}/lucene-%{version}
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/lucene-%{version}
ln -s lucene-%{version} %{buildroot}%{_javadocdir}/lucene
mkdir -p %{buildroot}%{_datadir}/lucene-%{version}
install -m 0644 build/luceneweb.war \
%{buildroot}%{_datadir}/lucene-%{version}
rm -rf docs/skin/css
rm -rf docs/skin/scripts
rm -rf docs/skin/translations
#%{_bindir}/aot-compile-rpm --exclude %{_datadir}/lucene-%{version}/luceneweb.war
ln -sf lucene-core-%{version}.jar %{buildroot}%{_javadir}/lucene/lucene.jar
ln -sf lucene-core-%{version}.jar %{buildroot}%{_javadir}/lucene/lucene-%{version}.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/lucene-%{version}.jar
%{_javadir}/lucene.jar
%{_javadir}/lucene-core-%{version}.jar
%{_javadir}/lucene-core.jar
#%{_datadir}/lucene-%{version}
%dir %{_javadir}/lucene
%{_javadir}/lucene/*.jar
%doc LICENSE.txt
#CHANGES.txt NOTICE.txt README.txt
%files contrib
%defattr(-,root,root)
%{_javadir}/lucene-backward-codecs-%{version}.jar
%{_javadir}/lucene-backward-codecs.jar
%{_javadir}/lucene-benchmark-%{version}.jar
%{_javadir}/lucene-benchmark.jar
%{_javadir}/lucene-classification-%{version}.jar
%{_javadir}/lucene-classification.jar
%{_javadir}/lucene-codecs-%{version}.jar
%{_javadir}/lucene-codecs.jar
%{_javadir}/lucene-expressions-%{version}.jar
%{_javadir}/lucene-expressions.jar
%{_javadir}/lucene-facet-%{version}.jar
%{_javadir}/lucene-facet.jar
%{_javadir}/lucene-grouping-%{version}.jar
%{_javadir}/lucene-grouping.jar
%{_javadir}/lucene-highlighter-%{version}.jar
%{_javadir}/lucene-highlighter.jar
%{_javadir}/lucene-join-%{version}.jar
%{_javadir}/lucene-join.jar
%{_javadir}/lucene-luke-%{version}.jar
%{_javadir}/lucene-luke.jar
%{_javadir}/lucene-memory-%{version}.jar
%{_javadir}/lucene-memory.jar
%{_javadir}/lucene-misc-%{version}.jar
%{_javadir}/lucene-misc.jar
%{_javadir}/lucene-monitor-%{version}.jar
%{_javadir}/lucene-monitor.jar
%{_javadir}/lucene-queries-%{version}.jar
%{_javadir}/lucene-queries.jar
%{_javadir}/lucene-replicator-%{version}.jar
%{_javadir}/lucene-replicator.jar
%{_javadir}/lucene-sandbox-%{version}.jar
%{_javadir}/lucene-sandbox.jar
%{_javadir}/lucene-spatial-extras-%{version}.jar
%{_javadir}/lucene-spatial-extras.jar
%{_javadir}/lucene-spatial3d-%{version}.jar
%{_javadir}/lucene-spatial3d.jar
%{_javadir}/lucene-suggest-%{version}.jar
%{_javadir}/lucene-suggest.jar
#%doc contrib/CHANGES.txt
#%files contrib-db
#%defattr(-,root,root)
#%{_javadir}/lucene-contrib/lucene-bdb-%{version}.jar
#%{_javadir}/lucene-contrib/lucene-bdb-je-%{version}.jar
#%{_javadir}/lucene-contrib/lucene-bdb-je.jar
#%{_javadir}/lucene-contrib/lucene-bdb.jar
#%files contrib-db-javadoc
#%defattr(-,root,root)
#%{_javadocdir}/lucene-%{version}-jars/lucene-bdb-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-bdb-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-bdb-je-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-bdb-je-javadoc.jar
%files demo
%defattr(-,root,root)
%{_javadir}/lucene-demo-%{version}.jar
%{_javadir}/lucene-demo.jar
#%files javadoc-jars
#%defattr(-,root,root)
#%{_javadocdir}/lucene-%{version}-jars/lucene-analyzers-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-analyzers-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-ant-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-ant-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-benchmark-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-benchmark-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-core-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-core-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-demos-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-demos-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-highlighter-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-highlighter-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-instantiated-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-instantiated-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-lucli-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-lucli-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-memory-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-memory-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-misc-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-misc-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-queries-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-queries-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-regex-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-regex-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-snowball-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-snowball-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-spellchecker-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-spellchecker-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-surround-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-surround-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-swing-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-swing-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-wikipedia-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-wikipedia-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-wordnet-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-wordnet-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-xml-query-parser-%{version}-javadoc.jar
#%{_javadocdir}/lucene-%{version}-jars/lucene-xml-query-parser-javadoc.jar
#%files javadoc
#%defattr(-,root,root)
#%{_javadocdir}/lucene-%{version}
#%{_javadocdir}/lucene
#%files manual
#%defattr(-,root,root)
#%doc docs
%changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.8.1-1mamba
- update to 8.8.1
* Thu May 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 8.5.1-1mamba
- update to 8.5.1