Accepting request 1098020 from home:larrydewey

I would like to maintain snphost, and would like to use Virtualization:snphost as the devel/feeder project.

OBS-URL: https://build.opensuse.org/request/show/1098020
OBS-URL: https://build.opensuse.org/package/show/Virtualization/snphost?expand=0&rev=1
This commit is contained in:
James Fehlig 2023-07-19 23:17:21 +00:00 committed by Git OBS Bridge
commit e25137875b
11 changed files with 142 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

27
_service Normal file
View File

@ -0,0 +1,27 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/virtee/snphost.git</param>
<param name="versionformat">@PARENT_TAG@~@TAG_OFFSET@</param>
<param name="scm">git</param>
<param name="revision">v0.1.1</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">larry.j.dewey@gmail.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>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">snphost</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">e61970e99e9037821685ba94a4ac0d1bd2a8fe6f</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.1.1~0.obscpio Normal file
View File

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

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

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

9
snphost.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
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.1.1~0
mtime: 1688698878
commit: e61970e99e9037821685ba94a4ac0d1bd2a8fe6f

60
snphost.spec Normal file
View File

@ -0,0 +1,60 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2023 VirTEE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Author: Larry Dewey <larry.dewey@amd.com>
Name: snphost
Version: 0.1.1~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
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: openssl-devel
%if 0%{?suse_version} > 1600
BuildRequires: ruby3.2-rubygem-asciidoctor
%else
BuildRequires: ruby2.5-rubygem-asciidoctor
%endif
%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
install -D -m 644 %{SOURCE2} .cargo/config
%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:00edd7cf454215939dcb29eabd7858348007ad267b0423aba7766d8f3ae65a7b
size 25280206