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.
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss