Files
sparsebitset/sparsebitset.spec

67 lines
2.0 KiB
RPMSpec

#
# spec file for package sparsebitset
#
# 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: sparsebitset
Version: 1.3
Release: 0
Summary: An efficient sparse bit set implementation for Java
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/brettwooldridge/SparseBitSet
Source0: %{url}/archive/refs/tags/SparseBitSet-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Basically, if you need to set a large number of bits, or bits at extremely high
offsets, you probably want to use this Sparse BitSet. All other alternatives
are essentialy off the table; the Java BitSet class is a non-starter.
Performance is superior in almost all cases to the standard Java BitSet.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n SparseBitSet-SparseBitSet-%{version}
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_xpath_remove 'pom:plugin[pom:artifactId/text()="maven-compiler-plugin"]/pom:configuration'
%{mvn_file} : %{name}
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog