Files
apache-commons-statistics/apache-commons-statistics.spec
2025-12-27 00:36:45 +03:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package apache-commons-statistics
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%global base_name statistics
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.2
Release: 0
Summary: Apache Commons Statistics
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://commons.apache.org/proper/%{short_name}/
Source0: https://dlcdn.apache.org//commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.commons:commons-numbers-bom:pom:)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.commons:commons-rng-bom:pom:)
BuildArch: noarch
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%description
The Apache Commons Statistics project provides tools for statistics.
%prep
%setup -q -n %{short_name}-%{version}-src
%pom_remove_plugin :maven-checkstyle-plugin
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE NOTICE
%doc RELEASE-NOTES.txt {CONTRIBUTING,README,SECURITY}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog