From 9d0b2e97270cfe2866082ea33097f978e0993321 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 7 Nov 2022 13:30:28 +0100 Subject: [PATCH] Update to version 0.7.4; Fixes RHBZ#2140482 --- .gitignore | 1 + libloading-fix-metadata-auto.diff | 12 ++++++++++++ libloading-fix-metadata.diff | 9 --------- rust-libloading.spec | 26 +++++++++++--------------- sources | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 libloading-fix-metadata-auto.diff delete mode 100644 libloading-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 3f65abc..5c4ca34 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /libloading-0.7.1.crate /libloading-0.7.2.crate /libloading-0.7.3.crate +/libloading-0.7.4.crate diff --git a/libloading-fix-metadata-auto.diff b/libloading-fix-metadata-auto.diff new file mode 100644 index 0000000..c5cd20b --- /dev/null +++ b/libloading-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -43,9 +43,3 @@ + [target."cfg(unix)".dependencies.cfg-if] + version = "1" + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = [ +- "errhandlingapi", +- "libloaderapi", +-] diff --git a/libloading-fix-metadata.diff b/libloading-fix-metadata.diff deleted file mode 100644 index 19f7558..0000000 --- a/libloading-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- libloading-0.7.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ libloading-0.7.3/Cargo.toml 2022-01-26T22:49:41.550218+00:00 -@@ -31,6 +31,3 @@ - version = "1.1" - [target."cfg(unix)".dependencies.cfg-if] - version = "1" --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["errhandlingapi", "libloaderapi"] diff --git a/rust-libloading.spec b/rust-libloading.spec index 2a1e6c6..8ad5e2a 100644 --- a/rust-libloading.spec +++ b/rust-libloading.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate libloading -Name: rust-%{crate} -Version: 0.7.3 +Name: rust-libloading +Version: 0.7.4 Release: %autorelease -Summary: Safer binding to platform’s dynamic library loading utilities +Summary: Bindings for native dynamic library loading primitives -# Upstream license specification: ISC License: ISC URL: https://crates.io/crates/libloading Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: libloading-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: libloading-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Bindings around the platform's dynamic library loading primitives with greatly @@ -37,9 +33,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.mkd -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.mkd +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +47,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index dd66751..42950d1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libloading-0.7.3.crate) = 58da6e73f86aa05132949939507a128188ec2e26e2245e23b1534d90673c9909c7d5220aa4aeab2c16249f7433b4d0f98f20c94b8b1f7434c7abadc8b8039ae9 +SHA512 (libloading-0.7.4.crate) = 34439d9eca68bac8fcbe2bc94a70e07550e7e95d713ab74ed60ba6736ec807fd9c9135c178d436fbeb39afb074b2a9b05775d953340845c088f5f8712f5f56a1