diff --git a/.gitignore b/.gitignore index de15d3b..713c991 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /ctrlc-3.2.0.crate /ctrlc-3.2.1.crate /ctrlc-3.2.2.crate +/ctrlc-3.2.4.crate diff --git a/ctrlc-fix-metadata-auto.diff b/ctrlc-fix-metadata-auto.diff new file mode 100644 index 0000000..ba30f4d --- /dev/null +++ b/ctrlc-fix-metadata-auto.diff @@ -0,0 +1,25 @@ +--- ctrlc-3.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ctrlc-3.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -47,22 +47,3 @@ + ] + default-features = false + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.42" +-features = [ +- "Win32_Foundation", +- "Win32_System_Threading", +- "Win32_Security", +- "Win32_System_WindowsProgramming", +- "Win32_System_Console", +-] +- +-[target."cfg(windows)".dev-dependencies.windows-sys] +-version = "0.42" +-features = [ +- "Win32_Storage_FileSystem", +- "Win32_Foundation", +- "Win32_System_IO", +- "Win32_System_SystemServices", +- "Win32_System_Console", +-] diff --git a/ctrlc-fix-metadata.diff b/ctrlc-fix-metadata.diff deleted file mode 100644 index 9c6c166..0000000 --- a/ctrlc-fix-metadata.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- ctrlc-3.2.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ctrlc-3.2.2/Cargo.toml 2022-05-25T14:02:14.814780+00:00 -@@ -35,9 +35,3 @@ - version = "0.24" - features = ["fs", "signal"] - default-features = false --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["consoleapi", "handleapi", "synchapi", "winbase"] --[target."cfg(windows)".dev-dependencies.winapi] --version = "0.3" --features = ["fileapi", "processenv", "winnt"] diff --git a/rust-ctrlc.spec b/rust-ctrlc.spec index 185730a..4648067 100644 --- a/rust-ctrlc.spec +++ b/rust-ctrlc.spec @@ -1,23 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate ctrlc -Name: rust-%{crate} -Version: 3.2.2 +Name: rust-ctrlc +Version: 3.2.4 Release: %autorelease Summary: Easy Ctrl-C handler for Rust projects # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/ctrlc Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: ctrlc-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: ctrlc-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index 5cfc78e..dd6f7a3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctrlc-3.2.2.crate) = 9536489c3b871685f20eabe7b8fa4a1a4db8e362e8e83b4b2fe244d98eb4da8f84737d26854505cbb53a311e6aab6327b0644689206a19dc5f7d3b88bac580d9 +SHA512 (ctrlc-3.2.4.crate) = cc945d6092f8eed3e2a50fac82e54b132dd661d58819b9326dd23592c3848c919caa6c2490cda269154b8ddd0cdd47144df025461c72885b4fd6f5d33cdab242