From d5aa2532702f14a2a7df6937d274dd980a9732f5 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Sep 07 2022 10:36:50 +0000 Subject: Refactor spec --- diff --git a/lucene.spec b/lucene.spec index d1b5591..43b0892 100644 --- a/lucene.spec +++ b/lucene.spec @@ -249,7 +249,8 @@ function add_pom { 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 + %pom_add_parent org.apache.lucene:lucene-parent:%{version} ${module} + %pom_xpath_set -f "pom:dependency[pom:scope='runtime']/pom:scope" "compile" ${module} done pushd analysis @@ -259,14 +260,10 @@ cp %SOURCE2 pom.xml 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 + %pom_add_parent org.apache.lucene:lucene-analysis:%{version} ${module} 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