# Generated by go2rpm %bcond_without check # https://github.com/tonistiigi/go-immutable-radix %global goipath github.com/tonistiigi/go-immutable-radix %global commit 826af9ccf0feeee615d546d69b11f8e98da8c8f1 %gometa %global common_description %{expand: The Iradix package implements an immutable radix tree. The package only provides a single Tree implementation, optimized for sparse nodes.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Immutable radix tree implementation in Golang # Upstream license specification: MPL-2.0 License: MPLv2.0 URL: %{gourl} Source0: %{gosource} # Because we switch from uuid to go-uuid Patch0: 0001-fix-for-GenerateUUID.patch BuildRequires: golang(github.com/hashicorp/golang-lru/simplelru) %if %{with check} # Tests BuildRequires: golang(github.com/hashicorp/go-uuid) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 find . -name "*.go" -exec sed -i "s|github.com/hashicorp/uuid|github.com/hashicorp/go-uuid|" "{}" +; %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Wed May 08 21:30:06 CEST 2019 Robert-André Mauchin - 0-0.1.20190508git826af9c - Initial package