diff --git a/.gitignore b/.gitignore index c1cc612..727ba3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /snphost-0.1.2.crate /snphost-0.4.0.crate /snphost-0.5.0.crate +/snphost-0.6.1.crate diff --git a/rust-snphost.spec b/rust-snphost.spec index 05210a7..20cc094 100644 --- a/rust-snphost.spec +++ b/rust-snphost.spec @@ -1,20 +1,24 @@ -# Generated by rust2rpm 24 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global crate snphost Name: rust-snphost -Version: 0.5.0 +Version: 0.6.1 Release: %autorelease Summary: Administrative utility for AMD SEV-SNP License: Apache-2.0 URL: https://crates.io/crates/snphost Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Relax sev dependency to what's packaged in Fedora +Patch: snphost-fix-metadata.diff # snphost is a tool using features specific to AMD EPYC processors (x86_64). ExclusiveArch: x86_64 -BuildRequires: rust-packaging >= 21 + +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Administrative utility for AMD SEV-SNP.} @@ -43,7 +47,7 @@ License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS- %{_bindir}/snphost %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -51,7 +55,7 @@ License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS- %build %cargo_build -%cargo_license_summary +%{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..1cc4829 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[package] +cargo-toml-patch-comments = [ + "Relax sev dependency to what's packaged in Fedora", +] diff --git a/snphost-fix-metadata.diff b/snphost-fix-metadata.diff new file mode 100644 index 0000000..bb4a664 --- /dev/null +++ b/snphost-fix-metadata.diff @@ -0,0 +1,9 @@ +--- snphost-0.6.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ snphost-0.6.1/Cargo.toml 2025-06-25T19:39:15.809528+00:00 +@@ -83,5 +83,5 @@ + version = "0.2.0" + + [dependencies.sev] +-version = "6.2.1" ++version = "6.1.0" + features = ["openssl"] diff --git a/sources b/sources index 1dc078d..fb0500f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (snphost-0.5.0.crate) = 55c5cea1e8ac6b2ba225f8c8b07da89f204072179abe5c3d70c813e1687774251c05e18b1c2999fa19a1f94dfb4b01376e143b421e25d43fe2164741038ea4d8 +SHA512 (snphost-0.6.1.crate) = 945335cbd61f7d404e65f5a8e3b3dbf0efe930065834076ae0fca64637a1118001a62b77dc5b24e5f67eedd14850f05a017fa95d4215c8bf65cc58c2468282e4