diff --git a/.gitignore b/.gitignore index 6fe1d90..97d043d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /zoxide-0.4.3.crate /zoxide-0.5.0.crate /zoxide-0.7.9.crate +/zoxide-0.8.0.crate diff --git a/rust-zoxide.spec b/rust-zoxide.spec index b24770b..8e697a7 100644 --- a/rust-zoxide.spec +++ b/rust-zoxide.spec @@ -1,12 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 # The rstest dev-dependency has cyclic deps %bcond_with check -%global __cargo_skip_build 0 %global crate zoxide Name: rust-%{crate} -Version: 0.7.9 +Version: 0.8.0 Release: %autorelease Summary: Smarter cd command for your terminal @@ -14,6 +13,9 @@ Summary: Smarter cd command for your terminal License: MIT URL: https://crates.io/crates/zoxide Source: %{crates_source} +# Initial patched metadata +# * Update clap to 3.0.0, https://github.com/ajeetdsouza/zoxide/commit/b6b024c452635d672e3dc58707ef86cb944a52ab +Patch0: zoxide-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -38,7 +40,7 @@ Recommends: fzf %files -n %{crate} %license LICENSE -%doc README.md CHANGELOG.md +%doc CHANGELOG.md README.md %{_bindir}/zoxide %prep diff --git a/sources b/sources index 7f68d37..b27cf4e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zoxide-0.7.9.crate) = 5278051e5be515438ad3b965044b3bd22e9a73cc6393916496525f09b69020d3d241f5a6a127d3755b7f9a4750d2854af2f379ceda3a762b9bfdbce02c9ac842 +SHA512 (zoxide-0.8.0.crate) = abdabbc5b061a118232502b6c9deaf932327cde2357f7c281441d8beb70954348da4b19c55517f43d6067f955d9aac56447bd0b65fb58469212aba77f012391d diff --git a/zoxide-fix-metadata.diff b/zoxide-fix-metadata.diff new file mode 100644 index 0000000..9ff9f7e --- /dev/null +++ b/zoxide-fix-metadata.diff @@ -0,0 +1,38 @@ +--- zoxide-0.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zoxide-0.8.0/Cargo.toml 2022-01-29T15:31:36.978955+00:00 +@@ -35,7 +35,7 @@ + version = "1.3.1" + + [dependencies.clap] +-version = "=3.0.0-rc.8" ++version = "3.0.0" + features = ["derive"] + + [dependencies.dirs] +@@ -65,21 +65,17 @@ + [dev-dependencies.rstest] + version = "0.12.0" + [build-dependencies.clap] +-version = "=3.0.0-rc.8" ++version = "3.0.0" + features = ["derive"] + +-[build-dependencies.clap_generate] +-version = "=3.0.0-rc.8" ++[build-dependencies.clap_complete] ++version = "3.0.0" + +-[build-dependencies.clap_generate_fig] +-version = "=3.0.0-rc.8" ++[build-dependencies.clap_complete_fig] ++version = "3.0.0" + + [features] + default = [] + nix = [] +-[target."cfg(windows)".dependencies.rand] +-version = "0.8.4" +-features = ["getrandom", "small_rng"] +-default-features = false + [badges.maintenance] + status = "actively-developed"