package init

This commit is contained in:
jackie_wu 2020-08-18 17:22:10 +08:00
parent 5cb018d63e
commit 12c04d1592
3 changed files with 53 additions and 0 deletions

BIN
compress-lzf-1.0.3.tar.gz Normal file

Binary file not shown.

49
compress-lzf.spec Normal file
View File

@ -0,0 +1,49 @@
Name: compress-lzf
Version: 1.0.3
Release: 1
Summary: Basic LZF codec, compatible with standard C LZF package
License: ASL 2.0
URL: https://github.com/ning/compress
Source0: https://github.com/ning/compress/archive/%{name}-%{version}.tar.gz
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) mvn(org.testng:testng)
BuildArch: noarch
%description
Compression codec for LZF encoding for particularly encoding/decoding,
with reasonable compression. Compressor is basic Lempel-Ziv codec,
without Huffman (deflate/gzip) or statistical post-encoding. See
"http://oldhome.schmorp.de/marc/liblzf.html" for more on
original LZF package.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n compress-%{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -type f -print -delete
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
%pom_add_dep junit:junit::test
%mvn_file : %{name}
%build
%mvn_build -- -Poffline-testing
%install
%mvn_install
%files -f .mfiles
%doc README.md VERSION.txt
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Thu Jul 30 2020 wutao <wutao61@huawei.com> - 1.0.3-1
- package init

4
compress-lzf.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ning/compress
tag_prefix: "^compress-lzf-"
seperator: "."