File tpm2sh.spec of Package tpm2sh
#
# spec file for package tpm2sh
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: tpm2sh
Version: 0.15.4
Release: 0
Summary: Command-line interfaces for accessing TPM 2.0 chips in Linux.
License: GPL-3.0-or-later
URL: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/tpm2sh.git
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/tpm2sh.git/snapshot/%{name}-%{version}.tar.gz
Source1: registry.tar.zst
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: mold
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
ExclusiveArch: %{rust_tier1_arches}
%description
tpm2sh is a command-line interfaces for accessing TPM 2.0 chips in Linux.
%prep
%autosetup -a1
%build
export CARGO_HOME=$PWD/.cargo
%{cargo_build}
%install
export CARGO_HOME=$PWD/.cargo
%{cargo_install}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog