From 461117b51d820ebf2894b9679653695dd4d8df1b752c6d86e2ed082dcb8c55e6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 1 Nov 2019 08:39:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaewah?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + JavaEWAH-1.1.6.tar.gz | 3 ++ javaewah.changes | 4 +++ javaewah.spec | 78 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 JavaEWAH-1.1.6.tar.gz create mode 100644 javaewah.changes create mode 100644 javaewah.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/JavaEWAH-1.1.6.tar.gz b/JavaEWAH-1.1.6.tar.gz new file mode 100644 index 0000000..68a771b --- /dev/null +++ b/JavaEWAH-1.1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b9463b4c4deecbc0b2da17ecf7b14aac22cb13792b59f3687941301430ef2d8 +size 129292 diff --git a/javaewah.changes b/javaewah.changes new file mode 100644 index 0000000..bc93a0c --- /dev/null +++ b/javaewah.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 1 08:38:53 UTC 2019 - Fridrich Strba + +- Initial packaging of javaewah 1.1.6 diff --git a/javaewah.spec b/javaewah.spec new file mode 100644 index 0000000..f352889 --- /dev/null +++ b/javaewah.spec @@ -0,0 +1,78 @@ +# +# spec file for package javaewah +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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: javaewah +Version: 1.1.6 +Release: 0 +Summary: A word-aligned compressed variant of the Java bitset class +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/lemire/javaewah +Source0: https://github.com/lemire/javaewah/archive/JavaEWAH-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildArch: noarch + +%description +JavaEWAH is a word-aligned compressed variant of the Java bitset class. +It uses a 64-bit run-length encoding (RLE) compression scheme. + +The goal of word-aligned compression is not to achieve the best +compression, but rather to improve query processing time. Hence, we try +to save CPU cycles, maybe at the expense of storage. However, the EWAH +scheme we implemented is always more efficient storage-wise than an +uncompressed bitmap (implemented in Java as the BitSet class). Unlike +some alternatives, javaewah does not rely on a patented scheme. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n javaewah-JavaEWAH-%{version} + +# Plugins that are unnecessary for RPM build +%pom_remove_plugin :maven-gpg-plugin +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :animal-sniffer-maven-plugin +%pom_remove_plugin :jacoco-maven-plugin +%pom_remove_plugin :maven-source-plugin + +# Avoids JVM startup error when jacoco-maven-plugin is not in use +%pom_xpath_inject "pom:project/pom:properties" "" + +%build +%{mvn_build} -f + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc CHANGELOG README.md +%license LICENSE-2.0.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE-2.0.txt + +%changelog