2023-11-02 14:26:57 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package dexx
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2023 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: dexx
|
|
|
|
|
Version: 0.7
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Persistent (immutable) collections for Java and Kotlin
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
URL: https://github.com/andrewoma/%{name}
|
|
|
|
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: https://repo1.maven.org/maven2/com/github/andrewoma/%{name}/collection/%{version}/collection-%{version}.pom
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(com.intellij:annotations)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Dexx Collections are a port of Scala’s immutable, persistent collection classes
|
|
|
|
|
to pure Java.
|
|
|
|
|
|
|
|
|
|
Persistent in the context of functional data structures means the data
|
|
|
|
|
structure preserves the previous version of itself when modified. This means
|
|
|
|
|
any reference to a collection is effectively immutable. However, modifications
|
|
|
|
|
can be made by returning a new version of the data structure, leaving the
|
|
|
|
|
original structure unchanged.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
cp %{SOURCE1} collection/pom.xml
|
|
|
|
|
|
|
|
|
|
%build
|
2025-03-27 17:52:43 +00:00
|
|
|
|
pushd collection
|
|
|
|
|
%{mvn_build} -f
|
|
|
|
|
popd
|
2023-11-02 14:26:57 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2025-03-27 17:52:43 +00:00
|
|
|
|
pushd collection
|
2023-11-02 14:26:57 +00:00
|
|
|
|
%mvn_install
|
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
2025-03-27 17:52:43 +00:00
|
|
|
|
popd
|
2023-11-02 14:26:57 +00:00
|
|
|
|
|
2025-03-27 17:52:43 +00:00
|
|
|
|
%files -f collection/.mfiles
|
2023-11-02 14:26:57 +00:00
|
|
|
|
%license {NOTICE,LICENSE,licenses/LICENSE_Scala}.txt
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
2025-03-27 17:52:43 +00:00
|
|
|
|
%files javadoc -f collection/.mfiles-javadoc
|
2023-11-02 14:26:57 +00:00
|
|
|
|
%license {NOTICE,LICENSE,licenses/LICENSE_Scala}.txt
|
|
|
|
|
|
|
|
|
|
%changelog
|