# Generated by go2rpm %bcond_without check # https://github.com/Unknwon/com %global goipath github.com/Unknwon/com Version: 2 %gometa %global common_description %{expand: This is an open source project for commonly used functions for the Go programming language.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 3%{?dist} Summary: Commonly used functions for the Go programming language # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Disable tests requiring network Patch0: no-internet-access.patch %if %{with check} # Tests BuildRequires: golang(github.com/smartystreets/goconvey/convey) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Fri May 24 17:14:07 CEST 2019 Robert-André Mauchin - 2-3 - Update to new macros * Wed Mar 20 2019 Nathan Scott - 2-2 - Update BuildRequires line to use the golang()-style. * Sun Mar 17 2019 Nathan Scott - 2-1 - First package for Fedora