# Generated by go2rpm %bcond_with check # https://github.com/aerospike/aerospike-client-go %global goipath github.com/aerospike/aerospike-client-go Version: 1.27.0 %gometa %global common_description %{expand: Aerospike Client Go.} %global golicenses LICENSE %global godocs examples docs README.md CHANGELOG.md Name: %{goname} Release: 1%{?dist} Summary: Aerospike Client Go # Upstream license specification: Apache-2.0 and BSD-3-Clause License: ASL 2.0 and BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/yuin/gopher-lua) BuildRequires: golang(golang.org/x/sync/errgroup) %if %{with check} # Tests BuildRequires: golang(github.com/onsi/ginkgo) BuildRequires: golang(github.com/onsi/gomega) %endif %description %{common_description} %gopkg %prep %goprep # FIXME: unbundle pkg/bcrypt and pkg/ripemd160 %build # FIXME : rename binaries # Prepended aerospike- to binaries for cmd in tools/benchmark tools/cli tools/asinfo; do %gobuild -o %{gobuilddir}/bin/aerospike-$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc examples docs README.md CHANGELOG.md tools/benchmark/README.md %{_bindir}/* %gopkgfiles %changelog * Mon Mar 23 2020 Xavier Bachelot - 1.27.0-1 - Initial package