Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569349
en ru br
ALT Linux repos
S:2.8.2-alt1_8jpp11
5.0: 1.0-alt2_6jpp5
4.1: 1.0-alt2_5jpp1.7
4.0: 1.0-alt2_5jpp1.7
3.0: 1.0-alt1

Group :: Development/Java
RPM: xmlunit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: xmlunit
Version: 1.0
Release: alt1

Summary: Provides classes to do asserts on xml
License: BSD Style Software License

Source0: xmlunit-1.0.tar.bz2
Url: http://xmlunit.sourceforge.net/

BuildPreReq: /proc rpm-build-java
BuildRequires: ant junit ant-junit xalan-j xerces-j xml-commons-apis
Requires: junit xalan-j xml-commons-apis jaxp_parser_impl
Group: Development/Java
BuildArch: noarch

%description
XMLUnit extends JUnit to simplify unit testing of XML. It compares a control
XML document to a test document or the result of a transformation, validates
documents against a DTD, and (from v0.5) compares the results of XPath
expressions.

%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common

%description javadoc
Javadoc for %name

%prep
%setup -q -n %name
# remove all binary libs and javadocs
find . -name "*.jar" -exec rm -f {} \;
%__rm -rf doc

cat >build.properties <<EOF
junit.lib=%_javadir/junit.jar
xmlxsl.lib=%_javadir/xalan-j.jar:%_javadir/xerces-j.jar
test.report.dir=test
EOF

%build
%__ant -Dbuild.compiler=modern jar test docs

%install
%__mkdir_p %buildroot{%_javadir,%_javadocdir/%name}
%__install -m644 lib/*.jar %buildroot%_javadir/%name.jar

# Javadoc

%__cp -pr doc/* %buildroot%_javadocdir/%name

%files
%_javadir/*
%doc README.txt LICENSE.txt XMLUnit.pdf example.html

%files javadoc
%_javadocdir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin