File yubihsm-connector.spec of Package yubihsm-connector

#
# spec file for package yubihsm-shell
#
# 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:           yubihsm-connector
Version:        3.0.5
Release:        0
Summary:        Tools for YubiHSM
License:        Apache-2.0
URL:            https://github.com/Yubico/yubihsm-connector
Source0:        https://github.com/Yubico/yubihsm-connector/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        vendor.tar.xz
BuildRequires:  golang-packaging
BuildRequires:  pkgconfig(libusb-1.0)

%description
This repository contains most of the components used to interact with the
YubiHSM 2 at both a user-facing and programmatic level.


%prep
%autosetup -p1 -a1

%build
go generate
go build -buildmode=pie -o bin/yubihsm-connector

%install
install -D -m 0755 bin/yubihsm-connector %{buildroot}%{_bindir}/yubihsm-connector

%files
%license LICENSE
%doc README.adoc CHANGELOG
%{_bindir}/yubihsm-connector

%changelog
openSUSE Build Service is sponsored by