# Run tests in check section # disable for bootstrapping %bcond_with check %global goipath github.com/anmitsu/go-shlex %global commit 648efa622239a2f6ff949fed78ee37b48d499ba4 %global common_description %{expand: go-shlex is a library to make a lexical analyzer like Unix shell for Go.} %gometa Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Library to make a lexical analyzer like Unix shell for golang Group: Development/Other License: MIT URL: %{gourl} Source0: %{gosource} BuildArch: noarch %description %{common_description} %package devel Summary: %{summary} %description devel %{common_description} This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %forgeautosetup %install %goinstall %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %license LICENSE %doc README.md