File apache-commons-collections4.spec of Package apache-commons-collections4
#
# spec file
#
# 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/
#
%define base_name collections4
%define short_name commons-%{base_name}
%bcond_with tests
Name: apache-%{short_name}
Version: 4.4
Release: 0
Summary: Extension of the Java Collections Framework
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://commons.apache.org/proper/commons-collections/
Source0: http://archive.apache.org/dist/commons/collections/source/%{short_name}-%{version}-src.tar.gz
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildArch: noarch
%description
Commons-Collections seek to build upon the JDK classes by providing
new interfaces, implementations and utilities.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
This package provides %{summary}.
%prep
%autosetup -n %{short_name}-%{version}-src
%{mvn_file} : %{name} %{short_name}
dos2unix RELEASE-NOTES.txt
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc {README,CONTRIBUTING}.md {DEVELOPERS-GUIDE,PROPOSAL}.html RELEASE-NOTES.txt
%license {LICENSE,NOTICE}.txt
%files javadoc -f .mfiles-javadoc
%license {LICENSE,NOTICE}.txt
%changelog