From d3fb54bb169810cdf6c973b70925b925cf77ef6d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 4 Aug 2021 18:16:43 +0200 Subject: [PATCH] Bump dependencies to latest versions and drop unused / obsolete features --- .rust2rpm.conf | 4 ---- im-rc-fix-metadata.diff | 53 ++++++++++++++++++++++++++++------------- rust-im-rc.spec | 44 +++++----------------------------- 3 files changed, 43 insertions(+), 58 deletions(-) delete mode 100644 .rust2rpm.conf diff --git a/.rust2rpm.conf b/.rust2rpm.conf deleted file mode 100644 index 440c974..0000000 --- a/.rust2rpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -unwanted-features = - pool - refpool diff --git a/im-rc-fix-metadata.diff b/im-rc-fix-metadata.diff index 0d7ac34..664b081 100644 --- a/im-rc-fix-metadata.diff +++ b/im-rc-fix-metadata.diff @@ -1,24 +1,45 @@ --- im-rc-15.0.0/Cargo.toml 2020-05-15T19:00:18+00:00 -+++ im-rc-15.0.0/Cargo.toml 2020-09-25T09:43:04.988395+00:00 -@@ -37,7 +37,7 @@ ++++ im-rc-15.0.0/Cargo.toml 2021-08-04T16:11:40.028148+00:00 +@@ -29,33 +29,18 @@ + + [lib] + path = "./src/lib.rs" +-[dependencies.arbitrary] +-version = "0.4" +-optional = true + + [dependencies.bitmaps] version = "2" - [dependencies.proptest] +-[dependencies.proptest] -version = "0.9" -+version = "0.10" - optional = true +-optional = true +- +-[dependencies.quickcheck] +-version = "0.9" +-optional = true +- + [dependencies.rand_core] +-version = "0.5.1" ++version = "0.6.3" - [dependencies.quickcheck] -@@ -74,10 +74,10 @@ - version = "0.6" + [dependencies.rand_xoshiro] +-version = "0.4" ++version = "0.6" - [dev-dependencies.proptest] --version = "0.9" -+version = "0.10" + [dependencies.rayon] + version = "1" +-optional = true +- +-[dependencies.refpool] +-version = "0.4" + optional = true - [dev-dependencies.proptest-derive] --version = "0.1" -+version = "0.2" + [dependencies.serde] +@@ -96,6 +81,5 @@ - [dev-dependencies.rand] - version = "0.7" + [features] + debug = [] +-pool = ["refpool", "sized-chunks/refpool"] + [badges.travis-ci] + repository = "bodil/im-rs" diff --git a/rust-im-rc.spec b/rust-im-rc.spec index 56240c3..477705f 100644 --- a/rust-im-rc.spec +++ b/rust-im-rc.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm 13 -# * metrohash is not packaged +# Generated by rust2rpm 18 +# * dev-dependencies are outdated %bcond_with check %global debug_package %{nil} @@ -15,6 +15,10 @@ License: MPLv2.0 URL: https://crates.io/crates/im-rc Source: %{crates_source} # Initial patched metadata +# * bump rand_core from 0.5.1 to 0.6.3 +# * bump rand_xoshiro from 0.4 to 0.6 +# * drop unused optional features with outdated or missing dependencies: +# arbitrary, proptest, quickcheck, pool/refpool Patch0: im-rc-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -55,18 +59,6 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+arbitrary-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+arbitrary-devel %{_description} - -This package contains library source intended for building other packages -which use "arbitrary" feature of "%{crate}" crate. - -%files -n %{name}+arbitrary-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch @@ -79,30 +71,6 @@ which use "debug" feature of "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+proptest-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+proptest-devel %{_description} - -This package contains library source intended for building other packages -which use "proptest" feature of "%{crate}" crate. - -%files -n %{name}+proptest-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+quickcheck-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+quickcheck-devel %{_description} - -This package contains library source intended for building other packages -which use "quickcheck" feature of "%{crate}" crate. - -%files -n %{name}+quickcheck-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch