commit 2658dd3d48d869917644a129270c7e5d5929b091 Author: MSVSphere Packaging Team Date: Fri Oct 25 19:14:26 2024 +0300 import rust-sevctl-0.4.3-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec3498e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/sevctl-0.4.3-vendor.tar.xz +SOURCES/sevctl-0.4.3.crate diff --git a/.rust-sevctl.metadata b/.rust-sevctl.metadata new file mode 100644 index 0000000..2cc5f93 --- /dev/null +++ b/.rust-sevctl.metadata @@ -0,0 +1,2 @@ +bd0a626c062583a011ef7b03fbd9a095a9e6937d SOURCES/sevctl-0.4.3-vendor.tar.xz +4a42820e44df40cfab5c1d2f6424e38a96efd4c7 SOURCES/sevctl-0.4.3.crate diff --git a/SOURCES/LICENSE.dependencies b/SOURCES/LICENSE.dependencies new file mode 100644 index 0000000..8f16b12 --- /dev/null +++ b/SOURCES/LICENSE.dependencies @@ -0,0 +1,47 @@ +Apache-2.0 OR BSL-1.0: ryu v1.0.11 +Apache-2.0 OR MIT: structopt v0.3.26 +Apache-2.0 OR MIT: uuid v1.1.2 +Apache-2.0: codicon v3.0.0 +Apache-2.0: iocuddle v0.1.1 +Apache-2.0: openssl v0.10.41 +Apache-2.0: sev v0.3.0 +Apache-2.0: sevctl v0.3.0 +MIT OR Apache-2.0 OR Zlib: tinyvec_macros v0.1.0 +MIT OR Apache-2.0: base64 v0.13.0 +MIT OR Apache-2.0: bitfield v0.13.2 +MIT OR Apache-2.0: bitflags v1.3.2 +MIT OR Apache-2.0: cfg-if v1.0.0 +MIT OR Apache-2.0: dirs v4.0.0 +MIT OR Apache-2.0: dirs-sys v0.3.7 +MIT OR Apache-2.0: foreign-types v0.3.2 +MIT OR Apache-2.0: foreign-types-shared v0.1.1 +MIT OR Apache-2.0: form_urlencoded v1.0.1 +MIT OR Apache-2.0: httparse v1.7.1 +MIT OR Apache-2.0: idna v0.2.3 +MIT OR Apache-2.0: itoa v1.0.3 +MIT OR Apache-2.0: lazy_static v1.4.0 +MIT OR Apache-2.0: libc v0.2.131 +MIT OR Apache-2.0: log v0.4.17 +MIT OR Apache-2.0: native-tls v0.2.10 +MIT OR Apache-2.0: once_cell v1.13.1 +MIT OR Apache-2.0: openssl-probe v0.1.5 +MIT OR Apache-2.0: percent-encoding v2.1.0 +MIT OR Apache-2.0: serde v1.0.144 +MIT OR Apache-2.0: serde-big-array v0.4.1 +MIT OR Apache-2.0: serde_bytes v0.11.7 +MIT OR Apache-2.0: serde_json v1.0.85 +MIT OR Apache-2.0: unicode-bidi v0.3.8 +MIT OR Apache-2.0: unicode-normalization v0.1.21 +MIT OR Apache-2.0: unicode-width v0.1.9 +MIT OR Apache-2.0: url v2.2.2 +MIT OR Apache-2.0: vec_map v0.8.2 +MIT: ansi_term v0.12.1 +MIT: atty v0.2.14 +MIT: bincode v1.3.3 +MIT: clap v2.34.0 +MIT: colorful v0.2.1 +MIT: matches v0.1.9 +MIT: openssl-sys v0.9.75 +MIT: strsim v0.10.0 +MIT: textwrap v0.11.0 +Zlib OR Apache-2.0 OR MIT: tinyvec v1.6.0 diff --git a/SPECS/rust-sevctl.spec b/SPECS/rust-sevctl.spec new file mode 100644 index 0000000..860f2a7 --- /dev/null +++ b/SPECS/rust-sevctl.spec @@ -0,0 +1,150 @@ +# Generated by rust2rpm 22 +%bcond_without check + +# RHEL does not have packages for Rust dependencies +%if 0%{?rhel} +%global bundled_rust_deps 1 +%else +%global bundled_rust_deps 0 +%endif + +%global crate sevctl + +Name: rust-sevctl +Version: 0.4.3 +Release: 2%{?dist} +Summary: Administrative utility for AMD SEV + +License: Apache-2.0 +URL: https://crates.io/crates/sevctl +Source0: %{crates_source} +Source1: LICENSE.dependencies +# To create the vendor tarball: +# tar xf %%{crate}-%%{version}.crate ; pushd %%{crate}-%%{version} ; \ +# cargo vendor && tar Jcvf ../%%{crate}-%%{version}-vendor.tar.xz vendor/ ; popd +Source2: %{crate}-%{version}-vendor.tar.xz + +# SEV is an AMD x86_64 CPU feature so doesn't make sense to +# try to build on other arches +ExclusiveArch: x86_64 + +%if 0%{?bundled_rust_deps} +BuildRequires: rust-toolset +# vendored openssl-sys +BuildRequires: openssl-devel +%else +BuildRequires: rust-packaging >= 21 +%endif + +%global _description %{expand: +Administrative utility for AMD SEV.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# Apache-2.0 +# Apache-2.0 OR BSL-1.0 +# Apache-2.0 OR MIT +# MIT +# MIT OR Apache-2.0 +# MIT OR Apache-2.0 OR Zlib +# Zlib OR Apache-2.0 OR MIT +License: Apache-2.0 AND MIT +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%if 0%{?bundled_rust_deps} +%license cargo-vendor.txt +%endif +%doc README.md +%{_bindir}/sevctl + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 %{?bundled_rust_deps:-a2} +cp -pav %{SOURCE1} . +%if 0%{?bundled_rust_deps} +%cargo_prep -v vendor +%else +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +%endif + +%build +%cargo_build +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies +%if 0%{?bundled_rust_deps} +%cargo_vendor_manifest +%endif + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jun 24 2024 Troy Dawson - 0.4.3-2 +- Bump release for June 2024 mass rebuild + +* Mon Aug 07 2023 Tyler Fanelli - 0.4.3-1 +- Update to 0.4.3 + +* Wed Jul 19 2023 Tyler Fanelli - 0.4.1-1 +- Update to 0.4.1 +- Remove patch to update sev dependency. + +* Mon May 15 2023 Yaakov Selkowitz - 0.3.2-5 +- Use vendored dependencies for RHEL builds + +* Wed May 03 2023 Fabio Valentini - 0.3.2-4 +- Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024}) + +* Thu Feb 09 2023 Sergio Lopez - 0.3.2-3 +- Include a patch to update sev dependency + +* Sat Jan 21 2023 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 18 2022 Tyler Fanelli - 0.3.2-1 +- Update to 0.3.2 (rhbz#2143857) + +* Thu Aug 25 2022 Fabio Valentini - 0.3.0-2 +- Regenerate with rust2rpm v22 and specify License for binary package. + +* Thu Aug 25 2022 Cole Robinson - 0.3.0-1 +- Update to 0.3.0 (rhbz #2097875) + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.2.0-4 +- Rebuild with package notes + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.2.0-3 +- Rebuild with package notes + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jan 4 2022 Daniel P. Berrangé - 0.2.0-1 +- Update to 0.2.0 release (rhbz #2034304) +- Restrict build arch to x86_64 only + +* Tue Sep 14 2021 Sahana Prasad - 0.1.0-3 +- Rebuilt with OpenSSL 3.0.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Mar 30 2021 Connor Kuehl - 0.1.0-1 +- Initial package