Files
compress-lzf/compress-lzf.spec

81 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package compress-lzf
#
# 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/
#
Name: compress-lzf
Version: 1.1.2
Release: 0
Summary: High-performance, streaming/chunking Java LZF codec
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/ning/compress
Source0: %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:oss-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.moditect:moditect-maven-plugin)
BuildArch: noarch
%description
LZF-compress is a Java library for encoding and decoding data in LZF format,
written by Tatu Saloranta (tatu.saloranta@iki.fi).
Data format and algorithm based on original LZF library by Marc A Lehmann. See
LZF Format Specification for full description.
Format differs slightly from some other adaptations, such as the one used by H2
database project (by Thomas Mueller); although internal block compression
structure is the same, block identifiers differ. This package uses the original
LZF identifiers to be 100% compatible with existing command-line lzf tool(s).
LZF algorithm itself is optimized for speed, with somewhat more modest
compression. Compared to the standard Deflate (algorithm gzip uses) LZF can be
5-6 times as fast to compress, and twice as fast to decompress. Compression
rate is lower since no Huffman-encoding is used after lempel-ziv substring
elimination.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n compress-%{name}-%{version}
cp %{SOURCE1} .
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
%files -f .mfiles
%license LICENSE*
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE*
%changelog