From 4bc23ae2e68750298a63d5e9a43fcb8a0e6665a0 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Jul 08 2016 01:12:02 +0000 Subject: Misc module should require core module, the split package causes problems for OSGi consumers --- diff --git a/lucene.spec b/lucene.spec index ad4c5ac..a227a5d 100644 --- a/lucene.spec +++ b/lucene.spec @@ -1,7 +1,7 @@ Summary: High-performance, full-featured text search engine Name: lucene Version: 5.5.0 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 0 License: ASL 2.0 URL: http://lucene.apache.org/ @@ -310,6 +310,13 @@ mv lucene/build/poms/pom.xml . # For some reason TestHtmlParser.testTurkish fails when building inside SCLs %mvn_build -s -f +# Fix OSGi metadata in misc module +pushd lucene/misc/target +unzip lucene-misc-%{version}.jar META-INF/MANIFEST.MF +sed -i -e '1aRequire-Bundle: org.apache.lucene.core ' META-INF/MANIFEST.MF +jar ufm lucene-misc-%{version}.jar META-INF/MANIFEST.MF 2>&1 > /dev/null +popd + %install %mvn_install @@ -355,6 +362,10 @@ mv lucene/build/poms/pom.xml . %license LICENSE.txt NOTICE.txt %changelog +* 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