From d8d1f8de4380dbee7b47518f47a31029b5ee8cb3 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 26 Jan 2024 12:39:08 -0600 Subject: [PATCH] Set up bindir before adding binaries --- golang-github-redhatcloudx-otel-builder.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/golang-github-redhatcloudx-otel-builder.spec b/golang-github-redhatcloudx-otel-builder.spec index ac68432a..152ede56 100644 --- a/golang-github-redhatcloudx-otel-builder.spec +++ b/golang-github-redhatcloudx-otel-builder.spec @@ -132,6 +132,7 @@ export GOFLAGS=-mod=vendor %gobuild -o %{gobuilddir}/bin/ocb-test %{goipath} %install +install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check}