File roaringbitmap.spec of Package roaringbitmap

#
# spec file for package roaringbitmap
#
# 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/
#


%global parent_version 0.8.6
Name:           roaringbitmap
Version:        0.9.49
Release:        0
Summary:        A better compressed bitset in Java
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            http://roaringbitmap.org/
Source0:        https://github.com/RoaringBitmap/RoaringBitmap/archive/refs/tags/%{version}.tar.gz
Source1:        https://repo1.maven.org/maven2/org/roaringbitmap/RoaringBitmapParent/%{parent_version}/RoaringBitmapParent-%{parent_version}.pom
Source2:        https://repo1.maven.org/maven2/org/roaringbitmap/RoaringBitmap/%{version}/RoaringBitmap-%{version}.pom
Source3:        https://repo1.maven.org/maven2/org/roaringbitmap/shims/%{version}/shims-%{version}.pom
BuildRequires:  maven-local
BuildArch:      noarch

%description
Bitsets, also called bitmaps, are commonly used as fast data structures.
Unfortunately, they can use too much memory. To compensate, we often use
compressed bitmaps.

Roaring bitmaps are compressed bitmaps which tend to outperform conventional
compressed bitmaps such as WAH, EWAH or Concise. In some instances, roaring
bitmaps can be hundreds of times faster and they often offer significantly
better compression. They can even be faster than uncompressed bitmaps.

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

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n RoaringBitmap-%{version}
mv RoaringBitmap roaringbitmap
cp %{SOURCE1} pom.xml
cp %{SOURCE2} roaringbitmap/pom.xml
cp %{SOURCE3} shims/pom.xml

%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-checkstyle-plugin

%pom_xpath_remove 'pom:scope[.="runtime"]' roaringbitmap


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

%install
%mvn_install

%files -f .mfiles
%license LICENSE*
%doc AUTHORS README.md

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

%changelog
openSUSE Build Service is sponsored by