From caa54d622228aedd4a9623cfe1af8f8ecad7818e9bc0cb4aa5bd8bd8c7eccce8 Mon Sep 17 00:00:00 2001 From: Caleb Crane Date: Thu, 3 Oct 2024 19:50:24 +0000 Subject: [PATCH] - Spec: Add direct dependency on cargo in addition to cargo-packaging. This fixes build errors on 15SP7 where the inherited version of Rust is too old OBS-URL: https://build.opensuse.org/package/show/Virtualization/snphost?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 24 ++++++++++++++ _servicedata | 4 +++ cargo_config | 5 +++ snphost-0.2.0~0.obscpio | 3 ++ snphost-0.2.0~0.tar.gz | 3 ++ snphost-0.5.0.obscpio | 3 ++ snphost-0.5.0.tar.gz | 3 ++ snphost.changes | 71 +++++++++++++++++++++++++++++++++++++++++ snphost.obsinfo | 4 +++ snphost.spec | 57 +++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 13 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cargo_config create mode 100644 snphost-0.2.0~0.obscpio create mode 100644 snphost-0.2.0~0.tar.gz create mode 100644 snphost-0.5.0.obscpio create mode 100644 snphost-0.5.0.tar.gz create mode 100644 snphost.changes create mode 100644 snphost.obsinfo create mode 100644 snphost.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..dadb83c --- /dev/null +++ b/_service @@ -0,0 +1,24 @@ + + + https://github.com/virtee/snphost.git + @PARENT_TAG@ + git + v0.5.0 + * + v(\d+\.\d+\.\d+) + \1 + enable + Caleb Crane (caleb.crane@suse.com) + + + + *.tar + gz + + + + snphost + gz + true + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..01719d0 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/virtee/snphost.git + a7ba00220202240cd01819ef1fe81d57ebbb9f8b \ No newline at end of file diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/snphost-0.2.0~0.obscpio b/snphost-0.2.0~0.obscpio new file mode 100644 index 0000000..401d3f0 --- /dev/null +++ b/snphost-0.2.0~0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea78cb36c063260847923e72248b0ad8a3dbd7a4a0af35f4d9e77e78d0969c23 +size 68107 diff --git a/snphost-0.2.0~0.tar.gz b/snphost-0.2.0~0.tar.gz new file mode 100644 index 0000000..bb8ae01 --- /dev/null +++ b/snphost-0.2.0~0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e53f61121a4c7a9c224d57ea09cbed4061ecde4034f7db58871ac4ca1a490431 +size 17161 diff --git a/snphost-0.5.0.obscpio b/snphost-0.5.0.obscpio new file mode 100644 index 0000000..ff57cd1 --- /dev/null +++ b/snphost-0.5.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f198bafee8eaec00bcbcbae259bb591e3765a64d4362a550705967c949d16ead +size 109579 diff --git a/snphost-0.5.0.tar.gz b/snphost-0.5.0.tar.gz new file mode 100644 index 0000000..78d574f --- /dev/null +++ b/snphost-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21f560d4d69890ce953b66509e1ede6143a75149eca89356c3d71c9a1e7f5093 +size 27240 diff --git a/snphost.changes b/snphost.changes new file mode 100644 index 0000000..80a0923 --- /dev/null +++ b/snphost.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Thu Oct 3 19:23:31 UTC 2024 - Caleb Crane + +- Spec: Add direct dependency on cargo in addition to cargo-packaging. + This fixes build errors on 15SP7 where the inherited version of Rust + is too old + +------------------------------------------------------------------- +Fri Sep 13 03:25:36 UTC 2024 - Caleb Crane (caleb.crane@suse.com) + +- Update to version 0.5.0: + * Update to 0.5.0 + * workflows: Update rust toolchain version to 1.80 + * Update clippy workflow toolchain to use 1.74 + * Update Rust version to 1.7.4 + * Upgrade sev to 4.0.0 + * Remove strict semvar for clap dependency + * Adding cert fetch support for Turin + * Update to 0.4.0 + * Update sev to 3.2.0 + * build(deps): bump anyhow from 1.0.82 to 1.0.83 (#51) + * fix: remove subcommand trait on ok/commit (#53) + * build(deps): bump libc from 0.2.153 to 0.2.154 + * clap-migration: Moving from StructOpt to Clap (#48) + * build(deps): bump anyhow from 1.0.81 to 1.0.82 (#47) + * build(deps): bump anyhow from 1.0.80 to 1.0.81 + * Fixing release to 0.3.0, not ready for 1.0.0 + * Bumping rust minimum version to 1.70 + * modifying docs + * Added DER and VLEK support + * Changing commands for new 6.6 kernel IOCTL structure + * Adding tests to snphostok (#39) + * Modify workflow to match SEV and use rust 1.70 (#41) + * Fetch: Adding Bergamo and Siena Support (#31) + * Adding DCO and auto-assign + * In vcek url use reported_tcb_version (#29) + * Add lockfile + * build(deps): update env_logger requirement from 0.9.0 to 0.10.1 + +------------------------------------------------------------------- +Mon Jan 22 16:04:54 UTC 2024 - Caleb Crane (caleb.crane@suse.com) + +- Update to version 0.2.0~0: + * New Release + * fmt: Fixing project structure (#18) + * 14: Certificate Formatting (#17) + * Update docs/snphost.1.adoc + * PR-fixes: Addressing directory creation need + * docs: Updating the documentation + * certs: Adding CA and CRL functionality + * Auto Assign: Adding yml files + * reset: Reset SEV-SNP extended config instead of PLATFORM_RESET +- spec: Use rubygem() macro to resolve asciidoctor versions + +------------------------------------------------------------------- +Fri Oct 13 21:04:41 UTC 2023 - larry.j.dewey@gmail.com + +- Update to version 0.1.2~0: + * cargo: Update to 0.1.2 + * ok: Don't take mutable reference to arg + * build: Don't fail on manpage build error + +------------------------------------------------------------------- +Mon Jul 10 18:26:22 UTC 2023 - Larry Dewey + +- Adding a build requirement conditional flag for 15.5, etc. + +------------------------------------------------------------------- +Mon Jul 10 18:02:05 UTC 2023 - Larry Dewey + +- Initial release of v0.1.1 diff --git a/snphost.obsinfo b/snphost.obsinfo new file mode 100644 index 0000000..f43bad0 --- /dev/null +++ b/snphost.obsinfo @@ -0,0 +1,4 @@ +name: snphost +version: 0.5.0 +mtime: 1725589995 +commit: a7ba00220202240cd01819ef1fe81d57ebbb9f8b diff --git a/snphost.spec b/snphost.spec new file mode 100644 index 0000000..0d71225 --- /dev/null +++ b/snphost.spec @@ -0,0 +1,57 @@ +# +# spec file for package snphost +# +# 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: snphost +Version: 0.5.0 +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/snphost +Source0: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: cargo +BuildRequires: cargo-packaging +BuildRequires: openssl-devel +BuildRequires: rubygem(asciidoctor) +ExclusiveArch: x86_64 + +%description +snphost is a command line utility for interacting with the AMD Secure Encrypted Virtualization - Secure Nested Paging (SEV-SNP) host environment (via the /dev/sev 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 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..974dbaf --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d871c83dfa182486e6a9d23bd0ef95478e406072199620b52357182571d5eef +size 26598670