This commit is contained in:
compile_success 2020-02-24 10:18:13 +08:00
parent 2ed2461177
commit 6f53a480e8
3 changed files with 56 additions and 0 deletions

6
xmlunit-1.0.pom Normal file
View File

@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
<version>1.0</version>
</project>

BIN
xmlunit-1.6-src.zip Normal file

Binary file not shown.

50
xmlunit.spec Normal file
View File

@ -0,0 +1,50 @@
Name: xmlunit
Version: 1.6
Release: 10
Summary: Unit Testing XML for Java and .NET
License: BSD
URL: http://xmlunit.sourceforge.net/
Source0: http://downloads.sourceforge.net/xmlunit/xmlunit-1.6-src.zip
Source1: https://repo1.maven.org/maven2/xmlunit/xmlunit/1.0/xmlunit-1.0.pom
BuildArch: noarch
BuildRequires: javapackages-local, ant, ant-junit, junit, xalan-j2, xerces-j2, xml-commons-apis
Requires: junit, xalan-j2, xml-commons-apis
Provides: %{name}-javadoc%{?_isa} %{name}-javadoc
Obsoletes: %{name}-javadoc
%description
XMLUnit provides you with the tools to verify the XML you emit is the one you want to create.
It provides helpers to validate against an XML Schema, assert the values of XPath queries or
compare XML documents against expected outcomes.
%prep
%autosetup -p1
sed -i /java.class.path/d build.xml
find . -name "*.jar" -delete;
rm -rf doc
sed -i 's/\r//g' README.txt LICENSE.txt
%mvn_file : %{name}
%build
ant -Dbuild.compiler=modern -Dhaltonfailure=yes -Djunit.lib=$(build-classpath junit) \
-Dxmlxsl.lib= -Dtest.report.dir=test -Ddb5.xsl=%{_datadir}/sgml/docbook/xsl-ns-stylesheets jar javadocs
%mvn_artifact %{SOURCE1} build/lib/%{name}-%{version}.jar
%install
%mvn_install -J build/doc/api/
%check
ant
%files -f .mfiles
%doc README.txt LICENSE.txt userguide/XMLUnit-Java.pdf
%{_javadocdir}/%{name}/*
%changelog
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6-9
- Package init