summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-11 11:21:22 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-11 11:21:22 -0700
commit8618385bbcef367d96b1c2f85c440ec54483bad6 (patch)
treea8a60c92de115d0cd4e9682af48771afef6da701
parent8d36970f5dfbde87b5e95fd61245e4de2c2931b8 (diff)
downloadspecs-8618385bbcef367d96b1c2f85c440ec54483bad6.tar.gz
specs-8618385bbcef367d96b1c2f85c440ec54483bad6.tar.xz
specs-8618385bbcef367d96b1c2f85c440ec54483bad6.zip
+ rust-imbl
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/imbl-fix-metadata.diff29
-rw-r--r--rust/rust-imbl.spec161
2 files changed, 190 insertions, 0 deletions
diff --git a/rust/imbl-fix-metadata.diff b/rust/imbl-fix-metadata.diff
new file mode 100644
index 0000000..5ff8dc2
--- /dev/null
+++ b/rust/imbl-fix-metadata.diff
@@ -0,0 +1,29 @@
+--- imbl-1.0.1/Cargo.toml 1970-01-01T00:00:01+00:00
++++ imbl-1.0.1/Cargo.toml 2022-04-11T17:51:04.474974+00:00
+@@ -30,7 +30,7 @@
+ [lib]
+ path = "./src/lib.rs"
+ [dependencies.arbitrary]
+-version = "1.0"
++version = "1.1"
+ optional = true
+
+ [dependencies.bitmaps]
+@@ -67,8 +67,6 @@
+
+ [dependencies.typenum]
+ version = "1.12"
+-[dev-dependencies.metrohash]
+-version = "1"
+
+ [dev-dependencies.pretty_assertions]
+ version = "0.7"
+@@ -77,7 +75,7 @@
+ version = "1.0"
+
+ [dev-dependencies.proptest-derive]
+-version = "0.3"
++version = "0.2"
+
+ [dev-dependencies.rand]
+ version = "0.8"
diff --git a/rust/rust-imbl.spec b/rust/rust-imbl.spec
new file mode 100644
index 0000000..f52c92a
--- /dev/null
+++ b/rust/rust-imbl.spec
@@ -0,0 +1,161 @@
+# Generated by rust2rpm 21
+# metrohash test dep still missing
+# proptest-derive might be too old (verify once metrohash is in)
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate imbl
+
+Name: rust-%{crate}
+Version: 1.0.1
+Release: %autorelease
+Summary: Immutable collection datatypes
+
+# Upstream license specification: MPL-2.0+
+License: MPLv2.0
+URL: https://crates.io/crates/imbl
+Source: %{crates_source}
+# bump arbitrary, downgrade proptest-derive, drop metrohash
+Patch0: imbl-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Immutable collection datatypes.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENCE.md
+%doc %{crate_instdir}/CHANGELOG.md
+%doc %{crate_instdir}/CODE_OF_CONDUCT.md
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+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 %{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
+
+%description -n %{name}+debug-devel %{_description}
+
+This package contains library source intended for building other packages which
+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
+
+%description -n %{name}+rayon-devel %{_description}
+
+This package contains library source intended for building other packages which
+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
+
+%description -n %{name}+serde-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "serde" feature of the "%{crate}" crate.
+
+%files -n %{name}+serde-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog