From 4492685ab342a8f69a10ab2a58cdc9f66eb1dbbb Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 18 Oct 2023 22:49:10 +0200 Subject: [PATCH] Initial import (#2241635) --- .gitignore | 1 + README.md | 3 -- rust-send_wrapper.spec | 100 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-send_wrapper.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9b01cf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/send_wrapper-0.6.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 6e61d48..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-send_wrapper - -The rust-send_wrapper package diff --git a/rust-send_wrapper.spec b/rust-send_wrapper.spec new file mode 100644 index 0000000..86ebf51 --- /dev/null +++ b/rust-send_wrapper.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate send_wrapper + +Name: rust-send_wrapper +Version: 0.6.0 +Release: %autorelease +Summary: Wrapper type to allow moving non-Send types between threads + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/send_wrapper +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +This Rust library implements a wrapper type called SendWrapper which +allows you to move around non-Send types between threads, as long as you +access the contained value only from within the original thread. You +also have to make sure that the wrapper is dropped from within the +original thread. If any of these constraints is violated, a panic +occurs.} + +%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-APACHE.txt +%license %{crate_instdir}/LICENSE-MIT.txt +%doc %{crate_instdir}/CHANGELOG.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}+futures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures" feature of the "%{crate}" crate. + +%files -n %{name}+futures-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+futures-core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-core-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures-core" feature of the "%{crate}" crate. + +%files -n %{name}+futures-core-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 diff --git a/sources b/sources new file mode 100644 index 0000000..180b4a7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (send_wrapper-0.6.0.crate) = cf1dd6fd38d03ae6c483bd7e4f67724994a053d6375d32047f3c4cea9e84a100677d8be876e04954511625dcc49195f36eca5fbc3e9018e379c9c147d5852635