95 lines
3.1 KiB
RPMSpec
95 lines
3.1 KiB
RPMSpec
Name: xmlunit
|
|
Version: 2.7.0
|
|
Release: 1
|
|
Summary: Unit Testing XML for Java and .NET
|
|
License: Apache 2.0 and BSD
|
|
URL: https://www.xmlunit.org/
|
|
Source0: https://github.com/xmlunit/xmlunit/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
|
|
Patch0: 0001-Disable-tests-requiring-network-access.patch
|
|
Patch1: xmlunit-2.7.0-ValueAssertTest-fix.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.sun.istack:istack-commons-runtime)
|
|
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
|
|
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
|
|
BuildRequires: mvn(javax.xml.bind:jaxb-api)
|
|
BuildRequires: mvn(junit:junit)
|
|
BuildRequires: mvn(net.bytebuddy:byte-buddy)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
|
BuildRequires: mvn(org.assertj:assertj-core)
|
|
BuildRequires: mvn(org.hamcrest:hamcrest-core)
|
|
BuildRequires: mvn(org.hamcrest:hamcrest-library)
|
|
BuildRequires: mvn(org.mockito:mockito-core)
|
|
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.
|
|
|
|
%package assertj
|
|
Summary: Assertj for %{name}
|
|
%description assertj
|
|
This package provides %{summary}.
|
|
|
|
%package core
|
|
Summary: Core package for %{name}
|
|
%description core
|
|
This package provides %{summary}.
|
|
|
|
%package legacy
|
|
Summary: Legacy package for %{name}
|
|
%description legacy
|
|
This package provides %{summary}.
|
|
|
|
%package matchers
|
|
Summary: Matchers for %{name}
|
|
%description matchers
|
|
This package provides %{summary}.
|
|
|
|
%package placeholders
|
|
Summary: Placeholders for %{name}
|
|
%description placeholders
|
|
This package provides %{summary}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}-src -p1
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
|
|
%pom_remove_plugin :maven-assembly-plugin
|
|
|
|
%pom_change_dep javax.activation:activation jakarta.activation:jakarta.activation-api . xmlunit-core
|
|
%pom_change_dep com.sun.xml.bind:jaxb-core com.sun.xml.bind:jaxb-impl . xmlunit-core
|
|
%pom_add_dep com.sun.istack:istack-commons-runtime::test xmlunit-core
|
|
|
|
%mvn_alias "org.xmlunit:xmlunit-legacy" "xmlunit:xmlunit"
|
|
|
|
%build
|
|
%mvn_build -s -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
|
|
%files -f .mfiles-xmlunit-parent
|
|
%doc README.md CONTRIBUTING.md RELEASE_NOTES.md
|
|
%license LICENSE
|
|
%{_javadocdir}/%{name}/*
|
|
|
|
%files assertj -f .mfiles-xmlunit-assertj
|
|
%files core -f .mfiles-xmlunit-core
|
|
%files legacy -f .mfiles-xmlunit-legacy
|
|
%files matchers -f .mfiles-xmlunit-matchers
|
|
%files placeholders -f .mfiles-xmlunit-placeholders
|
|
|
|
%changelog
|
|
* Mon Feb 21 2022 Ge Wang <wangge20@huawei.com> - 2.7.0-1
|
|
- Upgrade to version 2.7.0
|
|
|
|
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6-9
|
|
- Package init
|