File age-plugin-tpm.spec of Package age-plugin-tpm
#
# spec file for package age-plugin-tpm
#
# Copyright (c) 2023 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: age-plugin-tpm
Version: 0.2.0
Release: 0
Summary: TPM 2.0 plugin for age
License: MIT
Group: Productivity/Networking/Security
URL: https://github.com/Foxboron/age-plugin-tpm
Source0: %{URL}/archive/refs/tags/v%{version}.tar.gz#$/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: golang(API) >= 1.20
BuildRequires: golang-packaging
# Without this, users in the tss group don't have access to the tpm.
Requires: tpm2-0-tss
%description
age-plugin-tpm is a plugin for age clients like age and rage, which
enables files to be encrypted to age identities sealed by the TPM
%prep
%autosetup -p 1 -a 1
%build
%make_build
%install
install -Dm755 -t "%{buildroot}/%{_bindir}" age-plugin-tpm
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog