ALT Linux repos
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
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