File ant-antunit.spec of Package ant-antunit

#
# spec file for package ant-antunit
#
# Copyright (c) 2022 SUSE LLC
#
# 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:           ant-antunit
Version:        1.4.1
Release:        0
Summary:        Unit Test Framework for Ant Tasks
License:        Apache-2.0
URL:            https://ant.apache.org/antlibs/antunit
Source0:        https://archive.apache.org/dist/ant/antlibs/antunit/source/apache-%{name}-%{version}-src.tar.bz2
Patch0:         ant-antunit-local-ivy.patch
Patch1:         ant-antunit-sourcetarget.patch
BuildRequires:  ivy-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-testutil)
BuildArch:      noarch

%description
This library contains tasks that enables Ant task developers to test their tasks
with Ant and without JUnit.  It contains a few assertion tasks and an antunit
task that runs build files instead of test classes and is modelled after the
JUnit task.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Documentation/HTML

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n apache-%{name}-%{version}
%autopatch -p1

find -type f '(' -iname '*.jar' -o -iname '*.class' ')' -print -delete

%build
%{ant} -Divy.mode=local -Dwith.ivy=false -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 antlib javadoc

%install
%mvn_artifact %{name}-%{version}.pom build/lib/%{name}-%{version}.jar
%mvn_install -J build/javadoc

%files -f .mfiles
%license common/LICENSE NOTICE

%files javadoc -f .mfiles-javadoc

%changelog
openSUSE Build Service is sponsored by