diff --git a/.gitignore b/.gitignore index 0b09eda..489d33d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ed25519-compact-2.0.4.crate +/ed25519-compact-2.0.6.crate diff --git a/ed25519-compact-fix-metadata-auto.diff b/ed25519-compact-fix-metadata-auto.diff new file mode 100644 index 0000000..b10bf5f --- /dev/null +++ b/ed25519-compact-fix-metadata-auto.diff @@ -0,0 +1,22 @@ +--- ed25519-compact-2.0.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ed25519-compact-2.0.6/Cargo.toml 2024-01-11T19:40:39.427237+00:00 +@@ -61,18 +61,10 @@ + traits = ["ed25519"] + x25519 = [] + +-[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.getrandom] +-version = "0.2" +-features = ["js"] +-optional = true +- +-[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dev-dependencies.getrandom] +-version = "0.2" +-features = ["js"] +- + [target."cfg(not(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\")))".dependencies.getrandom] + version = "0.2" + optional = true + + [target."cfg(not(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\")))".dev-dependencies.getrandom] + version = "0.2" ++ diff --git a/rust-ed25519-compact.spec b/rust-ed25519-compact.spec index 8157ab4..43fb5b8 100644 --- a/rust-ed25519-compact.spec +++ b/rust-ed25519-compact.spec @@ -1,19 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ed25519-compact Name: rust-ed25519-compact -Version: 2.0.4 +Version: 2.0.6 Release: %autorelease Summary: Small, self-contained, wasm-friendly Ed25519 implementation License: MIT URL: https://crates.io/crates/ed25519-compact Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: ed25519-compact-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A small, self-contained, wasm-friendly Ed25519 implementation.} @@ -191,7 +193,7 @@ use the "x25519" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 9175727..0881f31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ed25519-compact-2.0.4.crate) = 745c03c94eba7135693d259c7382589255e2204df4b890e9b1e44b9150f54579b71df6911cbe19e47a4418c154358bd9eabd73308383884ca071fc5871a0fb4b +SHA512 (ed25519-compact-2.0.6.crate) = 865de9199e776d35174aa3548a5fde2fb2c11d2b75a46e42bd619c89948f9348d9093b2f8fb826d73a159515254a9cba25c43b16b8d6d77a93522d74391f6f04