From 07e0c76da2d6d7098a5335d9c9b0a57da818e2b8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 18:35:13 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-crossbeam.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 rust-crossbeam.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6316f1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/crossbeam-0.3.0.crate diff --git a/rust-crossbeam.spec b/rust-crossbeam.spec new file mode 100644 index 0000000..dea2507 --- /dev/null +++ b/rust-crossbeam.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate crossbeam + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Support for lock-free data structures, synchronizers, and parallel programming + +License: ASL 2.0 or MIT +URL: https://crates.io/crates/crossbeam +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +%if %{with check} +BuildRequires: (crate(rand) >= 0.3.0 with crate(rand) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Support for lock-free data structures, synchronizers, and parallel programming. + +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-APACHE LICENSE-MIT +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ +# https://github.com/aturon/crossbeam/issues/111 +%exclude %{_bindir}/{stress-msq,bench} + +%changelog +* Sun Nov 05 2017 Igor Gnatenko - 0.3.0-1 +- Update to 0.3.0 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.10-2 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 0.2.10-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7709fdb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crossbeam-0.3.0.crate) = 314d09a98f0d6379a9528dae0c5d4d56453404074f80ec144e77036f47be678996ef3a9b29692f582ff25b78a1c28f3864b9a66926a583efb36277bc2d25b38c