diff --git a/.gitignore b/.gitignore index 3c7e204..2b695a9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /parking_lot_core-0.8.5.crate /parking_lot_core-0.9.1.crate /parking_lot_core-0.9.3.crate +/parking_lot_core-0.9.5.crate diff --git a/parking_lot_core-fix-metadata.diff b/parking_lot_core-fix-metadata-auto.diff similarity index 67% rename from parking_lot_core-fix-metadata.diff rename to parking_lot_core-fix-metadata-auto.diff index c9b5d9e..79f2aa8 100644 --- a/parking_lot_core-fix-metadata.diff +++ b/parking_lot_core-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- parking_lot_core-0.9.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ parking_lot_core-0.9.3/Cargo.toml 2022-05-24T14:17:50.607577+00:00 -@@ -52,17 +52,5 @@ +--- parking_lot_core-0.9.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ parking_lot_core-0.9.5/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -52,17 +52,6 @@ ] nightly = [] @@ -9,9 +9,9 @@ - [target."cfg(unix)".dependencies.libc] version = "0.2.95" -- + -[target."cfg(windows)".dependencies.windows-sys] --version = "0.36.0" +-version = "0.42.0" -features = [ - "Win32_Foundation", - "Win32_System_LibraryLoader", diff --git a/rust-parking_lot_core.spec b/rust-parking_lot_core.spec index f059205..c10ff51 100644 --- a/rust-parking_lot_core.spec +++ b/rust-parking_lot_core.spec @@ -1,23 +1,19 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate parking_lot_core -Name: rust-%{crate} -Version: 0.9.3 +Name: rust-parking_lot_core +Version: 0.9.5 Release: %autorelease Summary: Advanced API for creating custom synchronization primitives -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/parking_lot_core Source: %{crates_source} -# Initial patched metadata -# * drop Windows- and Redox OS-specific dependencies -Patch0: parking_lot_core-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: parking_lot_core-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index d0ba7eb..0d9b4b4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (parking_lot_core-0.9.3.crate) = fa30db0fc73b268ab8395adb8bda35d12dc15363b247a95b7c4bb848ff9b8dbfb971a20f320b4feff3317d5b533c59b62152e4c652c1809a422c5671310b30df +SHA512 (parking_lot_core-0.9.5.crate) = 1c430ffabfd33e8396178615829f6f623edc34d30393658b4cfaa263f4ae6e4101a9850333d3b54af058dc499bc66240a18041f31e920d5bc866d6bf66809378