-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add specfile to build srpm Signed-off-by: Janine Olear <[email protected]> * Update collector.spec description Co-authored-by: Ben B. <[email protected]> * Update collector.spec summary Co-authored-by: Ben B. <[email protected]> * propagate version and project name Signed-off-by: Janine Olear <[email protected]> * add source/rpm rule to ci workflow Signed-off-by: Janine Olear <[email protected]> * fix ci build Signed-off-by: Janine Olear <[email protected]> * remove srpm build step for now Signed-off-by: Janine Olear <[email protected]> * remove unnecessary parts in specfile Signed-off-by: Janine Olear <[email protected]> * spec: remove make dependency Signed-off-by: Benedikt Bongartz <[email protected]> * fix vendor rule in Makefile Signed-off-by: Benedikt Bongartz <[email protected]> * ci: register fedora test build Signed-off-by: Benedikt Bongartz <[email protected]> --------- Signed-off-by: Janine Olear <[email protected]> Signed-off-by: Benedikt Bongartz <[email protected]> Co-authored-by: Ben B. <[email protected]>
- Loading branch information
Showing
3 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
%global goipath github.com/os-observability/redhat-opentelemetry-collector | ||
|
||
Version: %%VERSION%% | ||
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: %%PROJECT%% | ||
Release: 1%{?dist} | ||
Summary: Red Hat build of OpenTelemetry | ||
|
||
License: Apache-2.0 | ||
|
||
Source0: %{name}-%{version}.tar.gz | ||
Source1: %{name}-deps-%{version}.tar.gz | ||
|
||
BuildRequires: go-toolset-1.20 | ||
BuildRequires: git | ||
|
||
%description | ||
%{common_description} | ||
|
||
%prep | ||
%goprep -k | ||
|
||
%build | ||
go build -buildmode pie -mod vendor | ||
|
||
%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 <[email protected]> - 0.93.4 | ||
- First package for Copr |