From f12f72a7137be9d83f15ab49ef0742c7a61e331a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jun 01 2019 06:17:58 +0000 Subject: Initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bbd9469 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/actix-utils-0.4.1.crate diff --git a/rust-actix-utils.spec b/rust-actix-utils.spec new file mode 100644 index 0000000..564defd --- /dev/null +++ b/rust-actix-utils.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 9 +%bcond_with check +%global debug_package %{nil} + +%global crate actix-utils + +Name: rust-%{crate} +Version: 0.4.1 +Release: 1%{?dist} +Summary: Actix utils - various actix net related services + +# Upstream license specification: MIT/Apache-2.0 +# https://github.com/actix/actix-net/issues/25 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/actix-utils +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(actix-codec/default) >= 0.1.1 with crate(actix-codec/default) < 0.2.0) +BuildRequires: (crate(actix-service/default) >= 0.4.0 with crate(actix-service/default) < 0.5.0) +BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) +BuildRequires: (crate(either/default) >= 1.5.2 with crate(either/default) < 2.0.0) +BuildRequires: (crate(futures/default) >= 0.1.25 with crate(futures/default) < 0.2.0) +BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) +BuildRequires: (crate(tokio-current-thread/default) >= 0.1.4 with crate(tokio-current-thread/default) < 0.2.0) +BuildRequires: (crate(tokio-timer/default) >= 0.2.8 with crate(tokio-timer/default) < 0.3.0) +%if %{with check} +BuildRequires: (crate(actix-rt/default) >= 0.2.2 with crate(actix-rt/default) < 0.3.0) +%endif + +%global _description %{expand: +Actix utils - various actix net related services.} + +%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 +%doc CHANGES.md +%{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 +* Fri May 31 09:19:17 CEST 2019 Igor Gnatenko - 0.4.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bff6341 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (actix-utils-0.4.1.crate) = 99166ab2185f8a4b5f4a850a5cb050adc6098869a9bbb333ebd68f9a71e1b741854b9cf5841812f8abc2c062d049e64c0ba7ccfd0303da4da0f7b7022fc17e57 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..9df8e83 --- /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-actix-utils