Fix build with both xmvn-mojo:javadoc and javadoc:aggregate OBS-URL: https://build.opensuse.org/request/show/1264632 OBS-URL: https://build.opensuse.org/package/show/Java:packages/dexx?expand=0&rev=2
73 lines
2.2 KiB
RPMSpec
73 lines
2.2 KiB
RPMSpec
#
|
||
# 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
|
||
pushd collection
|
||
%{mvn_build} -f
|
||
popd
|
||
|
||
%install
|
||
pushd collection
|
||
%mvn_install
|
||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||
popd
|
||
|
||
%files -f collection/.mfiles
|
||
%license {NOTICE,LICENSE,licenses/LICENSE_Scala}.txt
|
||
%doc README.md
|
||
|
||
%files javadoc -f collection/.mfiles-javadoc
|
||
%license {NOTICE,LICENSE,licenses/LICENSE_Scala}.txt
|
||
|
||
%changelog
|