- 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
This commit is contained in:
Caleb Crane 2024-10-03 19:50:24 +00:00 committed by Git OBS Bridge
commit caa54d6222
13 changed files with 204 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

24
_service Normal file
View File

@ -0,0 +1,24 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/virtee/snphost.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">v0.5.0</param>
<param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">Caleb Crane (caleb.crane@suse.com)</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service mode="disabled" name="set_version"/>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">snphost</param>
<param name="compression">gz</param>
<param name="update">true</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/virtee/snphost.git</param>
<param name="changesrevision">a7ba00220202240cd01819ef1fe81d57ebbb9f8b</param></service></servicedata>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

3
snphost-0.2.0~0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea78cb36c063260847923e72248b0ad8a3dbd7a4a0af35f4d9e77e78d0969c23
size 68107

3
snphost-0.2.0~0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e53f61121a4c7a9c224d57ea09cbed4061ecde4034f7db58871ac4ca1a490431
size 17161

3
snphost-0.5.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f198bafee8eaec00bcbcbae259bb591e3765a64d4362a550705967c949d16ead
size 109579

3
snphost-0.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21f560d4d69890ce953b66509e1ede6143a75149eca89356c3d71c9a1e7f5093
size 27240

71
snphost.changes Normal file
View File

@ -0,0 +1,71 @@
-------------------------------------------------------------------
Thu Oct 3 19:23:31 UTC 2024 - Caleb Crane <caleb.crane@suse.com>
- 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 <larry.j.dewey@gmail.com>
- Adding a build requirement conditional flag for 15.5, etc.
-------------------------------------------------------------------
Mon Jul 10 18:02:05 UTC 2023 - Larry Dewey <larry.j.dewey@gmail.com>
- Initial release of v0.1.1

4
snphost.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: snphost
version: 0.5.0
mtime: 1725589995
commit: a7ba00220202240cd01819ef1fe81d57ebbb9f8b

57
snphost.spec Normal file
View File

@ -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

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d871c83dfa182486e6a9d23bd0ef95478e406072199620b52357182571d5eef
size 26598670