Remove XPath functionality

f38
Mikolaj Izdebski 5 years ago
parent 79a534d6ef
commit b82e46814b

@ -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

Loading…
Cancel
Save