%define javahome %{_jvmdir}/jdk Name: java-lucene Version: 8.5.1 Release: 1mamba Summary: High-performance, full-featured text search engine Group: Applications/Networking Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://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 %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} 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 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 %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} %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 * Thu May 07 2020 Silvan Calarco 8.5.1-1mamba - update to 8.5.1 * Tue Jan 18 2011 gil 2.4.1-3mamba - rebuilt with new java-bdb48 - rebuilt with java-openjdk * Thu Mar 18 2010 gil 2.4.1-2mamba - added OSGi NANIFEST * Thu Mar 12 2009 gil 2.4.1-1mamba - package created by autospec