Initial import (#2241635)

epel10
Fabio Valentini 1 year ago
parent b67f1bedfe
commit 4492685ab3
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/send_wrapper-0.6.0.crate

@ -1,3 +0,0 @@
# rust-send_wrapper
The rust-send_wrapper package

@ -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

@ -0,0 +1 @@
SHA512 (send_wrapper-0.6.0.crate) = cf1dd6fd38d03ae6c483bd7e4f67724994a053d6375d32047f3c4cea9e84a100677d8be876e04954511625dcc49195f36eca5fbc3e9018e379c9c147d5852635
Loading…
Cancel
Save