From e25137875b50a1928b1eca8fac8da0a23f5be806571c877aa37e6532603b65ec Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Wed, 19 Jul 2023 23:17:21 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + _service | 27 +++++++++++++++++++ _servicedata | 4 +++ cargo_config | 5 ++++ snphost-0.1.1~0.obscpio | 3 +++ snphost-0.1.1~0.tar.gz | 3 +++ snphost.changes | 9 +++++++ snphost.obsinfo | 4 +++ snphost.spec | 60 +++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 +++ 11 files changed, 142 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.1.1~0.obscpio create mode 100644 snphost-0.1.1~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..d65749b --- /dev/null +++ b/_service @@ -0,0 +1,27 @@ + + + https://github.com/virtee/snphost.git + @PARENT_TAG@~@TAG_OFFSET@ + git + v0.1.1 + * + v(\d+\.\d+\.\d+) + \1 + enable + larry.j.dewey@gmail.com + + + + *.tar + gz + + + + snphost + gz + true + + + snphost + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..d63b420 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/virtee/snphost.git + e61970e99e9037821685ba94a4ac0d1bd2a8fe6f \ 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.1.1~0.obscpio b/snphost-0.1.1~0.obscpio new file mode 100644 index 0000000..e44221e --- /dev/null +++ b/snphost-0.1.1~0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1066a9536f31037871c0d1ab071a9225475bbdea68e1f511b78628dcbf733e05 +size 59403 diff --git a/snphost-0.1.1~0.tar.gz b/snphost-0.1.1~0.tar.gz new file mode 100644 index 0000000..78e2c6e --- /dev/null +++ b/snphost-0.1.1~0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72ac07d815988e121a1e9f3a7000a1495abf9aef2c4f6beb0084b8f37f87ae36 +size 15140 diff --git a/snphost.changes b/snphost.changes new file mode 100644 index 0000000..8fbfc90 --- /dev/null +++ b/snphost.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +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..2b7c80b --- /dev/null +++ b/snphost.obsinfo @@ -0,0 +1,4 @@ +name: snphost +version: 0.1.1~0 +mtime: 1688698878 +commit: e61970e99e9037821685ba94a4ac0d1bd2a8fe6f diff --git a/snphost.spec b/snphost.spec new file mode 100644 index 0000000..174b681 --- /dev/null +++ b/snphost.spec @@ -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 + +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 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..f38ad9b --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00edd7cf454215939dcb29eabd7858348007ad267b0423aba7766d8f3ae65a7b +size 25280206