## START: Set by rpmautospec %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 # Check compares compressed sizes to a reference which hasn't been updated in years %bcond_with check # https://github.com/cloudflare/golz4 %global goipath github.com/cloudflare/golz4 %global commit ef862a3cdc58a6f1fee4e3af3d44fbe279194cde %gometa %global common_description %{expand: Golang interface to LZ4 compression.} %global golicenses LICENSE %global godocs README.md sample.txt Name: %{goname} Version: 0 Release: %autorelease -p Summary: Golang interface to LZ4 compression # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} Source1: https://github.com/lz4/lz4/raw/dev/lib/lz4.c Source2: https://github.com/lz4/lz4/raw/dev/lib/lz4.h Source3: https://github.com/lz4/lz4/raw/dev/lib/lz4hc.c Source4: https://github.com/lz4/lz4/raw/dev/lib/lz4hc.h %description %{common_description} %gopkg %prep %goprep cp -a %{S:1} %{S:2} %{S:3} %{S:4} src/. %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Mon Aug 02 2021 Robert-André Mauchin 0-0.2 - Uncommitted changes * Mon Aug 02 2021 Robert-André Mauchin 0-0.1 - Initial release