Enable test suite

- Resolves: rhbz#987412
This commit is contained in:
Mikolaj Izdebski 2013-09-27 15:06:56 +02:00
parent fa24792dff
commit b8fd3f25c2

View File

@ -30,7 +30,7 @@
Name: xmlunit
Version: 1.4
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 0
Summary: Provides classes to do asserts on xml
License: BSD
@ -67,13 +67,14 @@ Javadoc for %{name}
%prep
%setup -q
sed -i /java.class.path/d build.xml
# remove all binary libs and javadocs
find . -name "*.jar" -exec rm -f {} \;
rm -rf doc
cat >build.properties <<EOF
junit.lib=$(build-classpath junit)
xmlxsl.lib=$(build-classpath xalan-j2 xalan-j2-serializer xerces-j2)
xmlxsl.lib=
test.report.dir=test
EOF
@ -85,8 +86,7 @@ EOF
sed -i 's/\r//g' README.txt LICENSE.txt
%build
export CLASSPATH=$(build-classpath xalan-j2-serializer)
ant -Dbuild.compiler=modern -Dfailonerror=false jar javadocs
ant -Dbuild.compiler=modern -Dhaltonfailure=yes jar javadocs
%install
@ -105,6 +105,9 @@ install -m 644 %{SOURCE1} \
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%check
ant
%pretrans javadoc -p <lua>
-- we changed symlink to dir in 1.4-2, workaround RPM issues
path = '%{_javadocdir}/%{name}'
@ -120,6 +123,10 @@ end
%doc %{_javadocdir}/%{name}
%changelog
* Fri Sep 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4-4
- Enable test suite
- Resolves: rhbz#987412
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild