Spec file for golang project

Bryan O'Neal Bryan.ONeal at TheONealAndAssociates.com
Wed Mar 9 10:57:51 MST 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160309/1d1e69cc/attachment.html>


More information about the PLUG-discuss mailing list