From 40c0b728f41cef09d90d91d8287e8f11f1f27bc7 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 17 Sep 2024 22:46:19 +0200 Subject: [PATCH] Update to version 0.1.17; Fixes RHBZ#2307138 --- .gitignore | 1 + README.md | 3 --- rust-stacker.spec | 16 +++++++--------- rust2rpm.toml | 3 +++ sources | 2 +- stacker-fix-metadata-auto.diff | 18 ++++++++---------- 6 files changed, 20 insertions(+), 23 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 0847f8d..edac2b7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /stacker-0.1.13.crate /stacker-0.1.14.crate /stacker-0.1.15.crate +/stacker-0.1.17.crate diff --git a/README.md b/README.md deleted file mode 100644 index 68311ad..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-stacker - -The rust-stacker package \ No newline at end of file diff --git a/rust-stacker.spec b/rust-stacker.spec index 3eb3ad4..e6a2a42 100644 --- a/rust-stacker.spec +++ b/rust-stacker.spec @@ -1,27 +1,25 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate stacker Name: rust-stacker -Version: 0.1.15 +Version: 0.1.17 Release: %autorelease Summary: Stack growth library useful when implementing deeply recursive algorithms License: MIT OR Apache-2.0 URL: https://crates.io/crates/stacker Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: stacker-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Stack growth library useful when implementing deeply recursive algorithms that -may accidentally blow the stack.} +A stack growth library useful when implementing deeply recursive +algorithms that may accidentally blow the stack.} %description %{_description} @@ -53,7 +51,7 @@ use the "default" 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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..6475cef --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Stack growth library useful when implementing deeply recursive algorithms" + diff --git a/sources b/sources index 68ebb7b..28238c9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (stacker-0.1.15.crate) = 536cf41f4dea57541941dc89c61e82af3008d0d847243238d622d2e64bff595ebbe077368de87b3844ed0f06ced6cf5b03100e07534f6f5dde7219994369c988 +SHA512 (stacker-0.1.17.crate) = 0786c374f941267b6ed1c36cc92df2a18364f7688c0610c9030d9c0ed98f6913764d7864725791be267186d0a26a9e1ef6c9803ccc119a399e8e979c14fa5490 diff --git a/stacker-fix-metadata-auto.diff b/stacker-fix-metadata-auto.diff index b02ec24..f28cd22 100644 --- a/stacker-fix-metadata-auto.diff +++ b/stacker-fix-metadata-auto.diff @@ -1,15 +1,13 @@ ---- stacker-0.1.15/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ stacker-0.1.15/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -44,12 +44,3 @@ +--- stacker-0.1.17/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ stacker-0.1.17/Cargo.toml 2024-09-17T20:44:38.123287+00:00 +@@ -45,10 +45,3 @@ [build-dependencies.cc] version = "1.0.2" --[target."cfg(windows)".dependencies.winapi] --version = "0.3.6" +-[target."cfg(windows)".dependencies.windows-sys] +-version = ">=0.52.0, <0.60.0" -features = [ -- "memoryapi", -- "winbase", -- "fibersapi", -- "processthreadsapi", -- "minwindef", +- "Win32_System_Memory", +- "Win32_System_Threading", +- "Win32_Foundation", -]