Enable test suite
- Resolves: rhbz#987412
This commit is contained in:
parent
fa24792dff
commit
b8fd3f25c2
15
xmlunit.spec
15
xmlunit.spec
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
Name: xmlunit
|
Name: xmlunit
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Provides classes to do asserts on xml
|
Summary: Provides classes to do asserts on xml
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -67,13 +67,14 @@ Javadoc for %{name}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
sed -i /java.class.path/d build.xml
|
||||||
# remove all binary libs and javadocs
|
# remove all binary libs and javadocs
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
rm -rf doc
|
rm -rf doc
|
||||||
|
|
||||||
cat >build.properties <<EOF
|
cat >build.properties <<EOF
|
||||||
junit.lib=$(build-classpath junit)
|
junit.lib=$(build-classpath junit)
|
||||||
xmlxsl.lib=$(build-classpath xalan-j2 xalan-j2-serializer xerces-j2)
|
xmlxsl.lib=
|
||||||
test.report.dir=test
|
test.report.dir=test
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -85,8 +86,7 @@ EOF
|
|||||||
sed -i 's/\r//g' README.txt LICENSE.txt
|
sed -i 's/\r//g' README.txt LICENSE.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath xalan-j2-serializer)
|
ant -Dbuild.compiler=modern -Dhaltonfailure=yes jar javadocs
|
||||||
ant -Dbuild.compiler=modern -Dfailonerror=false jar javadocs
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
@ -105,6 +105,9 @@ install -m 644 %{SOURCE1} \
|
|||||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
ant
|
||||||
|
|
||||||
%pretrans javadoc -p <lua>
|
%pretrans javadoc -p <lua>
|
||||||
-- we changed symlink to dir in 1.4-2, workaround RPM issues
|
-- we changed symlink to dir in 1.4-2, workaround RPM issues
|
||||||
path = '%{_javadocdir}/%{name}'
|
path = '%{_javadocdir}/%{name}'
|
||||||
@ -120,6 +123,10 @@ end
|
|||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user