From 8812dff1575c043fc5d3a7d26d5f078d1dbd6241 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 29 Jan 2019 18:03:26 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-block-buffer.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + tests/.fmf/version | 1 + tests/provision.fmf | 5 +++ tests/tests.yml | 13 ++++++++ 6 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 rust-block-buffer.spec create mode 100644 sources create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfc7b6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/block-buffer-0.7.0.crate diff --git a/rust-block-buffer.spec b/rust-block-buffer.spec new file mode 100644 index 0000000..9a76d17 --- /dev/null +++ b/rust-block-buffer.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm +# * Tests are run in infrastructure +%bcond_with check +%global debug_package %{nil} + +%global crate block-buffer + +Name: rust-%{crate} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Fixed size buffer for block processing of data + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/block-buffer +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(block-padding/default) >= 0.1.0 with crate(block-padding/default) < 0.2.0) +BuildRequires: (crate(byte-tools/default) >= 0.3.0 with crate(byte-tools/default) < 0.4.0) +BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) +BuildRequires: (crate(generic-array/default) >= 0.12.0 with crate(generic-array/default) < 0.13.0) + +%global _description \ +Fixed size buffer for block processing of data. + +%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-MIT LICENSE-APACHE +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Jan 27 2019 Igor Gnatenko - 0.7.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..addd856 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (block-buffer-0.7.0.crate) = d2550a960960188d88e9a14e2c7f08e1733b5a70935ce374503b6628b743532f750f418dc66a2294834104364ecf9a458b6657f1b7c5e9409bc19aa628e51d2c diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..70a318b --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-block-buffer