Macro is not expanding. Now I am just having issues with go not finding some sources. On Wed, Mar 9, 2016 at 10:57 AM, Bryan O'Neal < Bryan.ONeal@theonealandassociates.com> wrote: > Any one have experience creating a spec file for a golang project? > I am trying to follow https://fedoraproject.org/wiki/PackagingDrafts/Go > but with no success. > > Here is my compile line > %gobuild -ldflags -X main.AppVersion=%{Version} -o bin/go-md2man > %{buildroot} go/cmd/orchestrator/main.go > > And here is my error > + GOPATH=/home/boneal/rpmbuild/BUILD/orchestrator-1.4.550:/usr/share/gocode > ++ go version > + echo 'Building via go version go1.4.2 linux/amd64' > Building via go version go1.4.2 linux/amd64 > + %gobuild -ldflags -X 'main.AppVersion=%{Version}' -o > /home/boneal/rpmbuild/BUILDROOT/orchestrator-1.4.550-1.x86_64 > go/cmd/orchestrator/main.go > /var/tmp/rpm-tmp.Atohvw: line 40: fg: no job control > error: Bad exit status from /var/tmp/rpm-tmp.Atohvw (%build) > > I have tried using -o go-m2dman and -o /usr/bin/go-md2man they result in > the same error. Same with removing the ldflags and the version. > > >