From 3dce2c0180f9b4ef84fcc86a4d051164b52240c0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 7 Jul 2024 19:11:53 +0200 Subject: [PATCH] Initial import (dashmap 5 compat package) --- .gitignore | 1 + README.md | 3 -- rust-dashmap5.spec | 128 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 130 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-dashmap5.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c59aa15 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dashmap-5.5.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index c7e6341..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-dashmap5 - -The rust-dashmap5 package diff --git a/rust-dashmap5.spec b/rust-dashmap5.spec new file mode 100644 index 0000000..137fb61 --- /dev/null +++ b/rust-dashmap5.spec @@ -0,0 +1,128 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate dashmap + +Name: rust-dashmap5 +Version: 5.5.3 +Release: %autorelease +Summary: Blazing fast concurrent HashMap for Rust + +License: MIT +URL: https://crates.io/crates/dashmap +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Blazing fast concurrent HashMap for Rust.} + +%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}/LICENSE +%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}+inline-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+inline-devel %{_description} + +This package contains library source intended for building other packages which +use the "inline" feature of the "%{crate}" crate. + +%files -n %{name}+inline-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+raw-api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+raw-api-devel %{_description} + +This package contains library source intended for building other packages which +use the "raw-api" feature of the "%{crate}" crate. + +%files -n %{name}+raw-api-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}+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} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..da8ee19 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dashmap-5.5.3.crate) = 15079a921d768224defebdf8d5339257c9e94a46d115b37ddfca8eb83718b2448555a8982bcf0381a915d292aff9d271a89d3398d2ae2f396dd581cc6883963a