diff --git a/.gitignore b/.gitignore index d114b70..387d2b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ /lz4-2.1.0.tar.gz /lz4-2.1.1.tar.gz +/lz4-2.1.2.tar.gz +/lz4-2.1.3.tar.gz +/lz4-2.2.0.tar.gz +/lz4-2.2.3.tar.gz diff --git a/golang-github-pierrec-lz4.spec b/golang-github-pierrec-lz4.spec index d1d97c4..5d67b7e 100644 --- a/golang-github-pierrec-lz4.spec +++ b/golang-github-pierrec-lz4.spec @@ -1,66 +1,71 @@ -# Run tests in check section +# Generated by go2rpm %bcond_without check # https://github.com/pierrec/lz4 %global goipath github.com/pierrec/lz4 -Version: 2.1.1 +Version: 2.2.3 + +%gometa %global common_description %{expand: Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in -http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html. +http://fastcompression.blogspot.com/2013/04/lz4-streaming-format-final.html. This package is compatible with the LZ4 frame format although the block level compression and decompression functions are exposed and are fully compatible with the lz4 block format definition, they are low level and should not be used directly.} -%gometa +%global golicenses LICENSE +%global godocs README.md Name: %{goname} Release: 1%{?dist} -Summary: LZ4 compression and decompression in pure Go -# Detected licences -# - BSD 3-clause "New" or "Revised" License at 'LICENSE' +Summary: Lz4 compression and decompression in pure go + +# Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} -%description -%{common_description} - +BuildRequires: golang(code.cloudfoundry.org/bytefmt) +BuildRequires: golang(github.com/schollz/progressbar/v2) -%package devel -Summary: %{summary} - -%description devel +%description %{common_description} -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. - +%gopkg %prep -%forgeautosetup +%goprep +%build +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done %install -%goinstall - +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check -%gochecks +%gocheck %endif +%files +%license %{golicenses} +%doc %{godocs} +%{_bindir}/* -%files devel -f devel.file-list -%license LICENSE -%doc README.md - +%gopkgfiles %changelog +* Tue Apr 23 20:28:43 CEST 2019 Robert-André Mauchin - 2.2.3-1 +- Release 2.2.3 + * Tue Apr 02 21:57:17 CET 2019 Robert-André Mauchin - 2.1.1-1 - Release 2.1.1 (#1693414) diff --git a/sources b/sources index 42918b7..43667f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lz4-2.1.1.tar.gz) = 067d6d6af0c3c14984cb7e7806e04472c7c58c0b5a6779969862431ea136cbbd221ebf4edb56dfe85ef8640191699be246f5f1658f475032fadd3d429728d735 +SHA512 (lz4-2.2.3.tar.gz) = 556a658c8a3290ae80086e510babc6d6093ec75d94c4447f9a718fb0966ed8e09351e63cfd559611247a5a592112ac6df0bd10c2391ab32f36f2873890522aea