%global goipath github.com/os-observability/redhat-opentelemetry-collector Version: 0.95.0 ExcludeArch: %{ix86} s390 ppc ppc64 aarch64 %gometa %global common_description %{expand: Collector with the supported components for a Red Hat build of OpenTelemetry product} %global golicenses LICENSE %global godocs README.md Name: opentelemetry-collector Release: 1%{?dist} Summary: Red Hat build of OpenTelemetry License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: binutils %description %{common_description} %prep %goprep -k mkdir -p _build mkdir -p _build/bin %build go build -v -buildmode pie -mod vendor -o _build/bin/opentelemetry-collector %define debug_package %{nil} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %gocheck %files %license %{golicenses} %doc %{godocs} %{_bindir}/* %changelog * Thu Feb 1 21:59:10 CET 2024 Nina Olear - 0.93.4 - First package for Copr