Not only my first post here but also my first steps in packaging golang stuff especially for RHEL9 so bear with me.
I read the docs about go-vendor-tools and did some test in packaging some srpm for EL9.
I got the helm package (that has already a vendor source tar) packaged on EL9 by commenting some go-vendor-tools specific line out (just license stuff). And I noticed that the "Provides: bundled()" lines are automagically generated.
I now went a little further and took a package without a vendor tar source file and build the corresponding vendor.tgz and build it then for EL9 but in this case no "Provides: bundled()" where included.
So, I can include the Provides manually (echo vendor/modules.txt | /usr/lib/rpm/go_mod_vendor.prov) but what triggers this automagically, like in the helm package?