# Generated by go2rpm %bcond_without check # https://github.com/census-ecosystem/opencensus-go-resource %global goipath contrib.go.opencensus.io/resource %global forgeurl https://github.com/census-ecosystem/opencensus-go-resource %global commit 21591786a5e0c21806209b266cc6dfdfa85b3cdb %gometa %global common_description %{expand: Go packages for auto discovery of resource information in various environments. The resourcekeys packages defines well-known type and label key strings that are used by the other packages.} %global golicenses LICENSE %global godocs AUTHORS CONTRIBUTING.md README.md\\\ README-ocdiscover.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Go packages for auto discovery of resource information in various environments # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(cloud.google.com/go/compute/metadata) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session) BuildRequires: golang(go.opencensus.io/resource) %description %{common_description} %gopkg %prep %goprep mv cmd/ocdiscover/README.md README-ocdiscover.md %build for cmd in cmd/* ; 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 AUTHORS CONTRIBUTING.md README.md README-ocdiscover.md %{_bindir}/* %gopkgfiles %changelog * Tue May 07 14:00:19 CEST 2019 Robert-André Mauchin - 0-0.1.20190507git2159178 - Initial package