diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3fb70ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/crossbeam-deque-0.3.0.crate diff --git a/rust-crossbeam-deque.spec b/rust-crossbeam-deque.spec new file mode 100644 index 0000000..0dd640b --- /dev/null +++ b/rust-crossbeam-deque.spec @@ -0,0 +1,62 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate crossbeam-deque + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Concurrent work-stealing deque + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/crossbeam-deque +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.4.0 with crate(crossbeam-epoch) < 0.5.0) +BuildRequires: (crate(crossbeam-utils) >= 0.2.1 with crate(crossbeam-utils) < 0.3.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{summary}. + +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 +* Thu Feb 15 2018 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c8910b9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crossbeam-deque-0.3.0.crate) = 966153fba9fafc4b94e97f35266ab9868c96bee7a9a8f25d3e8c7aee0e01e298fad88d278f3489b97b33e69957419cf9e0430ea6589b3a418419dce422cb90f2