- Update to v8.5.15 * Changes in version 8.5.15: + Fixed a very long-standing subtle bug that was causing unnecessary rehashings on large tables. Maximum fills and backing-array sizes were computed using float precision, rather than double precision, making it impossible to represent all possible sizes exactly. Thanks to Captain-S0L0 for reporting this bug. OBS-URL: https://build.opensuse.org/request/show/1237951 OBS-URL: https://build.opensuse.org/package/show/Java:packages/fastutil?expand=0&rev=7
86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package fastutil
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%{?!make_build:%global make_build make -O %{?_smp_mflags}}
|
|
Name: fastutil
|
|
Version: 8.5.15
|
|
Release: 0
|
|
Summary: Type-specific maps, sets, lists and queues
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://fastutil.di.unimi.it/
|
|
Source0: https://github.com/vigna/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: ant
|
|
BuildRequires: aqute-bnd
|
|
BuildRequires: fdupes
|
|
BuildRequires: javapackages-local >= 6
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Fastutil extends the Java Collections Framework by providing type-specific
|
|
maps, sets, lists, and queues with a small memory footprint and fast access and
|
|
insertion; it provides also big (64-bit) arrays, sets, and lists, sorting
|
|
algorithms, fast, practical I/O classes for binary and text files, and
|
|
facilities for memory mapping large files.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
rm {lib,bnd}/*.jar
|
|
|
|
for i in fastutil.bnd fastutil-core.bnd; do
|
|
echo "-reproducible: true" >> ${i}
|
|
echo "-noextraheaders: true" >> ${i}
|
|
echo "-snapshot: SNAPSHOT" >> ${i}
|
|
done
|
|
|
|
%build
|
|
%make_build sources
|
|
LANG=C.UTF-8 find src -name \*.java -exec perl -i -pCSD -e 's/\x{200B}//g' '{}' \;
|
|
ant -Dfile.encoding=UTF-8 pom dist
|
|
find . -name \*pom\*
|
|
|
|
%install
|
|
# jar
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
install -pm 0644 dist/lib/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
# pom
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
#javadoc
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -r docs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE-2.0
|
|
%doc CHANGES README.md
|
|
|
|
%files javadoc
|
|
%license LICENSE-2.0
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|