summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-10 12:07:13 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-10 12:16:16 -0700
commit8d36970f5dfbde87b5e95fd61245e4de2c2931b8 (patch)
tree7682146640622394ce620cc7a358583d5cd7149e
parent3235b9ddf4c34b93e2adf106d83f78e1da484599 (diff)
downloadspecs-8d36970f5dfbde87b5e95fd61245e4de2c2931b8.tar.gz
specs-8d36970f5dfbde87b5e95fd61245e4de2c2931b8.tar.xz
specs-8d36970f5dfbde87b5e95fd61245e4de2c2931b8.zip
im: fix FTI
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/im-fix-metadata.diff32
-rw-r--r--rust/rust-im.spec52
2 files changed, 32 insertions, 52 deletions
diff --git a/rust/im-fix-metadata.diff b/rust/im-fix-metadata.diff
index 1c1c3fa..ab81677 100644
--- a/rust/im-fix-metadata.diff
+++ b/rust/im-fix-metadata.diff
@@ -1,6 +1,25 @@
--- im-15.0.0/Cargo.toml 2020-05-15T18:59:42+00:00
-+++ im-15.0.0/Cargo.toml 2022-04-10T17:40:13.690989+00:00
-@@ -49,7 +49,7 @@
++++ im-15.0.0/Cargo.toml 2022-04-10T19:05:10.958243+00:00
+@@ -30,33 +30,18 @@
+
+ [lib]
+ path = "./src/lib.rs"
+-[dependencies.arbitrary]
+-version = "0.4"
+-optional = true
+
+ [dependencies.bitmaps]
+ version = "2"
+-
+-[dependencies.proptest]
+-version = "0.9"
+-optional = true
+-
+-[dependencies.quickcheck]
+-version = "0.9"
+-optional = true
+
+ [dependencies.rand_core]
version = "0.5.1"
[dependencies.rand_xoshiro]
@@ -9,7 +28,14 @@
[dependencies.rayon]
version = "1"
-@@ -68,17 +68,9 @@
+-optional = true
+-
+-[dependencies.refpool]
+-version = "0.4"
+ optional = true
+
+ [dependencies.serde]
+@@ -68,17 +53,9 @@
[dependencies.typenum]
version = "1.12"
diff --git a/rust/rust-im.spec b/rust/rust-im.spec
index dfd80e2..6fe11e4 100644
--- a/rust/rust-im.spec
+++ b/rust/rust-im.spec
@@ -14,7 +14,9 @@ Summary: Immutable collection datatypes
License: MPLv2.0
URL: https://crates.io/crates/im
Source: %{crates_source}
-# Drop unpackaged dev dependencies, bump up rand_xoshiro
+# Drop unpackaged dev dependencies: metrohash, proptest, protest-derive
+# Drop optional dependencies that are older than in Fedora
+# bump up rand_xoshiro
Patch0: im-fix-metadata.diff
# https://github.com/bodil/im-rs/pull/197
Patch1: im-fix_for_rand_xoshiro_060.patch
@@ -56,18 +58,6 @@ use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/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 the "arbitrary" feature of the "%{crate}" crate.
-
-%files -n %{name}+arbitrary-devel
-%ghost %{crate_instdir}/Cargo.toml
-
%package -n %{name}+debug-devel
Summary: %{summary}
BuildArch: noarch
@@ -80,30 +70,6 @@ use the "debug" feature of the "%{crate}" crate.
%files -n %{name}+debug-devel
%ghost %{crate_instdir}/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 the "proptest" feature of the "%{crate}" crate.
-
-%files -n %{name}+proptest-devel
-%ghost %{crate_instdir}/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 the "quickcheck" feature of the "%{crate}" crate.
-
-%files -n %{name}+quickcheck-devel
-%ghost %{crate_instdir}/Cargo.toml
-
%package -n %{name}+rayon-devel
Summary: %{summary}
BuildArch: noarch
@@ -116,18 +82,6 @@ use the "rayon" feature of the "%{crate}" crate.
%files -n %{name}+rayon-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+refpool-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+refpool-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "refpool" feature of the "%{crate}" crate.
-
-%files -n %{name}+refpool-devel
-%ghost %{crate_instdir}/Cargo.toml
-
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch