# Generated by go2rpm # Need elasticsearch %bcond_with check # https://gopkg.in/olivere/elastic.v5 %global goipath gopkg.in/olivere/elastic.v5 %global forgeurl https://github.com/olivere/elastic Version: 5.0.84 %gometa %global goaltipaths github.com/olivere/elastic %global common_description %{expand: Elasticsearch client for Go.} %global golicenses LICENSE %global godocs CONTRIBUTORS CONTRIBUTING.md\\\ CHANGELOG-3.0.md CODE_OF_CONDUCT.md README.md\\\ CHANGELOG-5.0.md Name: %{goname} Release: 1%{?dist} Summary: Elasticsearch client for Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/mailru/easyjson) BuildRequires: golang(github.com/mailru/easyjson/jlexer) BuildRequires: golang(github.com/mailru/easyjson/jwriter) # No matching package to install: 'golang(github.com/olivere/env)' BuildRequires: golang(github.com/olivere/env) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/smartystreets/go-aws-auth) BuildRequires: golang(golang.org/x/sync/errgroup) %if %{with check} # Tests BuildRequires: golang(github.com/fortytw2/leaktest) %endif %description %{common_description} %gopkg %prep %goprep #%build #for cmd in cluster-test recipes/connect recipes/aws-connect recipes/sliced_scroll recipes/bulk_processor recipes/bulk_insert; do # %%gobuild -o %{gobuilddir}/bin/$(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 CONTRIBUTORS CONTRIBUTING.md CHANGELOG-3.0.md #%doc CODE_OF_CONDUCT.md README.md CHANGELOG-5.0.md #%{_bindir}/* %gopkgfiles %changelog * Wed Feb 05 2020 Xavier Bachelot - 5.0.84-1 - Initial package