Name: lz4-java Version: 1.3.0 Release: 1%{?dist} Summary: LZ4 compression for Java License: ASL 2.0 URL: https://github.com/Gyscos/%{name} Source0: https://github.com/Gyscos/%{name}/archive/%{version}.tar.gz BuildArch: noarch Buildrequires: ivy-local Buildrequires: mvn(com.carrotsearch.randomizedtesting:junit4-ant) Buildrequires: mvn(org.mvel:mvel2) Buildrequires: mvn(ant-contrib:cpptasks) Buildrequires: mvn(biz.aQute:bnd) Buildrequires: mvn(stax:stax-api) Buildrequires: mvn(xerces:xercesImpl) Buildrequires: mvn(xml-apis:xml-apis) BuildRequires: apache-parent %description It provides access to two compression methods that both generate a valid LZ4 stream. First one is fast scan (LZ4) which has low memory footprint (~ 16 KB). It is very fast (fast scan with skipping heuristics in case the input looks in-compressible). The method also has a reasonable compression ratio (depending on the redundancy of the input). Second one is high compression (LZ4 HC) with medium memory footprint (~ 256 KB).It is rather slow (~ 10 times slower than LZ4). The method has a good compression ratio (depending on the size and the redundancy of the input). The streams produced by those two compression algorithms use the same compression format, are very fast to decompress and can be decompressed by the same decompressor instance. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q %pom_xpath_set @revision %{version} ivy.xml %pom_xpath_set @module %{name} ivy.xml %mvn_file net.jpountz.lz4:%{name} %{name} %mvn_alias net.jpountz.lz4:%{name} net.jpountz.lz4:lz4 %build ant -Divy.mode=local dist %install %mvn_artifact ivy.xml dist/%{name}-%{version}.jar %mvn_install -J build/docs/ %files -f .mfiles %doc src/lz4/lz4_format_description.txt README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Tue Feb 02 2016 Tomas Repik - 1.3.0-1 - Initial RPM release