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

    Hi,

    I am trying to build a package for govmomi: https://github.com/vmware/govmomi.git
    The project can be found here: https://build.opensuse.org/package/s...vmware-govmomi

    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:
    Code:
    %if %{with binary}
    %build
    for cmd in govc toolbox/toolbox vcsim; do
      %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
    done
    mv %{gobuilddir}/bin/toolbox %{gobuilddir}/bin/govmomi-toolbox
    %endif
    Can someone help here? I have no experience in go or packaging go.

    Thx in advance!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,528
    Blog Entries
    15

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

    Hi
    I would have a look here to see what macros are used with openSUSE and building go applications;
    https://en.opensuse.org/openSUSE:Packaging_Go

    Next I would look in the golang devel repository at some of the packages to see what is what ;)
    https://build.opensuse.org/project/s...l:languages:go
    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
  •