snpguest/snpguest.spec

56 lines
1.6 KiB
RPMSpec

#
# spec file for package snpguest
#
# Copyright (c) 2024 SUSE LLC
# Copyright (C) 2023 VirTEE
#
# 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: snpguest
Version: 0.7.1
Release: 0
Summary: A Rust command-line tool for interacting with the AMD Secure Processor
License: Apache-2.0
Group: Productivity/Security
URL: https://github.com/virtee/snpguest
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: cargo
BuildRequires: cargo-packaging
ExclusiveArch: x86_64
%description
snpguest is a command line utility for interacting with the AMD Secure Encrypted Virtualization - Secure Nested Paging (SEV-SNP) guest environment (via the /dev/sev-guest device).
%prep
# The number passed to -a (a stands for "after") should be equivalent to the Source tag number
# of the vendor tarball, 1 in this case (from Source1).
%autosetup -a1
%build
%{cargo_build}
%install
%{cargo_install}
%check
%{cargo_test}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog