diff --git a/.gitignore b/.gitignore index 171ab11..30af372 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /fs-set-times-0.3.1.crate /fs-set-times-0.14.0.crate +/fs-set-times-0.14.1.crate diff --git a/fs-set-times-fix-metadata.diff b/fs-set-times-fix-metadata.diff index 677b32a..38af50c 100644 --- a/fs-set-times-fix-metadata.diff +++ b/fs-set-times-fix-metadata.diff @@ -1,13 +1,11 @@ ---- fs-set-times-0.14.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ fs-set-times-0.14.0/Cargo.toml 2021-12-04T18:33:27.301436+00:00 -@@ -25,9 +25,6 @@ - version = "0.4.0" +--- fs-set-times-0.14.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fs-set-times-0.14.1/Cargo.toml 2022-02-03T18:39:27.910002+00:00 +@@ -26,8 +26,5 @@ default-features = false [target."cfg(not(windows))".dependencies.rustix] --version = "0.27.0" + version = "0.31.0" -[target."cfg(windows)".dependencies.winapi] -version = "0.3.9" -features = ["winerror"] -+version = "0.29" [badges.maintenance] status = "actively-developed" diff --git a/rust-fs-set-times.spec b/rust-fs-set-times.spec index 188c1eb..940d0d0 100644 --- a/rust-fs-set-times.spec +++ b/rust-fs-set-times.spec @@ -1,35 +1,28 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate fs-set-times Name: rust-%{crate} -Version: 0.14.0 +Version: 0.14.1 Release: %autorelease Summary: Set filesystem timestamps # Upstream license specification: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -License: ASL 2.0 with exceptions or ASL 2.0 or MIT +License: ASL 2.0 or MIT URL: https://crates.io/crates/fs-set-times Source: %{crates_source} # Initial patched metadata -# - Remove windows-only dependency winapi -# - Bump rustix +# * drop windows-specific dependencies Patch0: fs-set-times-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging %global _description %{expand: -Set filesystem timestamps. - -Rust crate fs-set-times provides functions to set timestamps on files, -directories, and other filesystem objects.} +Set filesystem timestamps.} %description %{_description} @@ -39,14 +32,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%doc README.md SECURITY.md -%doc CODE_OF_CONDUCT.md ORG_CODE_OF_CONDUCT.md -%license LICENSE-APACHE LICENSE-MIT COPYRIGHT -%license LICENSE-Apache-2.0_WITH_LLVM-exception +%license COPYRIGHT LICENSE-APACHE LICENSE-Apache-2.0_WITH_LLVM-exception LICENSE-MIT +%doc CODE_OF_CONDUCT.md ORG_CODE_OF_CONDUCT.md README.md SECURITY.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -55,8 +46,8 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 diff --git a/sources b/sources index 5ff0d07..4569e30 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fs-set-times-0.14.0.crate) = 8d83aa78939082439c514b768c31ec6ed7b64b8584904d9531bbadeecd0a8aeea526ec48e8769cddd7bac6c13cf9b5d7ec8c0211635e9c2abd3837562c8170d4 +SHA512 (fs-set-times-0.14.1.crate) = b0ea07a1501a40392c36518f980eadd8560f2698b02a5da6b695aaba5dd4173abc6906b1925fa80a5b78b5147f1b4281e0a68ea1bd5642c15f8571914454f2d3