On 06/21/2016 05:47 PM, Marguerite Su wrote:
Hi, Jordi,

I am glad you know what I said completely.

Just one thing...the suggestion you made...exists.

The Fedora way was introduced by early openSUSE go maintainers, I just
renamed it to "-source" to better reflect what this sub-package really
is.
And I myself usually don't add that macro to my specfile. Because I
don't like souce codes shipped to the end users. (traditionally, they
recommends/requires the -source sub-package for the main package, so a
user may have accidentally installed many source codes.)

I must admit that I didn't realize the real purpose of -source sub-packages.

I see! That is cool. I wasn't aware of that

https://github.com/marguerite/golang-packaging/blob/master/macros.go#L96
https://github.com/marguerite/golang-packaging/blob/master/macros.go#L100

So I guess one only needs to add

%gosrc_package(NAME:REQUIRES)

 and in the install section

%gosrc

is that it?

(...)

So I think to add "Requires: golang(API)" to shared builds is a must.

+1