From 66c6cb90a295e14bc53bddb51be4695a1b06cc10 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 3 Jan 2024 11:45:06 +0100 Subject: [PATCH] Update to version 4.0.2; Fixes RHBZ#2218701 --- .gitignore | 1 + fd-lock-fix-metadata-auto.diff | 8 ++++---- rust-fd-lock.spec | 10 +++++----- sources | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index b16ccd7..34cf5a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /fd-lock-2.0.0.crate /fd-lock-3.0.10.crate /fd-lock-3.0.12.crate +/fd-lock-4.0.2.crate diff --git a/fd-lock-fix-metadata-auto.diff b/fd-lock-fix-metadata-auto.diff index 2423286..3f1b22f 100644 --- a/fd-lock-fix-metadata-auto.diff +++ b/fd-lock-fix-metadata-auto.diff @@ -1,11 +1,11 @@ ---- fd-lock-3.0.12/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ fd-lock-3.0.12/Cargo.toml 2023-04-10T19:09:41.637033+00:00 +--- fd-lock-4.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fd-lock-4.0.2/Cargo.toml 2024-01-03T10:40:32.700682+00:00 @@ -44,10 +44,3 @@ - version = "0.37.0" + version = "0.38.0" features = ["fs"] -[target."cfg(windows)".dependencies.windows-sys] --version = "0.48.0" +-version = "0.52.0" -features = [ - "Win32_Foundation", - "Win32_Storage_FileSystem", diff --git a/rust-fd-lock.spec b/rust-fd-lock.spec index bba1dd5..94caa3a 100644 --- a/rust-fd-lock.spec +++ b/rust-fd-lock.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate fd-lock Name: rust-fd-lock -Version: 3.0.12 +Version: 4.0.2 Release: %autorelease Summary: Advisory cross-platform lock on a file using a file descriptor to it License: MIT OR Apache-2.0 URL: https://crates.io/crates/fd-lock Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: fd-lock-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Advisory cross-platform lock on a file using a file descriptor to it.} @@ -50,7 +50,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/sources b/sources index 8193436..a22d0d5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fd-lock-3.0.12.crate) = 75b40e827cac562cff603fc456878debec650029bfb3766cec11901353e1205a8f8be64e932fce70d6fe96f4046c9e4814f8baa618430f8aa6c01b38a963e034 +SHA512 (fd-lock-4.0.2.crate) = acc5aaf6e89169062c1c59d5258b590d4bde21a35f0acb7da2e3167d0668fa678d1febc305e32d95329a7e5bdb784fadb9b85417a5e4e5deea53d59f05bea74e