From 6ecc5b1522e2222931bc9ace87310179cee266de Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 12 Nov 2020 22:00:39 +0100 Subject: [PATCH] initial import (crossbeam-queue 0.2 compat package) --- .gitignore | 4 ++ README.md | 3 -- rust-crossbeam-queue0.2.spec | 99 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-crossbeam-queue0.2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cecf88 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/crossbeam-queue-0.2.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index bfe56d1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-crossbeam-queue0.2 - -The rust-crossbeam-queue0.2 package diff --git a/rust-crossbeam-queue0.2.spec b/rust-crossbeam-queue0.2.spec new file mode 100644 index 0000000..678b147 --- /dev/null +++ b/rust-crossbeam-queue0.2.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate crossbeam-queue + +Name: rust-%{crate}0.2 +Version: 0.2.3 +Release: 1%{?dist} +Summary: Concurrent queues + +# Upstream license specification: MIT/Apache-2.0 AND BSD-2-Clause +License: (MIT or ASL 2.0) and BSD +URL: https://crates.io/crates/crossbeam-queue +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Concurrent queues.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Thu Nov 12 2020 Fabio Valentini - 0.2.3-1 +- Initial compat package for crossbeam-queue 0.2 diff --git a/sources b/sources new file mode 100644 index 0000000..047d3bb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crossbeam-queue-0.2.3.crate) = f53385dea0a2b0830372ee11b9d393022f501a79631a15696d641a812939faad62b61112f9da9dda381fe69ecc3c91462fad95f329eddb002aa941110297cd85