File trustauthority-cli.spec of Package trustauthority-cli

#
# spec file for package trustauthority-cli
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           trustauthority-cli
Version:        1.11.0
Release:        0
Summary:        Intel Trust Authority CLI
License:        BSD-3-Clause
URL:            https://github.com/intel/trustauthority-cli
ExclusiveArch:  x86_64
Source0:        %name-%version.tar.xz
Source1:        vendor.tar.xz
BuildRequires:  golang(API) >= 1.22

%description
The IntelĀ® Trust Authority CLI is an tool tenants use to make API calls to Intel's Trust Authority.

%prep
%autosetup -p1 -D -a 1

%build
export GOFLAGS="-buildmode=pie"
go build

%install
mkdir -p %buildroot%_sbindir
ln v1 %buildroot%_sbindir/trustauthorityctl

%check
./v1 || : $?
mkdir -vp ~/.config/trustauthorityctl/logs
./v1 --help

%files
%license LICENSE
%doc README.md
%_sbindir/*

%changelog

openSUSE Build Service is sponsored by