From 43cd07fd21a906d2b82438df81c007650495dee7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 18:36:47 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-slab.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 rust-slab.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..db98d06 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/slab-0.4.0.crate diff --git a/rust-slab.spec b/rust-slab.spec new file mode 100644 index 0000000..bd3d66d --- /dev/null +++ b/rust-slab.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate slab + +Name: rust-%{crate} +Version: 0.4.0 +Release: 1%{?dist} +Summary: Pre-allocated storage for a uniform data type + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/slab +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Pre-allocated storage for a uniform data type. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 0.4.0-1 +- Update to 0.4.0 + +* Fri Jun 16 2017 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ebe5fc3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (slab-0.4.0.crate) = 70c08eb6d465f3c619ad841e3e3aade47099dcbdc35b48e1f4d172565e0d4027f6ab94b5c53d49b836103bc364e121fe94656f730474b77990745dfda4be2cdc