Permaine Cheung 2f7cab9
# Copyright (c) 2000-2007, JPackage Project
Permaine Cheung 54e2ebb
# All rights reserved.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# Redistribution and use in source and binary forms, with or without
Permaine Cheung 54e2ebb
# modification, are permitted provided that the following conditions
Permaine Cheung 54e2ebb
# are met:
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# 1. Redistributions of source code must retain the above copyright
Permaine Cheung 54e2ebb
#    notice, this list of conditions and the following disclaimer.
Permaine Cheung 54e2ebb
# 2. Redistributions in binary form must reproduce the above copyright
Permaine Cheung 54e2ebb
#    notice, this list of conditions and the following disclaimer in the
Permaine Cheung 54e2ebb
#    documentation and/or other materials provided with the
Permaine Cheung 54e2ebb
#    distribution.
Permaine Cheung 54e2ebb
# 3. Neither the name of the JPackage Project nor the names of its
Permaine Cheung 54e2ebb
#    contributors may be used to endorse or promote products derived
Permaine Cheung 54e2ebb
#    from this software without specific prior written permission.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Permaine Cheung 54e2ebb
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Permaine Cheung 54e2ebb
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Permaine Cheung 54e2ebb
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Permaine Cheung 54e2ebb
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Permaine Cheung 54e2ebb
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Permaine Cheung 54e2ebb
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Permaine Cheung 54e2ebb
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Permaine Cheung 54e2ebb
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Permaine Cheung 54e2ebb
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Permaine Cheung 54e2ebb
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Permaine Cheung 54e2ebb
#
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
Name:           xmlunit
0069db7
Version:        2.6.3
0069db7
Release:        1%{?dist}
Permaine Cheung 2f7cab9
Summary:        Provides classes to do asserts on xml
cdf8080
# The whole package is ASL 2.0 except for xmlunit-legacy which is BSD
cdf8080
License:        ASL 2.0 and BSD
4a42e76
Source0:        https://github.com/xmlunit/xmlunit/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
4a42e76
URL:            https://www.xmlunit.org/
4a42e76
47ff253
Patch1:         0001-Disable-tests-requiring-network-access.patch
47ff253
Patch2:         0002-Port-to-hamcrest-2.1.patch
9d12669
Patch3:         0003-Fix-test-failure.patch
4a42e76
4a42e76
BuildRequires:  maven-local
4a42e76
BuildRequires:  mvn(junit:junit)
4a42e76
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
4a42e76
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
4a42e76
BuildRequires:  mvn(org.assertj:assertj-core)
4a42e76
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
4a42e76
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
4a42e76
BuildRequires:  mvn(org.mockito:mockito-core)
Stanislav Ochotnicky 0255ffa
Permaine Cheung 54e2ebb
BuildArch:      noarch
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%description
4a42e76
XMLUnit provides you with the tools to verify the XML you emit is the one you
4a42e76
want to create. It provides helpers to validate against an XML Schema, assert
4a42e76
the values of XPath queries or compare XML documents against expected outcomes.
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%package        javadoc
Permaine Cheung 54e2ebb
Summary:        Javadoc for %{name}
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%description    javadoc
Permaine Cheung 54e2ebb
Javadoc for %{name}
Permaine Cheung 54e2ebb
4a42e76
%package        assertj
4a42e76
Summary:        Assertj for %{name}
a6390b9
4a42e76
%description    assertj
4a42e76
This package provides %{summary}.
Permaine Cheung 54e2ebb
4a42e76
%package        core
4a42e76
Summary:        Core package for %{name}
Permaine Cheung 54e2ebb
4a42e76
%description    core
4a42e76
This package provides %{summary}.
Permaine Cheung 54e2ebb
4a42e76
%package        legacy
4a42e76
Summary:        Legacy package for %{name}
Permaine Cheung 2f7cab9
4a42e76
%description    legacy
4a42e76
This package provides %{summary}.
Permaine Cheung 54e2ebb
4a42e76
%package        matchers
4a42e76
Summary:        Matchers for %{name}
4a42e76
4a42e76
%description    matchers
4a42e76
This package provides %{summary}.
4a42e76
4a42e76
%package        placeholders
4a42e76
Summary:        Placeholders for %{name}
4a42e76
4a42e76
%description    placeholders
4a42e76
This package provides %{summary}.
Permaine Cheung 54e2ebb
4a42e76
%prep
4a42e76
%setup -q -n %{name}-%{version}-src
4a42e76
47ff253
%patch1 -p1
47ff253
%patch2 -p1
9d12669
# This test failure showed up after updating mockito to 3.X, but the error
9d12669
# message clearly points to assertj-core
9d12669
%patch3 -p1
4a42e76
4a42e76
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
4a42e76
%pom_remove_plugin :maven-assembly-plugin
4a42e76
4a42e76
%mvn_alias "org.xmlunit:xmlunit-legacy" "xmlunit:xmlunit"
b8fd3f2
4a42e76
%build
4a42e76
%mvn_build -s
4a42e76
4a42e76
%install
4a42e76
%mvn_install
Permaine Cheung 2f7cab9
4a42e76
%files -f .mfiles-xmlunit-parent
4a42e76
%doc README.md CONTRIBUTING.md RELEASE_NOTES.md
4a42e76
%license LICENSE
Permaine Cheung 54e2ebb
a6390b9
%files javadoc -f .mfiles-javadoc
4a42e76
%files assertj -f .mfiles-xmlunit-assertj
4a42e76
%files core -f .mfiles-xmlunit-core
4a42e76
%files legacy -f .mfiles-xmlunit-legacy
4a42e76
%files matchers -f .mfiles-xmlunit-matchers
4a42e76
%files placeholders -f .mfiles-xmlunit-placeholders
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
%changelog
0069db7
* Wed Jun 26 2019 Marian Koncek <mkoncek@redhat.com> - 2.6.3-1
0069db7
- Update to upstream version 2.6.3
0069db7
d461565
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.2-2
d461565
- Mass rebuild for javapackages-tools 201901
d461565
4a42e76
* Mon Mar 04 2019 Marian Koncek <mkoncek@redhat.com> - 0:2.6.2-1
4a42e76
- Update to upstream version 2.6.2
4a42e76
454c51e
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-9
454c51e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
454c51e
2cab78d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-8
2cab78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2cab78d
b83861e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-7
b83861e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b83861e
d2b2c5e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-6
d2b2c5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d2b2c5e
a6390b9
* Wed Mar 01 2017 Michael Simacek <msimacek@redhat.com> - 0:1.6-5
a6390b9
- Install with XMvn
a6390b9
4ea7466
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-4
4ea7466
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4ea7466
4741eb7
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.6-3
4741eb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4741eb7
e915121
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6-2
e915121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e915121
bcc0056
* Sun Jan 04 2015 Dr. Tilmann Bubeck <tilmann@bubecks.de> - 0:1.6-1
bcc0056
- update to upstream's xmlunit-1.6
bcc0056
b6adf38
* Wed Nov  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3
b6adf38
- Remove workaround for RPM bug #646523
b6adf38
6ede113
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-2
6ede113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ede113
Dr. Tilmann Bubeck fe60075
* Fri Oct 11 2013 Dr. Tilmann Bubeck <tilmann@bubecks.de> - 0:1.5-1
Dr. Tilmann Bubeck fe60075
- update to upstream's xmlunit-1.5
Dr. Tilmann Bubeck fe60075
b8fd3f2
* Fri Sep 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.4-4
b8fd3f2
- Enable test suite
b8fd3f2
- Resolves: rhbz#987412
b8fd3f2
fa24792
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-3
fa24792
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fa24792
Stanislav Ochotnicky 0255ffa
* Wed Jun 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.4-2
Stanislav Ochotnicky 0255ffa
- Update to latest packaging guidelines
Stanislav Ochotnicky 0255ffa
- Cleanup BuildRequires
Stanislav Ochotnicky 0255ffa
Dr. Tilmann Bubeck f6af6a4
* Fri Feb 15 2013 Dr. Tilmann Bubeck <t.bubeck@reinform.de> - 0:1.4-1
Dr. Tilmann Bubeck f6af6a4
- update to upstream's xmlunit-1.4
Dr. Tilmann Bubeck f6af6a4
03f2a38
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-7
03f2a38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
03f2a38
8ed8734
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-6
8ed8734
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ed8734
cdc173f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-5
cdc173f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cdc173f
a2cd7cc
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-4
a2cd7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a2cd7cc
3203c51
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-3
3203c51
- Build javadoc only.
3203c51
625f0f2
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-2
625f0f2
- BR java 1.6 to prevent gcj failure.
625f0f2
3f098e5
* Thu Dec 30 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3-1
3f098e5
- Update to new upstream.
3f098e5
- Drop gcj.
3f098e5
- Rebuild docs.
3f098e5
ca13e1a
* Thu Mar 11 2010 Peter Lemenkov <lemenkov@gmail.com> - 0:1.0-8.3
ca13e1a
- Added missing Requires jpackage-utils
ca13e1a
8b032fb
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-8.2
8b032fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8b032fb
31319b9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-7.2
31319b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
31319b9
cfbcb08
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.0-6.2
cfbcb08
- drop repotag
cfbcb08
c5eb55c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.0-6jpp.1
c5eb55c
- Autorebuild for GCC 4.3
c5eb55c
Permaine Cheung 2f7cab9
* Thu Jan 17 2008 Permaine Cheung <pcheung@redhat.com> - 0:1.0-5jpp.1
Permaine Cheung 2f7cab9
- Update to the same version as upstream
Permaine Cheung 2f7cab9
Permaine Cheung 2f7cab9
 Tue Dec 18 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.0-5jpp
Permaine Cheung 2f7cab9
- Add poms and depmap frags
Permaine Cheung 2f7cab9
- Make Vendor, Distribution based on macro
Permaine Cheung 2f7cab9
- Add gcj_support option
Permaine Cheung 2f7cab9
Permaine Cheung 54e2ebb
* Mon Mar 12 2007 Permaine Cheung <pcheung@redhat.com> - 0:1.0-4jpp.1
Permaine Cheung 54e2ebb
- Add missing BR, patch to build javadoc, and other rpmlint issues
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Mon May 08 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-4jpp
Permaine Cheung 54e2ebb
- First JPP-1.7 release
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-3jpp
Permaine Cheung 54e2ebb
- Build with ant-1.6.2
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-2jpp
Permaine Cheung 54e2ebb
- Fix license and improved description
Permaine Cheung 54e2ebb
- Thanks to Ralph Apel who produced a spec - merged version info
Permaine Cheung 54e2ebb
Permaine Cheung 54e2ebb
* Wed Dec 17 2003 Paul Nasrat <pauln at truemesh.com> - 0:1.0-1jpp
Permaine Cheung 54e2ebb
- Initial Version