diff --git a/.gitignore b/.gitignore index 6d9ef44..ce3a103 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /libloading-0.7.3.crate /libloading-0.7.4.crate /libloading-0.8.1.crate +/libloading-0.8.2.crate diff --git a/libloading-fix-metadata-auto.diff b/libloading-fix-metadata-auto.diff index 146f503..2dd2fbf 100644 --- a/libloading-fix-metadata-auto.diff +++ b/libloading-fix-metadata-auto.diff @@ -1,13 +1,8 @@ ---- libloading-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ libloading-0.8.1/Cargo.toml 2023-10-24T10:29:41.445939+00:00 -@@ -43,10 +43,3 @@ +--- libloading-0.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libloading-0.8.2/Cargo.toml 2024-03-05T13:42:48.660445+00:00 +@@ -47,5 +47,3 @@ [target."cfg(unix)".dependencies.cfg-if] version = "1" --[target."cfg(windows)".dependencies.windows-sys] --version = "0.48" --features = [ -- "Win32_Foundation", -- "Win32_System_Diagnostics_Debug", -- "Win32_System_LibraryLoader", --] +-[target."cfg(windows)".dependencies.windows-targets] +-version = ">=0.48, <0.53" diff --git a/libloading-fix-metadata.diff b/libloading-fix-metadata.diff new file mode 100644 index 0000000..19b5be7 --- /dev/null +++ b/libloading-fix-metadata.diff @@ -0,0 +1,13 @@ +--- libloading-0.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libloading-0.8.2/Cargo.toml 2024-03-05T13:42:55.751476+00:00 +@@ -40,10 +40,6 @@ + [dev-dependencies.static_assertions] + version = "1.1" + +-[dev-dependencies.windows-sys] +-version = "0.52" +-features = ["Win32_Foundation"] +- + [target."cfg(unix)".dependencies.cfg-if] + version = "1" + diff --git a/rust-libloading.spec b/rust-libloading.spec index a61acf6..008b211 100644 --- a/rust-libloading.spec +++ b/rust-libloading.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate libloading Name: rust-libloading -Version: 0.8.1 +Version: 0.8.2 Release: %autorelease Summary: Bindings for native dynamic library loading primitives @@ -14,6 +14,10 @@ URL: https://crates.io/crates/libloading Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: libloading-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop Windows-specific windows-sys dev-dependency: +# https://github.com/nagisa/rust_libloading/pull/140 +Patch: libloading-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/sources b/sources index 1b80aad..4e78a9c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libloading-0.8.1.crate) = f17ca367ef8e62fe80f43e5f3e2d1585be7b78b0fe4a733d80acdde38c20f9f72e710cff082442de6afa323aaafa17eda4491c4430b2d12f398d420e057cadab +SHA512 (libloading-0.8.2.crate) = 0acce8e1271dd14fc8106046a744d055f67b8743ed821ecfbc3b029e6388d07520769890971c74c63338b01240f13f13341c001ced59c601d803370a37e71af8