From b82e46814b656c20cddc87e13fdc188338224c59 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 21 Apr 2020 11:22:37 +0200 Subject: [PATCH] Remove XPath functionality --- jdom2.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jdom2.spec b/jdom2.spec index e313029..fee0abc 100644 --- a/jdom2.spec +++ b/jdom2.spec @@ -18,7 +18,6 @@ Patch0: 0001-Adapt-build.patch BuildRequires: javapackages-local BuildRequires: ant BuildRequires: ant-junit -BuildRequires: jaxen BuildRequires: log4j12 BuildArch: noarch @@ -50,10 +49,12 @@ sed -i 's/\r//' LICENSE.txt README.txt # Unable to run coverage: use log4j12 but switch to log4j 2.x sed -i.coverage "s|coverage, jars|jars|" build.xml +# XPath functionality is not needed +rm -rf core/src/java/org/jdom2/xpath/ +sed -i '/import org.jdom2.xpath.XPathFactory/d' core/src/java/org/jdom2/JDOMConstants.java + %build mkdir lib -#build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer -build-jar-repository lib jaxen ant -Dversion=%{version} -Dcompile.source=1.6 -Dcompile.target=1.6 -Dj2se.apidoc=%{_javadocdir}/java maven # Make jar into an OSGi bundle