Dirk Mueller 2024-03-05 21:10:56 +00:00 committed by Git OBS Bridge
parent a5ba9beac9
commit 7a7edddd6a

View File

@ -45,7 +45,12 @@ container-suseconnect gives access to package repositories inside containers
using the host machine entitlements.
%prep
%if 0%{?suse_version} && 0%{?suse_version} < 1500
%setup -q -n %{project}-%{version}
tar -I zstd -xvf %{SOURCE1}
%else
%setup -q -n %{project}-%{version} -a1
%endif
%build
go build -tags enablecgo -o %{project} -mod=vendor -buildmode=pie -trimpath -ldflags="-s -w" ./cmd/container-suseconnect