File fugue.spec of Package fugue

#
# spec file for package fugue
#
# Copyright (c) 2025 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/
#


%global git_hash e8f64fcd9191
Name:           fugue
Version:        6.1.2
Release:        0
Summary:        Provides functional constructs that complement Google’s Guava library
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://bitbucket.org/atlassian/%{name}
Source:         %{url}/get/v%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildArch:      noarch

%description
Java 8 has standardised some of the basic function interfaces, but does not
include quite a few more tools that a functional programmer may expect to be
available. This library attempts to fill in some of the gaps when using Java 8.

In particular it provides Option and Either types as well as a Pair.

There also additional helper classes for common Function, Supplier, and
Iterable operations.

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

%description javadoc
API documentation for %{name}.

%prep
%autosetup -n atlassian-%{name}-%{git_hash} 

%pom_remove_parent

%pom_xpath_remove 'pom:arg[.="-Werror"]'

%pom_disable_module %{name}-scala
%pom_disable_module %{name}-quickcheck-generators

%pom_remove_plugin net.revelc.code:formatter-maven-plugin
%pom_remove_plugin org.scalariform:scalariform-maven-plugin

%build
%{mvn_build} -f -- \
	-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)

%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license LICENSE.txt
%doc {changelog,readme}.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%changelog
openSUSE Build Service is sponsored by