diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4177e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/crossbeam-channel-0.2.4.crate diff --git a/rust-crossbeam-channel.spec b/rust-crossbeam-channel.spec new file mode 100644 index 0000000..d7ac098 --- /dev/null +++ b/rust-crossbeam-channel.spec @@ -0,0 +1,67 @@ +# Generated by rust2rpm +# * Depends on old version of crossbeam (circular dep) +%bcond_with check +%global debug_package %{nil} + +%global crate crossbeam-channel + +Name: rust-%{crate} +Version: 0.2.4 +Release: 1%{?dist} +Summary: Multi-producer multi-consumer channels for message passing + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/crossbeam-channel +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(crossbeam-epoch) >= 0.5.0 with crate(crossbeam-epoch) < 0.6.0) +BuildRequires: (crate(crossbeam-utils) >= 0.5.0 with crate(crossbeam-utils) < 0.6.0) +BuildRequires: (crate(parking_lot) >= 0.6.3 with crate(parking_lot) < 0.7.0) +BuildRequires: (crate(rand) >= 0.5.3 with crate(rand) < 0.6.0) +BuildRequires: (crate(smallvec) >= 0.6.2 with crate(smallvec) < 0.7.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(crossbeam) >= 0.3.0 with crate(crossbeam) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Multi-producer multi-consumer channels for message passing. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Sep 08 2018 Igor Gnatenko - 0.2.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0add736 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crossbeam-channel-0.2.4.crate) = d753fc9114e2dc0f7b2e3a4048457a859034f80f6be245f46771933e9352685b20b256ce389223d9426e50ec600c681a819b9cc7701bb888b98f3d2bf18b630b