File trove4j.spec of Package trove4j
#
# spec file for package trove4j
#
# 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/
#
Name: trove4j
Version: 3.1.0.git1541701926.ffd7590
Release: 0
Summary: High speed Object and primitive collections for Java
License: LGPL-2.1-only
Group: Development/Libraries/Java
URL: https://bitbucket.org/trove4j/trove/
Source0: %{name}-%{version}.tar.xz
Patch0: 00-gradle-4.patch
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: gradle-local
BuildRequires: java-devel >= 1.8
BuildArch: noarch
%description
The Trove library provides high speed Object and primitive collections for Java.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
API documentation for %{name}.
%global short_version %(echo %{version} |sed -e 's/\.git.*//')
%prep
%setup -q
%patch -P 0
dos2unix *.{txt,md}
%{mvn_file} :%{name} %{name}-%{short_version} %{name}
%{mvn_file} :%{name}-experimental %{name}-experimental-%{short_version} %{name}-experimental
%build
%gradle_build -f
%install
%mvn_install
mkdir -p %{buildroot}%{_javadocdir}
cp -pr core/build/docs/javadoc %{buildroot}%{_javadocdir}/%{name}
cp -pr experimental/build/docs/javadoc %{buildroot}%{_javadocdir}/%{name}-experimental
%fdupes %{buildroot}%{_javadocdir}/%{name}*
%files -f .mfiles
%defattr(0644,root,root)
%doc CHANGES.txt README.md AUTHORS.txt
%license LICENSE.txt README-license.txt
%files javadoc
%defattr(0644,root,root)
%doc CHANGES.txt README.md AUTHORS.txt
%license LICENSE.txt README-license.txt
%{_javadocdir}/%{name}*
%changelog