Sync from SUSE:SLFO:Main xmlunit revision b7ff09c0a456d6a97c3d858519495fcd
This commit is contained in:
commit
a9bade0ba5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
BIN
xmlunit-1.6-src.zip
(Stored with Git LFS)
Normal file
BIN
xmlunit-1.6-src.zip
(Stored with Git LFS)
Normal file
Binary file not shown.
78
xmlunit-1.6.pom
Normal file
78
xmlunit-1.6.pom
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2014, Jeff Martin, Tim Bacon
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
* Neither the name of the xmlunit.sourceforge.net nor the names
|
||||||
|
of its contributors may be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This POM is not usable as means to build XMLUnit with Maven2, it is
|
||||||
|
a minimal POM to allow XMLUnit's artifacts to be added to a Maven
|
||||||
|
repository.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>xmlunit</groupId>
|
||||||
|
<artifactId>xmlunit</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>XMLUnit for Java</name>
|
||||||
|
<version>1.6</version>
|
||||||
|
<url>http://www.xmlunit.org/</url>
|
||||||
|
<description>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.</description>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>BSD License</name>
|
||||||
|
<url>https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/LICENSE.txt</url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<scm>
|
||||||
|
<url>https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/</url>
|
||||||
|
<connection>scm:svn:https://svn.code.sf.net/p/xmlunit/code/trunk</connection>
|
||||||
|
</scm>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>3.8.2</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<!-- Personally I'm not fond of the developers section but Sonatype's OSSRH
|
||||||
|
requires it -->
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>bodewig</id>
|
||||||
|
<name>Stefan Bodewig</name>
|
||||||
|
<email>stefan.bodewig@freenet dot de</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
</project>
|
123
xmlunit.changes
Normal file
123
xmlunit.changes
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 12 11:26:50 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Cleanup spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 20 13:06:04 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Build with java source and target levels 8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 12 13:03:16 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <fstrba@suse.com>
|
||||||
|
|
||||||
|
- 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)
|
||||||
|
|
105
xmlunit.spec
Normal file
105
xmlunit.spec
Normal file
@ -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 <<EOF
|
||||||
|
db5.xsl=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/
|
||||||
|
EOF
|
||||||
|
|
||||||
|
export CLASSPATH=
|
||||||
|
export OPT_JAR_LIST="junit ant/ant-junit jaxp_transform_impl ant/ant-trax xalan-j2-serializer"
|
||||||
|
ant -Djavac.source=1.8 -Djavac.target=1.8 -Dbuild.compiler=modern -Dhaltonfailure=yes jar javadocs
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
|
install -m 0644 build/lib/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
|
||||||
|
# Javadoc
|
||||||
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -pr build/doc/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
# poms
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
%{mvn_install_pom} %{SOURCE1} \
|
||||||
|
%{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}.pom %{name}.jar
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc README.txt
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%doc userguide
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user