diff --git a/jdom2.spec b/jdom2.spec index c9fa8ad..20586cd 100644 --- a/jdom2.spec +++ b/jdom2.spec @@ -64,8 +64,8 @@ find . -name "*.class" -print -delete find . -name "*.jar" -print -delete %patch0 -p0 -sed -i "s|%{_javadir}/objectweb-asm|%{_javadir}/objectweb-asm3|" build.xml -sed -i "s|log4j.jar|log4j12-12.jar|" build.xml +sed -i.asm "s|%{_javadir}/objectweb-asm|%{_javadir}/objectweb-asm3|" build.xml +sed -i.log4j "s|log4j.jar|log4j12-12.jar|" build.xml %patch1 -p1 cp -p %{SOURCE1} maven/contrib.pom @@ -75,6 +75,7 @@ sed -i 's/\r//' LICENSE.txt README.txt %build +export CLASSPATH=$(build-classpath log4j12-12) ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven %install