diff --git a/.gitignore b/.gitignore index e69de29..64ec0e5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/snphost-0.5.0.tar.gz +/snphost-0.5.0-vendor.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..9156309 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,5 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: [] diff --git a/snphost.spec b/snphost.spec new file mode 100644 index 0000000..8063f83 --- /dev/null +++ b/snphost.spec @@ -0,0 +1,64 @@ +# Generated by rust2rpm 27 +%bcond check 1 + +%global version 0.5.0 +%global crate snphost + +Name: snphost +Version: %{version} +Release: 1%{?dist} +Summary: Administrative utility for AMD SEV-SNP + +URL: https://github.com/virtee/%{crate} +Source: https://github.com/virtee/%{crate}/archive/refs/tags/snphost-%{version}.tar.gz +Source1: https://github.com/virtee/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz + +# snphost is a tool using features specific to AMD EPYC processors (x86_64). +ExclusiveArch: x86_64 + +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# Apache-2.0 +# Apache-2.0 OR MIT +# BSD-3-Clause +# MIT +# MIT OR Apache-2.0 +# MPL-2.0 +# Unlicense OR MIT +License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Unlicense OR MIT) + +BuildRequires: rust-toolset +BuildRequires: /usr/bin/pkg-config +BuildRequires: openssl-devel + +%global _description %{expand: +Administrative utility for AMD SEV-SNP.} + +%description %{_description} + +%files +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/snphost + +%prep +%autosetup -n %{crate}-%{version} -p1 -a1 +%cargo_prep -v vendor + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Tue Feb 11 2025 Tyler Fanelli - 0.5.0-1 +- Initial commit on c10s + Resolves: RHEL-171502 diff --git a/sources b/sources new file mode 100644 index 0000000..1aaed4b --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (snphost-0.5.0-vendor.tar.gz) = c9ab9c2c776d68f9713526aee2446d50d1f333d77b0b80925908459cf06b1ee317690394da6b86b6fe1f951412510ab8da1f881525ffa3c7fcda308405c5c826 +SHA512 (snphost-0.5.0.tar.gz) = 9292e17505c0e33874342b38ea2b8b87fa06ca59147db93a9f83e46fafee443a9804a2efac82defdfcb6fe6c9dcc8519b2a4b6f61fd55a0de08a0296dfef11af