Results 1 to 3 of 3

Thread: Packaging golang-github-vmware-govmomi - usage of makros

  1. #1

    Default Packaging golang-github-vmware-govmomi - usage of makros


    I am trying to build a package for govmomi:
    The project can be found here:

    I have seen that there is package available for Fedora so I grabbed the spec-file, but noticed, that Fedora uses different go-makros: https://download-ib01.fedoraproject....3.fc32.src.rpm

    I tried lot of things but I cannot get the binaries to be built as used in Fedora's spec-file:
    %if %{with binary}
    for cmd in govc toolbox/toolbox vcsim; do
      %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
    mv %{gobuilddir}/bin/toolbox %{gobuilddir}/bin/govmomi-toolbox
    Can someone help here? I have no experience in go or packaging go.

    Thx in advance!

  2. #2
    Join Date
    Jun 2008
    Blog Entries

    Default Re: Packaging golang-github-vmware-govmomi - usage of makros

    I would have a look here to see what macros are used with openSUSE and building go applications;

    Next I would look in the golang devel repository at some of the packages to see what is what ;)
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default AW: Packaging golang-github-vmware-govmomi - usage of makros

    Hi Malcolm,

    thank you for the links but I would not have asked if I would not have been read the manuals ;-)
    Anyway: With documentation and try-and-error I managed to get the package and its dependencies be built. The binaries seem to work so far :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts