commit a338c40e96fdae618b7a874958da107e595b52fc Author: Adrian Schröter Date: Tue Feb 20 09:28:49 2024 +0100 Sync from SUSE:ALP:Source:Standard:1.0 xmlunit revision b7ff09c0a456d6a97c3d858519495fcd diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/xmlunit-1.6-src.zip b/xmlunit-1.6-src.zip new file mode 100644 index 0000000..086f818 --- /dev/null +++ b/xmlunit-1.6-src.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3aeb0c9737c1184e7c70bb1f8eb986dc449c03f09f6d3c65406d51a7f879c8c +size 830899 diff --git a/xmlunit-1.6.pom b/xmlunit-1.6.pom new file mode 100644 index 0000000..e0ccca7 --- /dev/null +++ b/xmlunit-1.6.pom @@ -0,0 +1,78 @@ + + + + + + 4.0.0 + xmlunit + xmlunit + jar + XMLUnit for Java + 1.6 + http://www.xmlunit.org/ + XMLUnit compares a control XML document to a test document or the result of a transformation, validates documents, and compares the results of XPath expressions. + + + BSD License + https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/LICENSE.txt + + + + https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/ + scm:svn:https://svn.code.sf.net/p/xmlunit/code/trunk + + + + junit + junit + 3.8.2 + true + + + + + + bodewig + Stefan Bodewig + stefan.bodewig@freenet dot de + + + diff --git a/xmlunit.changes b/xmlunit.changes new file mode 100644 index 0000000..b4d885c --- /dev/null +++ b/xmlunit.changes @@ -0,0 +1,123 @@ +------------------------------------------------------------------- +Fri Jan 12 11:26:50 UTC 2024 - Fridrich Strba + +- Cleanup spec file + +------------------------------------------------------------------- +Sun Mar 20 13:06:04 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Sun Dec 12 13:03:16 UTC 2021 - Dirk Müller + +- update to 1.6: + * In cases of ATTR_NAME_NOT_FOUND and CHILD_NODE_NOT_FOUND differences the value + used to be the local name of the missing attribute or node. + + * New assertXpathEvaluatesTo overloads in XMLAssert and a new QualifiedName class + can be used to assert the stringified result of an XPath expression is actually + a qualified name + + * The JAXP 1.3 based validator ignored xsi:namespaceLocation and + xsi:noNamespaceLocation attributes. + +------------------------------------------------------------------- +Wed Nov 7 20:46:02 UTC 2018 - Fridrich Strba + +- Do not depend on a particular xml-commons-apis provider. + +------------------------------------------------------------------- +Tue Sep 19 07:20:04 UTC 2017 - fstrba@suse.com + +- Specify java source and target level 1.6 in order to allow build + with jdk9 +- Clean spec file and fix duplicate waste rpmlint error + +------------------------------------------------------------------- +Fri May 19 09:21:06 UTC 2017 - vsistek@suse.com + +- Add BuildRequires: javapackages-local (for maven conversions) + +------------------------------------------------------------------- +Wed Mar 18 09:40:00 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Thu Dec 4 19:24:29 UTC 2014 - p.drouand@gmail.com + +- Remove java-devel dependency; not needed anymore + +------------------------------------------------------------------- +Fri Jul 11 10:23:19 UTC 2014 - tchvatal@suse.com + +- Drop xmlunit1.0.zip as it is not used anywhere. + +------------------------------------------------------------------- +Tue Jul 8 10:30:25 UTC 2014 - tchvatal@suse.com + +- Cleanup with spec-cleaner a bit. + +------------------------------------------------------------------- +Mon Jul 7 14:43:20 UTC 2014 - tchvatal@suse.com + +- Depend on junit not junit4. Replace ant-trax with ant. + +------------------------------------------------------------------- +Tue Oct 8 07:40:00 UTC 2013 - mvyskocil@suse.com + +- Build with junit4 + +------------------------------------------------------------------- +Thu Oct 3 12:16:24 UTC 2013 - mvyskocil@suse.com + +- Update to 1.5 + * If one node in the comparison has children while the other one + has not, XMLUnit 1.5 will signal a CHILD_NODELIST_LEN GTH + difference and CHILD_NODE_NOT_FOUND differences for each child + node of the node that has children in addition to a + HAS_CHILD_NODES difference. + 1.4: + * xsi:type attributes now have their value interpreted as a QName and will + compare as identical if their namespace URI and local + names match even if they use different prefixes + 1.3: + * Try to match control Element with first unmatched test one instead of + creating CHILD_NODE_NOT_FOUND + 1.2: + * null XPath on missing node + * SAXParserFactory can be configured + * new Validator class to validate schema definitions + 1.1: + * Support for XML Namespaces in XPath processing + * Support for XML Schema validation using any JAXP compliant parser +- dropped xmlunit-java5-enum.patch, not needed +- dropped xmlunit-no-javac-target.patch, not needed +- put userguide to javadoc package + +------------------------------------------------------------------- +Wed Sep 11 10:03:55 UTC 2013 - mvyskocil@suse.com + +- use add_maven_depmap from javapackages-tools + +------------------------------------------------------------------- +Mon Sep 9 11:06:30 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Thu Dec 15 11:29:10 UTC 2011 - mvyskocil@suse.cz + +- fix the license to BSD-3-Clause (bnc#737022) + +------------------------------------------------------------------- +Thu Dec 8 13:54:49 UTC 2011 - coolo@suse.com + +- fix license to be in spdx.org format + +------------------------------------------------------------------- +Thu Nov 4 11:44:42 UTC 2010 - mvyskocil@suse.cz + +- Initial SUSE packaging of xmlunit (xmlunit-1.0-6.jpp5.src.rpm) + diff --git a/xmlunit.spec b/xmlunit.spec new file mode 100644 index 0000000..014bbdb --- /dev/null +++ b/xmlunit.spec @@ -0,0 +1,105 @@ +# +# spec file for package xmlunit +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2000-2008, JPackage Project +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: xmlunit +Version: 1.6 +Release: 0 +Summary: Provides classes to do asserts on XML +License: BSD-3-Clause +Group: Development/Libraries/Java +URL: https://xmlunit.sourceforge.net/ +Source0: https://download.sourceforge.net/%{name}/%{name}-%{version}-src.zip +Source1: https://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: fdupes +# Needed for maven conversions +BuildRequires: javapackages-local >= 6 +BuildRequires: junit +BuildRequires: unzip +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xml-commons-apis >= 1.3 +Requires: junit +Requires: xalan-j2 +Requires: xerces-j2 +Requires: xml-commons-apis >= 1.3 +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: Documentation/HTML + +%description javadoc +Javadoc for %{name}. Also contains userguide. + +%prep +%setup -q + +perl -pi -e 's/\r$//g' README.txt LICENSE.txt + +# remove all binary libs and javadocs +find . -name "*.jar" -delete + +%build + +cat > build.properties << EOF +junit.lib=$(build-classpath junit) +xmlxsl.lib=$(build-classpath xalan-j2 xerces-j2 xml-commons-jaxp-1.3-apis) +test.report.dir=test +EOF + +cat > docbook.properties <