From 8d636a3d53f3c1ecf6b0c17b3c724f233bc8958c Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Aug 16 2022 08:00:20 +0000 Subject: [PATCH 1/2] Update to upstream version 9.2.0 --- diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 --- a/.cvsignore +++ /dev/null diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9943964 --- /dev/null +++ b/.gitignore @@ -0,0 +1,80 @@ +lucene-2.4.1-src.tar.gz +/lucene-2.9.4-src.tar.gz +/lucene-3.6.0-src.tgz +dev-tools.tar.xz +/lucene-3.6.2-src.tgz +/noarch +/lucene-4.6.0-src.tgz +/lucene-4.6.1-src.tgz +/lucene-4.7.0-src.tgz +/dev-tools-4.7.0.tar.xz +/dev-tools-4.7.1.tar.xz +/lucene-4.7.1-src.tgz +/lucene-4.7.2-src.tgz +/dev-tools-4.7.2.tar.xz +/dev-tools-4.8.0.tar.xz +/lucene-4.8.0-src.tgz +/lucene-4.*/ +/*.src.rpm +/.build-*.log +/.project +/dev-tools-4.8.1.tar.xz +/lucene-4.8.1-src.tgz +/dev-tools-4.10.1.tar.xz +/lucene-4.10.1-src.tgz +/lucene-4.10.2-src.tgz +/dev-tools-4.10.2.tar.xz +/dev-tools-4.10.3.tar.xz +/lucene-4.10.3-src.tgz +/dev-tools-4.10.4.tar.xz +/lucene-4.10.4-src.tgz +/dev-tools-5.2.1.tar.xz +/lucene-5.2.1-src.tgz +/dev-tools-5.3.0.tar.xz +/lucene-5.3.0-src.tgz +/lucene-5.3.1-src.tgz +/dev-tools-5.3.1.tar.xz +/dev-tools-5.4.0.tar.xz +/lucene-5.4.0-src.tgz +/dev-tools-5.4.1.tar.xz +/lucene-5.4.1-src.tgz +/solr-5.5.0-src.tgz +/solr-6.1.0-src.tgz +/solr-7.1.0-src.tgz +/solr-7.7.0-src.tgz +/solr-8.1.1-src.tgz +/solr-8.4.1-src.tgz +/solr-8.6.3-src.tgz +/solr-8.8.2-src.tgz +/lucene-9.2.0-src.tgz +/lucene-analysis-common-9.2.0.pom +/lucene-analysis-icu-9.2.0.pom +/lucene-analysis-kuromoji-9.2.0.pom +/lucene-analysis-morfologik-9.2.0.pom +/lucene-analysis-nori-9.2.0.pom +/lucene-analysis-opennlp-9.2.0.pom +/lucene-analysis-phonetic-9.2.0.pom +/lucene-analysis-smartcn-9.2.0.pom +/lucene-analysis-stempel-9.2.0.pom +/lucene-backward-codecs-9.2.0.pom +/lucene-benchmark-9.2.0.pom +/lucene-classification-9.2.0.pom +/lucene-codecs-9.2.0.pom +/lucene-core-9.2.0.pom +/lucene-demo-9.2.0.pom +/lucene-expressions-9.2.0.pom +/lucene-facet-9.2.0.pom +/lucene-grouping-9.2.0.pom +/lucene-highlighter-9.2.0.pom +/lucene-join-9.2.0.pom +/lucene-luke-9.2.0.pom +/lucene-memory-9.2.0.pom +/lucene-misc-9.2.0.pom +/lucene-monitor-9.2.0.pom +/lucene-queries-9.2.0.pom +/lucene-queryparser-9.2.0.pom +/lucene-replicator-9.2.0.pom +/lucene-sandbox-9.2.0.pom +/lucene-spatial3d-9.2.0.pom +/lucene-suggest-9.2.0.pom +/lucene-test-framework-9.2.0.pom diff --git a/Makefile b/Makefile deleted file mode 100644 index 08875d3..0000000 --- a/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# Makefile for source rpm: lucene -# $Id$ -NAME := lucene -SPECFILE = $(firstword $(wildcard *.spec)) - -include ../common/Makefile.common diff --git a/changelog-pre5.txt b/changelog-pre5.txt new file mode 100644 index 0000000..3da8183 --- /dev/null +++ b/changelog-pre5.txt @@ -0,0 +1,264 @@ +* Wed Jun 17 2015 Fedora Release Engineering - 0:4.10.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 5 2015 Alexander Kurtakov 0:4.10.4-1 +- Update to upstream 4.10.4. + +* Tue Jan 6 2015 Alexander Kurtakov 0:4.10.3-1 +- Update to upstream 4.10.3. + +* Wed Nov 12 2014 Alexander Kurtakov 0:4.10.2-1 +- Update to upstream 4.10.2. + +* Fri Oct 24 2014 Alexander Kurtakov 0:4.10.1-1 +- Update to upstream 4.10.1. + +* Fri Sep 5 2014 Alexander Kurtakov 0:4.10.0-1 +- Update to upstream 4.10.0. + +* Sat Jun 07 2014 Fedora Release Engineering - 0:4.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 28 2014 Mikolaj Izdebski - 0:4.8.1-2 +- Rebuild to regenerate Maven auto-requires + +* Thu May 22 2014 Alexander Kurtakov 0:4.8.1-1 +- Update to 4.8.1. + +* Fri May 02 2014 Mat Booth - 0:4.8.0-2 +- SCL-ize package + +* Fri May 02 2014 Michael Simacek - 0:4.8.0-1 +- Update to upstream release 4.8.0 + +* Fri May 2 2014 Alexander Kurtakov 0:4.8.0-0.1 +- Initial 4.8.0 effort. + +* Thu Apr 17 2014 Alexander Kurtakov 0:4.7.2-1 +- Update to 4.7.2 upstream release. + +* Thu Apr 3 2014 Alexander Kurtakov 0:4.7.1-1 +- Update to 4.7.1 upstream release. + +* Tue Mar 25 2014 Michael Simacek - 0:4.7.0-8 +- Enable tests that required newer icu4j and nekohtml + +* Fri Mar 14 2014 Michael Simacek - 0:4.7.0-7 +- Generate dependencies for POMs +- Revert to using POM files for build and installation (ivy files don't specify + interproject dependencies) +- Split into subpackages +- Clean up BR's +- Remove unused patches +- Enable tests + +* Thu Mar 13 2014 Alexander Kurtakov 0:4.7.0-6 +- Don't export package that is not in queryparser. + +* Wed Mar 12 2014 Alexander Kurtakov 0:4.7.0-5 +- Add queryparser osgi metadata properly. +- Export lucene.analysys.standard too. + +* Wed Mar 12 2014 Alexander Kurtakov 0:4.7.0-4 +- Export queryParser and queryParser.classic packages for OSGi. + +* Thu Mar 06 2014 Severin Gehwolf - 0:4.7.0-3 +- Fix analyzers-common OSGi metadata: Export o.a.l.a.core and + fix Require-Bundle header. +- Resolves: RHBZ#1073073 + +* Wed Mar 05 2014 Roland Grunberg - 0:4.7.0-2 +- Fix Bundle-RequiredExecutionEnvironment for manifests. (rhbz#1072985) + +* Tue Mar 04 2014 Michael Simacek - 0:4.7.0-1 +- Update to upstream version 4.7.0 + +* Mon Feb 10 2014 Michael Simacek - 0:4.6.1-1 +- Update to upstream version 4.6.1 +- Use XMvn to resolve ivy artifacts and for installation +- Remove contrib subpackage (was merged into main package) + +* Wed Nov 06 2013 Severin Gehwolf 0:3.6.2-4 +- Remove unneeded BR jline. Resolves RHBZ#1023015. + +* Sat Aug 03 2013 Fedora Release Engineering - 0:3.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Mar 1 2013 Krzysztof Daniel 0:3.6.2-2 +- 830762: lucene ships POMs with uninitialized version properties + +* Tue Feb 26 2013 Severin Gehwolf 0:3.6.2-1 +- Update to upstream release 3.6.2 +- Fix build errors related to icu4j v50 incompatibility. + +* Thu Feb 14 2013 Fedora Release Engineering - 0:3.6.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Dec 5 2012 Severin Gehwolf 0:3.6.0-11 +- Remove patches which weren't applied (rpmlint warnings). + +* Mon Dec 3 2012 Severin Gehwolf 0:3.6.0-10 +- Upload new tarball for dev-tools as checksum could not be + reproduced with given commands listed in comment. + +* Tue Nov 27 2012 Severin Gehwolf 0:3.6.0-9 +- Always install grand-parent pom as well. + +* Tue Nov 27 2012 Severin Gehwolf 0:3.6.0-8 +- Always install lucene-parent pom. + +* Mon Nov 26 2012 Severin Gehwolf 0:3.6.0-7 +- Only build lucene-contrib for Fedora. +- This removes BR on icu4j on rhel. + +* Fri Nov 23 2012 Severin Gehwolf 0:3.6.0-6 +- Fix OSGi medatada. In particular: +- Missing import javax.management (lucene-core) +- Missing import javax.xml.parsers and org.xml.sax.helpers + (lucene-analysis) +- BundleVersion updated to 3.6.0 (lucene-core & lucene-analysis) + +* Thu Jul 19 2012 Fedora Release Engineering - 0:3.6.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jul 5 2012 Alexander Kurtakov 0:3.6.0-4 +- Properly install analyzers. + +* Wed Jul 4 2012 Alexander Kurtakov 0:3.6.0-3 +- Really fix manifests. + +* Wed Jul 4 2012 Alexander Kurtakov 0:3.6.0-2 +- Remove duplicated manifest entries. + +* Tue Jul 3 2012 Alexander Kurtakov 0:3.6.0-1 +- Update to upstream 3.6.0. + +* Fri Jan 13 2012 Fedora Release Engineering - 0:2.9.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Sep 12 2011 Alexander Kurtakov 0:2.9.4-7 +- Fix duplicate Manifes-version warnings. + +* Mon Jun 27 2011 Alexander Kurtakov 0:2.9.4-6 +- BR zip - fixes FTBFS. + +* Tue May 3 2011 Alexander Kurtakov 0:2.9.4-5 +- Update OSGi manifests. + +* Tue Feb 08 2011 Fedora Release Engineering - 0:2.9.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Feb 8 2011 Stanislav Ochotnicky - 0:2.9.4-3 +- Fix empty lucene-analyzers (rhbz#675950) + +* Wed Feb 2 2011 Stanislav Ochotnicky - 0:2.9.4-2 +- Add maven metadata (rhbz#566775) + +* Mon Jan 31 2011 Stanislav Ochotnicky - 0:2.9.4-1 +- Update to latest 2.x version (3.x is not API compatible) +- Add new modules +- Enable tests again +- Versionless jars & javadocs + +* Wed Oct 13 2010 Alexander Kurtakov 0:2.4.1-7 +- BR java 1.6.0. + +* Wed Oct 13 2010 Alexander Kurtakov 0:2.4.1-6 +- Fix merge review comments (rhbz#226110). + +* Fri Oct 01 2010 Caolán McNamara 0:2.4.1-5 +- remove empty lines from MANIFEST.MF + +* Fri Oct 01 2010 Caolán McNamara 0:2.4.1-4 +- Resolves: rhbz#615609 custom MANIFEST.MF in lucene drops + "Specification-Version" + +* Mon Jun 7 2010 Alexander Kurtakov 0:2.4.1-3 +- Fix build. +- FIx various rpmlint warnings. + +* Fri Mar 5 2010 Alexander Kurtakov 0:2.4.1-2 +- Drop gcj_support. + +* Tue Dec 1 2009 Orion Poplawski - 0:2.4.1-1 +- Update to 2.4.1 + +* Sat Jul 25 2009 Fedora Release Engineering - 0:2.3.1-5.5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Apr 30 2009 Deepak Bhole - 0:2.3.1-4.5 +- rhbz #465344: Fix Implementation-Version and remove Class-Path from manifest + +* Wed Feb 25 2009 Fedora Release Engineering - 0:2.3.1-4.4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Jul 14 2008 Andrew Overholt 0:2.3.1-3.4 +- Update OSGi manifest data for Eclipse SDK 3.4 + +* Wed Jul 9 2008 Tom "spot" Callaway - 0:2.3.1-3.2 +- drop repotag + +* Wed May 28 2008 Tom "spot" Callaway - 0:2.3.1-3jpp.1 +- fix license tag + +* Mon May 19 2008 Lubomir Rintel - 0:2.3.1-3jpp.0 +- Correct gcj-compat dependencies, so that this builds on RHEL +- Use --without gcj to disable gcj aot compilation + +* Mon May 5 2008 Lubomir Rintel - 0:2.3.1-2jpp.0 +- Unbreak build by repacing the version patch with and -Dversion + +* Mon May 5 2008 Lubomir Rintel - 0:2.3.1-1jpp.0 +- 2.3.1, bugfixes only + +* Tue Feb 19 2008 Lubomir Kundrak - 0:2.3.0-1jpp.0 +- 2.3.0 (#228141) + +* Mon Feb 18 2008 Fedora Release Engineering - 0:1.9.1-2jpp.5 +- Autorebuild for GCC 4.3 + +* Fri Sep 21 2007 Deepak Bhole 1.9.1-1jpp.5 +- Disable tests due to random hangs (see FIXME comment above ant call) + +* Thu Sep 20 2007 Deepak Bhole 0:1.9.1-1jpp.4 +- Rebuild for ppc32 execmem issue and new build-id + +* Thu Aug 02 2007 Ben Konrath 0:1.9.1-1jpp.3 +- Cleanup packaging of OSGi manifests. + +* Tue Jul 31 2007 Ben Konrath 0:1.9.1-1jpp.2 +- Use OSGi manifests from eclipse 3.3.0 instead of merged manifests. +- Resolves: #250221. + +* Tue Jul 17 2007 Ben Konrath 0:1.9.1-1jpp.1 +- Disable db sub-package. +- Disable generating test report. +- Add OSGi manifest. +- Obsolete lucene-devel. + +* Wed Mar 29 2006 Ralph Apel 0:1.9.1-1jpp +- Upgrade to 1.9.1 + +* Tue Apr 26 2005 Ville Skyttä - 0:1.4.3-2jpp +- Add unversioned javadoc dir symlink. +- Crosslink with local JDK javadocs. +- Convert specfile to UTF-8. +- Fix URLs. + +* Mon Jan 10 2005 Kaj J. Niemi 0:1.4.3 +- 1.4.3 + +* Mon Aug 23 2004 Fernando Nasser - 0:1.3-3jpp +- Rebuild with Ant 1.6.2 + +* Tue Jun 01 2004 Randy Watler - 0:1.3-2jpp +- Upgrade to Ant 1.6.X + +* Wed Jan 21 2004 David Walluck 0:1.3-1jpp +- 1.3 + +* Wed Mar 26 2003 Ville Skyttä - 0:1.2-2jpp +- Rebuilt for JPackage 1.5. + +* Thu Mar 6 2003 Ville Skyttä - 1.2-1jpp +- First JPackage release. diff --git a/lucene.spec b/lucene.spec new file mode 100644 index 0000000..012dd00 --- /dev/null +++ b/lucene.spec @@ -0,0 +1,465 @@ +Summary: High-performance, full-featured text search engine +Name: lucene +Version: 9.2.0 +Release: 1%{?dist} +Epoch: 0 +# License breakdown is present in NOTICE.txt file +License: ASL 2.0 and MIT and BSD +URL: https://lucene.apache.org/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://dlcdn.apache.org/lucene/java/%{version}/lucene-%{version}-src.tgz +Source1: parent.pom +Source2: parent-analysis.pom + +Source3: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-common/%{version}/lucene-analysis-common-%{version}.pom +Source4: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-icu/%{version}/lucene-analysis-icu-%{version}.pom +Source5: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-kuromoji/%{version}/lucene-analysis-kuromoji-%{version}.pom +Source6: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-morfologik/%{version}/lucene-analysis-morfologik-%{version}.pom +Source7: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-nori/%{version}/lucene-analysis-nori-%{version}.pom +Source8: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-opennlp/%{version}/lucene-analysis-opennlp-%{version}.pom +Source9: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-phonetic/%{version}/lucene-analysis-phonetic-%{version}.pom +Source10: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-smartcn/%{version}/lucene-analysis-smartcn-%{version}.pom +Source11: https://repo1.maven.org/maven2/org/apache/lucene/lucene-analysis-stempel/%{version}/lucene-analysis-stempel-%{version}.pom + +Source12: https://repo1.maven.org/maven2/org/apache/lucene/lucene-backward-codecs/%{version}/lucene-backward-codecs-%{version}.pom +Source13: https://repo1.maven.org/maven2/org/apache/lucene/lucene-benchmark/%{version}/lucene-benchmark-%{version}.pom +Source14: https://repo1.maven.org/maven2/org/apache/lucene/lucene-classification/%{version}/lucene-classification-%{version}.pom +Source15: https://repo1.maven.org/maven2/org/apache/lucene/lucene-codecs/%{version}/lucene-codecs-%{version}.pom +Source16: https://repo1.maven.org/maven2/org/apache/lucene/lucene-core/%{version}/lucene-core-%{version}.pom +Source17: https://repo1.maven.org/maven2/org/apache/lucene/lucene-demo/%{version}/lucene-demo-%{version}.pom +Source18: https://repo1.maven.org/maven2/org/apache/lucene/lucene-expressions/%{version}/lucene-expressions-%{version}.pom +Source19: https://repo1.maven.org/maven2/org/apache/lucene/lucene-facet/%{version}/lucene-facet-%{version}.pom +Source20: https://repo1.maven.org/maven2/org/apache/lucene/lucene-grouping/%{version}/lucene-grouping-%{version}.pom +Source21: https://repo1.maven.org/maven2/org/apache/lucene/lucene-highlighter/%{version}/lucene-highlighter-%{version}.pom +Source22: https://repo1.maven.org/maven2/org/apache/lucene/lucene-join/%{version}/lucene-join-%{version}.pom +Source23: https://repo1.maven.org/maven2/org/apache/lucene/lucene-luke/%{version}/lucene-luke-%{version}.pom +Source24: https://repo1.maven.org/maven2/org/apache/lucene/lucene-memory/%{version}/lucene-memory-%{version}.pom +Source25: https://repo1.maven.org/maven2/org/apache/lucene/lucene-misc/%{version}/lucene-misc-%{version}.pom +Source26: https://repo1.maven.org/maven2/org/apache/lucene/lucene-monitor/%{version}/lucene-monitor-%{version}.pom +Source27: https://repo1.maven.org/maven2/org/apache/lucene/lucene-queries/%{version}/lucene-queries-%{version}.pom +Source28: https://repo1.maven.org/maven2/org/apache/lucene/lucene-queryparser/%{version}/lucene-queryparser-%{version}.pom +Source29: https://repo1.maven.org/maven2/org/apache/lucene/lucene-replicator/%{version}/lucene-replicator-%{version}.pom +Source30: https://repo1.maven.org/maven2/org/apache/lucene/lucene-sandbox/%{version}/lucene-sandbox-%{version}.pom +Source31: https://repo1.maven.org/maven2/org/apache/lucene/lucene-spatial3d/%{version}/lucene-spatial3d-%{version}.pom +Source32: https://repo1.maven.org/maven2/org/apache/lucene/lucene-suggest/%{version}/lucene-suggest-%{version}.pom +Source33: https://repo1.maven.org/maven2/org/apache/lucene/lucene-test-framework/%{version}/lucene-test-framework-%{version}.pom + +BuildRequires: maven-local +BuildRequires: mvn(com.ibm.icu:icu4j) +BuildRequires: mvn(commons-codec:commons-codec) +BuildRequires: mvn(org.antlr:antlr4-runtime) +BuildRequires: mvn(org.ow2.asm:asm) +BuildRequires: mvn(org.ow2.asm:asm-commons) + +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin) + +%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 javadoc +Summary: Javadoc for Lucene + +%description javadoc +%{summary}. + +%package analysis-pom +Summary: Lucene aggregator pom for the module analysis + +%description analysis-pom +%{summary}. + +%package analysis-common +Summary: Lucene module: analysis-common + +%description analysis-common +%{summary}. + +%package analysis-icu +Summary: Lucene module: analysis-icu + +%description analysis-icu +%{summary}. + +%package analysis-kuromoji +Summary: Lucene module: analysis-kuromoji + +%description analysis-kuromoji +%{summary}. + +%package analysis-nori +Summary: Lucene module: analysis-nori + +%description analysis-nori +%{summary}. + +%package analysis-phonetic +Summary: Lucene module: analysis-phonetic + +%description analysis-phonetic +%{summary}. + +%package analysis-smartcn +Summary: Lucene module: analysis-smartcn + +%description analysis-smartcn +%{summary}. + +%package analysis-stempel +Summary: Lucene module: analysis-stempel + +%description analysis-stempel +%{summary}. + +%package backward-codecs +Summary: Lucene module: backward-codecs + +%description backward-codecs +%{summary}. + +%package classification +Summary: Lucene module: classification + +%description classification +%{summary}. + +%package codecs +Summary: Lucene module: codecs + +%description codecs +%{summary}. + +%package core +Summary: Lucene module: core + +%description core +%{summary}. + +%package expressions +Summary: Lucene module: expressions + +%description expressions +%{summary}. + +%package grouping +Summary: Lucene module: grouping + +%description grouping +%{summary}. + +%package highlighter +Summary: Lucene module: highlighter + +%description highlighter +%{summary}. + +%package join +Summary: Lucene module: join + +%description join +%{summary}. + +%package memory +Summary: Lucene module: memory + +%description memory +%{summary}. + +%package misc +Summary: Lucene module: misc + +%description misc +%{summary}. + +%package monitor +Summary: Lucene module: monitor + +%description monitor +%{summary}. + +%package queries +Summary: Lucene module: queries + +%description queries +%{summary}. + +%package queryparser +Summary: Lucene module: queryparser + +%description queryparser +%{summary}. + +%package sandbox +Summary: Lucene module: sandbox + +%description sandbox +%{summary}. + +%package spatial3d +Summary: Lucene module: spatial3d + +%description spatial3d +%{summary}. + +%package suggest +Summary: Lucene module: suggest + +%description suggest +%{summary}. + +%prep +%setup -q + +find -mindepth 1 -maxdepth 1 ! -name lucene ! -name LICENSE.txt ! -name NOTICE.txt ! -name README.md -exec rm -rf {} + +mv -t . lucene/* +rmdir lucene + +# Javadoc generation would fail otherwise +find -name 'module-info.java' -delete +find -wholename '*/src/test' -exec rm -rf {} + + +cp %SOURCE1 pom.xml +%pom_xpath_set "pom:project/pom:version" "%{version}" + +function add_pom { + source=${1} + prefix=${2} + module=${source} + module=${module##*/${prefix}} + module=${module%%%%-%{version}.pom} + cp ${source} ${module}/pom.xml +} + +for source in $(echo %{sources} | tr ' ' '\n' | grep -v 'lucene-analysis-.*\.pom' | grep 'lucene-.*\.pom'); do + add_pom ${source} "lucene-" + %pom_add_parent org.apache.lucene:lucene-parent:%{version} ${module}/pom.xml +done + +pushd analysis +cp %SOURCE2 pom.xml +%pom_xpath_set "pom:project/pom:version" "%{version}" +%pom_add_parent org.apache.lucene:lucene-parent:%{version} + +for source in $(echo %{sources} | tr ' ' '\n' | grep 'lucene-analysis-.*\.pom'); do + add_pom ${source} "lucene-analysis-" + %pom_add_parent org.apache.lucene:lucene-analysis:%{version} ${module}/pom.xml +done +popd + +for module in grouping classification codecs expressions highlighter monitor; do + %pom_xpath_set "pom:dependency[pom:scope='runtime']/pom:scope" "compile" ${module}/pom.xml +done + +%pom_disable_module benchmark +%pom_disable_module demo +%pom_disable_module facet +%pom_disable_module luke +%pom_disable_module replicator +%pom_disable_module test-framework + +%pom_disable_module morfologik analysis +%pom_disable_module opennlp analysis + +%mvn_package ':lucene-parent' lucene + +%build +# Tests have unpackaged dependencies +%mvn_build -s -f + +%install +%mvn_install + +%files -f .mfiles-lucene +%license LICENSE.txt NOTICE.txt +%doc README.md + +%files javadoc -f .mfiles-javadoc + +%files analysis-common -f .mfiles-lucene-analysis-common +%files analysis-icu -f .mfiles-lucene-analysis-icu +%files analysis-pom -f .mfiles-lucene-analysis +%files analysis-kuromoji -f .mfiles-lucene-analysis-kuromoji +%files analysis-nori -f .mfiles-lucene-analysis-nori +%files analysis-phonetic -f .mfiles-lucene-analysis-phonetic +%files analysis-smartcn -f .mfiles-lucene-analysis-smartcn +%files analysis-stempel -f .mfiles-lucene-analysis-stempel +%files backward-codecs -f .mfiles-lucene-backward-codecs +%files classification -f .mfiles-lucene-classification +%files codecs -f .mfiles-lucene-codecs +%files core -f .mfiles-lucene-core +%files expressions -f .mfiles-lucene-expressions +%files grouping -f .mfiles-lucene-grouping +%files highlighter -f .mfiles-lucene-highlighter +%files join -f .mfiles-lucene-join +%files memory -f .mfiles-lucene-memory +%files misc -f .mfiles-lucene-misc +%files monitor -f .mfiles-lucene-monitor +%files queries -f .mfiles-lucene-queries +%files queryparser -f .mfiles-lucene-queryparser +%files sandbox -f .mfiles-lucene-sandbox +%files spatial3d -f .mfiles-lucene-spatial3d +%files suggest -f .mfiles-lucene-suggest + +%changelog +* Tue Aug 16 2022 Marian Koncek - 0:9.2.0-1 +- Update to upstream version 9.2.0 + +* Thu Jul 21 2022 Fedora Release Engineering - 0:8.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0:8.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Apr 23 2021 Alexander Kurtakov 0:8.8.2-1 +- Update to latest upstream release + +* Tue Jan 26 2021 Fedora Release Engineering - 0:8.6.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Oct 28 2020 Mat Booth - 0:8.6.3-1 +- Update to latest upsteam release + +* Thu Aug 06 2020 Mat Booth - 0:8.4.1-9 +- Add optional resolution on internal JDK APIs that might not be present on Java + 11 + +* Thu Aug 06 2020 Mat Booth - 0:8.4.1-8 +- Avoid requirement on com.sun.management package + +* Tue Jul 28 2020 Fedora Release Engineering - 0:8.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Mat Booth - 0:8.4.1-6 +- Fix NIO linkage error when running on Java 8 due to incorrect + cross-compilation + +* Sat Jul 11 2020 Jiri Vanek - 0:8.4.1-5 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Wed May 06 2020 Mat Booth - 0:8.4.1-4 +- Fix jp_minimal mode + +* Tue May 5 2020 Alexander Kurtakov - 0:8.4.1-3 +- Disable test-framework as its dependency (randomizedtesting) is removed. + +* Sat Mar 21 2020 Mat Booth - 0:8.4.1-2 +- Fix deps for minimal mode + +* Sat Mar 21 2020 Mat Booth - 0:8.4.1-1 +- Update to latest upstream release + +* Wed Jan 29 2020 Fedora Release Engineering - 0:8.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Nov 28 2019 Mat Booth - 0:8.1.1-3 +- Drop spatial, morfologik, replicator, demo and benchmark modules due to missing deps +- Fix obsoletes when built in minimal mode + +* Thu Jun 13 2019 Mat Booth - 0:8.1.1-2 +- Enable additional module in jp_minimal mode + +* Wed Jun 12 2019 Mat Booth - 0:8.1.1-1 +- Update to latest upstream release + +* Thu Feb 14 2019 Mat Booth - 0:7.7.0-1 +- Update to latest upstream release +- Drop deprecated uima analyzers sub-package +- Added nori Korean analyzers sub-package + +* Fri Feb 01 2019 Fedora Release Engineering - 0:7.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0:7.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Apr 26 2018 Mat Booth - 0:7.1.0-2 +- Fix split package information in OSGi metadata + +* Thu Apr 12 2018 Mat Booth - 0:7.1.0-1 +- Update to a newer upstream release + +* Thu Feb 08 2018 Fedora Release Engineering - 0:6.1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Dec 07 2017 Mat Booth - 0:6.1.0-7 +- Enable more modules in jp_minimal profile, rhbz#1455267 + +* Mon Oct 16 2017 Michael Simacek - 0:6.1.0-6 +- Backport fix for CVE-2017-12629 + +* Thu Sep 21 2017 Mat Booth - 0:6.1.0-5 +- Rebuild to regenerate OSGi metadata due to objectweb-asm update + +* Wed Jul 26 2017 Fedora Release Engineering - 0:6.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Apr 04 2017 Mat Booth - 0:6.1.0-3 +- Add better OSGi metadata for dealing with core/misc split packages +- Drop F24-specific hack + +* Tue Mar 21 2017 Michael Simacek - 0:6.1.0-2 +- Update jp_minimal conditional + +* Mon Mar 20 2017 Mat Booth - 0:6.1.0-1 +- Update to lucene 6 +- Add "spatial-extras" subpackage, this decouples dependencies on spatial4j. + +* Thu Mar 16 2017 Michael Simacek - 0:5.5.0-7 +- Add jp_minimal conditional + +* Mon Feb 06 2017 Michael Simacek - 0:5.5.0-6 +- Remove buildnumber-plugin + +* Mon Aug 22 2016 Roman Vais - 0:5.5.0-5 +- Removed test dependency macros for lucene demo that caused conflict (duplicity) + +* Wed Jul 13 2016 Roland Grunberg - 0:5.5.0-4 +- analyzers-common should have versioned requires on package from core. + +* Fri Jul 08 2016 Mat Booth - 0:5.5.0-3 +- Misc module should require core module, the split package + causes problems for OSGi consumers + +* Mon Apr 18 2016 Mat Booth - 0:5.5.0-2 +- Add missing BR on ant, fixes FTBFS + +* Wed Feb 24 2016 Michael Simacek - 0:5.5.0-1 +- Update to upstream version 5.5.0 + +* Thu Feb 04 2016 Fedora Release Engineering - 0:5.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 25 2016 Alexander Kurtakov 0:5.4.1-2 +- Organize Sources numbering. +- Drop old jpackage header - package has nothing in common anymore. +- Drop 3+ years old provides/obsoletes. +- Move old changelog to separate file to ease working with the spec file. + +* Mon Jan 25 2016 Alexander Kurtakov 0:5.4.1-1 +- Update to upstream 5.4.1 release. + +* Thu Jan 21 2016 Alexander Kurtakov 0:5.4.0-1 +- Update to upstream 5.4.0 release. + +* Tue Oct 6 2015 Alexander Kurtakov 0:5.3.1-1 +- Update to upstream 5.3.1 release. + +* Thu Aug 27 2015 Alexander Kurtakov 0:5.3.0-1 +- Update to upstream 5.3.0 release. + +* Wed Aug 26 2015 Mat Booth - 0:5.2.1-4 +- Remove forbidden SCL macros + +* Wed Jun 24 2015 Alexander Kurtakov 0:5.2.1-3 +- Disable generation of uses clauses in OSGi manifests. + +* Wed Jun 24 2015 Alexander Kurtakov 0:5.2.1-2 +- Drop old workarounds. + +* Tue Jun 23 2015 Alexander Kurtakov 0:5.2.1-1 +- Update to upstream 5.2.1. diff --git a/parent-analysis.pom b/parent-analysis.pom new file mode 100644 index 0000000..ae5ad68 --- /dev/null +++ b/parent-analysis.pom @@ -0,0 +1,24 @@ + + + 4.0.0 + + org.apache.lucene + lucene-analysis + + pom + Lucene analysis parent POM + Lucene analysis parent POM + + + common + icu + kuromoji + morfologik + nori + opennlp + phonetic + smartcn + stempel + + diff --git a/parent.pom b/parent.pom new file mode 100644 index 0000000..2a93227 --- /dev/null +++ b/parent.pom @@ -0,0 +1,82 @@ + + + 4.0.0 + + org.apache.lucene + lucene-parent + + + pom + + Lucene parent POM + Lucene parent POM + + + UTF-8 + + + + analysis + backward-codecs + benchmark + classification + codecs + core + demo + expressions + facet + grouping + highlighter + join + luke + memory + misc + monitor + queries + queryparser + replicator + sandbox + spatial3d + suggest + test-framework + + + + + junit + junit + SYSTEM + test + + + + + src/java + src/test + + + org.apache.maven.plugins + maven-compiler-plugin + SYSTEM + + 11 + 11 + + test/ + + + + + org.apache.maven.plugins + maven-surefire-plugin + SYSTEM + + + + + ${project.basedir}/src/resources + + + + diff --git a/sources b/sources index e69de29..3b1e607 100644 --- a/sources +++ b/sources @@ -0,0 +1,32 @@ +SHA512 (lucene-9.2.0-src.tgz) = 4297b59c231c8dcc5d201d2623f762a8fc5af2655eb8dbc1a8d1399d4792be9e85fce806a77105e4711dd01b344da47cb9b1a512a43576c379951e8a89078d83 +SHA512 (lucene-analysis-common-9.2.0.pom) = 4d9ea75193552cd3d042a441d6f7a6de982c57fdce89cd21b3fa6b9f42ab83bc279f992ce3dc12aa2ca7e293f075897caeeac0b47f82f79fd613d7b1e9703440 +SHA512 (lucene-analysis-icu-9.2.0.pom) = f18aad054692582cbf369ef172966df88c02a0cde6533c1d44430e2a3902be306a433d9cb3e8a2ac906cade9bff8ae6d8837a102a03d5e00cbc544092ba91b10 +SHA512 (lucene-analysis-kuromoji-9.2.0.pom) = bb71437fcd3f09492c586fa12930e07a76e7bb302dfc1652683da4bd4aa123500fbc723641577458c11a2bc4622df8e729acab4486b017c894e6b84cb442e4d6 +SHA512 (lucene-analysis-morfologik-9.2.0.pom) = 3910a4c639dc07b0c98a4982a493d55f41042b2c584e0127d63bf2cf986934911235f70d4e346227fa3dd6107e0b56ff4f87ce19056dcd9bf58611617cff425d +SHA512 (lucene-analysis-nori-9.2.0.pom) = c14fbfa2df77cd862b63d29a443f0833d18752675bce9f79a15a75937a6c4d614751d30055f6a9c91711ef5b4e12cb7ac62f4926195123b23b5fff53d5fa76f6 +SHA512 (lucene-analysis-opennlp-9.2.0.pom) = 52155f84b6f7da3a71f8198f31f31e026913a78381c475d432ece902c02ea0a39fd0132db8a5a0f4fd4cca6514ce8b05bcfbeda80b42ece96f5cdd3bc3a9a33d +SHA512 (lucene-analysis-phonetic-9.2.0.pom) = a50669d0d17fd8aa153f143c28e691702f6642d01d8951a98af606bad9cebae5f26d9bc7fac66ec4368adcec7d00656d03a355d4423f5409e41b906a7c41f0dc +SHA512 (lucene-analysis-smartcn-9.2.0.pom) = 316cfbb6123dc34fe3e41e6af232a99fa4a6dd45a7602c76370eb111aa72e12007df6b4457d89603a4ce460ff2fce60c9f753052742cd2c992118f6b0ce4df77 +SHA512 (lucene-analysis-stempel-9.2.0.pom) = 5010add521fa8de6f1f5c93ad39c4d88c879756d303cce9083af4688c9d81ff8d9d1017a5d73044010592ac90cf538bb01c2daa992cc7b6f80dc5f14cc9773fa +SHA512 (lucene-backward-codecs-9.2.0.pom) = 3f89c11092e7e30bfbfc4877bf14ad22385a38e821f04c90b03cfdcbfd0ffb6a9c757ec70d4f5ee656a60de0395b477d9ae2e0b4fdbf34af4e89131ca19c8227 +SHA512 (lucene-benchmark-9.2.0.pom) = c28c80eed2f85fe3f319be921a66be36c65502feeb4b83844868929dc87b4cc4cd1f120de5b99c537ef76701e3539ebe9915c4d1ed9487e605415e10ec328c0e +SHA512 (lucene-classification-9.2.0.pom) = 64c4f35bca9f27eb03accb4435c26115910c7e2f678d3979753c93908ff3030b7131138275ca979a248536170a28ea5ae066eee95927ef3800869465561082d0 +SHA512 (lucene-codecs-9.2.0.pom) = d1595952f11bfe278e5817e2681a2c2c0a5ee10bb690dedc34b35f69718048694311722dc7a7d4023b97a279b34a27cbf8f17815424e5d061ea65d14594587f4 +SHA512 (lucene-core-9.2.0.pom) = ab9dd97044b9d17d634298aed480c0ce4e7a34cb94856f8d5186c1068ddc441b4f60020fe2cfa319342946f3de27423da29c7d5ddee2d99270cef7208f1425ae +SHA512 (lucene-demo-9.2.0.pom) = 3569233983dd2ce557042dc6dce01232e3d0f51280b807cbabc7c860a636a18bb8838d2dee9548feb5fa209dc57336af99df83c502019feca4c64f5c3d343291 +SHA512 (lucene-expressions-9.2.0.pom) = d9914d94d2d46f41bcf3250a3c0efafefbeb8202f0d16cc19e48d78ffa70dfb2700f7f450816cc38642626ae0640fff258b450b17c7b7023ded23659e06db1af +SHA512 (lucene-facet-9.2.0.pom) = 4c65e3bbe2d444c76ce7247d8685313ef36c2c44f691a605be56286eb577faf323d81e28942f0eba6d13521302562f27ef729aa263dd710c1f2555c6c790016a +SHA512 (lucene-grouping-9.2.0.pom) = bbd288ea3633e7a882a563277704cc82b3b766b1bef175ebbd5c5eaefe052c2ba1beb104c598d3476cfba262d667e33321506162fa6c93d06219119fd4bc859e +SHA512 (lucene-highlighter-9.2.0.pom) = 73b885bf2324594c45780a9f917dfd088f4b7330cf3559acce738a51ba07d4cc908d9e890df8af87d52266b302cf613ac7e029bad26a6bad88778a351da83e97 +SHA512 (lucene-join-9.2.0.pom) = fa113b0e30f5af6149c67e5a7af7dc97346560fae0352e67bc6c426ce161b9d18daa8084517b90edf0da325d23f2a1995afd201d901218a3ed8c9950df0c074a +SHA512 (lucene-luke-9.2.0.pom) = e9bfa68f04623123cff09b71482c410c5ea214ef1be9279101c13d02e8d0c9764ad984f741c1eaa4cec408bddafd56946cb2391db306d225c0031a0428f74afb +SHA512 (lucene-memory-9.2.0.pom) = cd5f81d1f07f50d73fda2aaff08defd072b70c6920b1ed3a0d610dcbaab97939d20e3440680b44839c36842683810c636a13bc40542c8a1892edcd25719d32d8 +SHA512 (lucene-misc-9.2.0.pom) = 9ad50afcf274d8c4535334d8b0eadab5134acc7023e42309d5484bec2f87c34e88b1f1e183f0fe0bf2f6448a40fd54f38a043d8c5d1bbfd95f785a22631696a0 +SHA512 (lucene-monitor-9.2.0.pom) = 1ca0798661757230cc312774cd1f8d024c52b98017f0d22ad1081cc30b07f622723bfa25552c5a60d51e7cd9856e386da8dd08098f10a6a24183400c5d66872b +SHA512 (lucene-queries-9.2.0.pom) = 653d50f2aca3285f4b403e7f267d5663a399913dc5faba4ae82704e6a24ae6e85c8ec2ddbf07dd35f3b974f80cc353ddacd8b696e855cdc2e67970c5d1310b95 +SHA512 (lucene-queryparser-9.2.0.pom) = 781f26e04b8871b2769ee0b17874395c256652bda92d66275cafe308c492991dd7098f358a6854b470fcfd877f0d835617e721382cbe9c948bbe2f612087d7fe +SHA512 (lucene-replicator-9.2.0.pom) = a862cd280d1aa43cdc1adbadc5b216715eb4274edceda92e4f53ebebeeb352962ff77b6bc543f2b101d73b9f82c9ba2cfbe712d90c38db1c2b5a199d5b6994ea +SHA512 (lucene-sandbox-9.2.0.pom) = 968be58ade3a84a5e0ce2affe0532e761ffddfb866f9abc8755e3da3a6a517b431b06896c2f80dc1346677f04426e4fd5fb26a6b75530d9d1825ca37b416d957 +SHA512 (lucene-spatial3d-9.2.0.pom) = f249368c8a61d55199afe6287eda306a73e7d477b7c448afc911506da6c20f7d621f0259b91704599b2ae6e6a85d5422ff09295f4b64f550a39c981724daed78 +SHA512 (lucene-suggest-9.2.0.pom) = 299295b9ca7801205b833211398adcf2efdaae43ce17582a1b369f4b2a49cc8a7237bb6366276f312d54a8360831f51de976657cf83207aaaed2ab9b69b842c5 +SHA512 (lucene-test-framework-9.2.0.pom) = 27cfce075cb25f8bdfe5e31a9367333ff5ccb4021419a5eaaab1986eb3273ac2e99cbe6fb5c6b6e728c2487adef5073fd50a21a8012023797201f2936546cf95 From f442e31447a9bce7fa4e1866d5156d599335e6d6 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Aug 16 2022 08:00:22 +0000 Subject: [PATCH 2/2] Add gating smoke test --- diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..8653363 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy +product_versions: + - fedora-* +decision_contexts: + - bodhi_update_push_testing + - bodhi_update_push_stable +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional} diff --git a/plans/Smoke.java b/plans/Smoke.java new file mode 100644 index 0000000..dc7882f --- /dev/null +++ b/plans/Smoke.java @@ -0,0 +1,7 @@ +import org.apache.lucene.codecs.Codec; + +class Smoke { + public static void main(String[] args) { + System.out.println(Codec.availableCodecs()); + } +} diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..1a072d4 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,8 @@ +summary: Basic smoke test +prepare: + how: install + package: java-devel +execute: + script: | + javac --class-path $(echo /usr/share/java/lucene/*.jar | tr ' ' ':') plans/Smoke.java -d plans + java --class-path $(echo /usr/share/java/lucene/*.jar | tr ' ' ':'):plans Smoke