diff --git a/xmlunit-1.0.pom b/xmlunit-1.0.pom new file mode 100644 index 0000000..c5aa039 --- /dev/null +++ b/xmlunit-1.0.pom @@ -0,0 +1,6 @@ + + 4.0.0 + xmlunit + xmlunit + 1.0 + \ No newline at end of file diff --git a/xmlunit-1.6-src.zip b/xmlunit-1.6-src.zip new file mode 100644 index 0000000..6598ed2 Binary files /dev/null and b/xmlunit-1.6-src.zip differ diff --git a/xmlunit.spec b/xmlunit.spec new file mode 100644 index 0000000..a0f205b --- /dev/null +++ b/xmlunit.spec @@ -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 - 1.6-9 +- Package init