%global goipath github.com/Unknwon/com %global commit 41959bdd855fb7db467f78865d5f9044507df1cd Version: 0 %gometa Name: %{goname} Release: 0.1%{?dist} Summary: Commonly used functions for the Go programming language License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang-github-smartystreets-goconvey-devel %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel %{summary}. This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %forgeautosetup -p1 %install %goinstall %check %if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} %if ! 0%{?with_bundled} export GOPATH=%{buildroot}/%{gopath}:%{gopath} %else export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %gotest %{import_path} %endif %files devel -f devel.file-list %doc README.md %license LICENSE %changelog * Fri Mar 15 2019 Mark Goodwin - 0-0.1.20190313gitCHANGEME - First package for Fedora