diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bcbdd69 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/actix-0.8.3.crate diff --git a/rust-actix.spec b/rust-actix.spec new file mode 100644 index 0000000..70cea55 --- /dev/null +++ b/rust-actix.spec @@ -0,0 +1,163 @@ +# Generated by rust2rpm 9 +%bcond_with check +%global debug_package %{nil} + +%global crate actix + +Name: rust-%{crate} +Version: 0.8.3 +Release: 1%{?dist} +Summary: Actor framework for Rust + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/actix +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(actix-http/default) >= 0.2.0 with crate(actix-http/default) < 0.3.0) +BuildRequires: (crate(actix-rt/default) >= 0.2.2 with crate(actix-rt/default) < 0.3.0) +BuildRequires: (crate(actix_derive/default) >= 0.4.0 with crate(actix_derive/default) < 0.5.0) +BuildRequires: (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0) +BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) +BuildRequires: (crate(crossbeam-channel/default) >= 0.3.0 with crate(crossbeam-channel/default) < 0.4.0) +BuildRequires: (crate(derive_more/default) >= 0.14.0 with crate(derive_more/default) < 0.15.0) +BuildRequires: (crate(futures/default) >= 0.1.25 with crate(futures/default) < 0.2.0) +BuildRequires: (crate(hashbrown/default) >= 0.3.0 with crate(hashbrown/default) < 0.4.0) +BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 2.0.0) +BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) +BuildRequires: (crate(parking_lot/default) >= 0.8.0 with crate(parking_lot/default) < 0.9.0) +BuildRequires: (crate(smallvec/default) >= 0.6.0 with crate(smallvec/default) < 0.7.0) +BuildRequires: (crate(tokio-codec/default) >= 0.1.0 with crate(tokio-codec/default) < 0.2.0) +BuildRequires: (crate(tokio-executor/default) >= 0.1.0 with crate(tokio-executor/default) < 0.2.0) +BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0) +BuildRequires: (crate(tokio-tcp/default) >= 0.1.0 with crate(tokio-tcp/default) < 0.2.0) +BuildRequires: (crate(tokio-timer/default) >= 0.2.8 with crate(tokio-timer/default) < 0.3.0) +BuildRequires: (crate(trust-dns-resolver) >= 0.11.0 with crate(trust-dns-resolver) < 0.12.0) +%if %{with check} +BuildRequires: (crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0) +%endif + +%global _description %{expand: +Actor framework for Rust.} + +%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 +%doc README.md CHANGES.md MIGRATION.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 + +%package -n %{name}+actix-http-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+actix-http-devel %{_description} + +This package contains library source intended for building other packages +which use "actix-http" feature of "%{crate}" crate. + +%files -n %{name}+actix-http-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+http-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+http-devel %{_description} + +This package contains library source intended for building other packages +which use "http" feature of "%{crate}" crate. + +%files -n %{name}+http-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+mailbox_assert-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mailbox_assert-devel %{_description} + +This package contains library source intended for building other packages +which use "mailbox_assert" feature of "%{crate}" crate. + +%files -n %{name}+mailbox_assert-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+resolver-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+resolver-devel %{_description} + +This package contains library source intended for building other packages +which use "resolver" feature of "%{crate}" crate. + +%files -n %{name}+resolver-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-tcp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-tcp-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-tcp" feature of "%{crate}" crate. + +%files -n %{name}+tokio-tcp-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+trust-dns-resolver-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trust-dns-resolver-devel %{_description} + +This package contains library source intended for building other packages +which use "trust-dns-resolver" feature of "%{crate}" crate. + +%files -n %{name}+trust-dns-resolver-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 +* Thu May 30 18:30:27 CEST 2019 Igor Gnatenko - 0.8.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..1182f47 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (actix-0.8.3.crate) = cf30034bbf03e18d52837934ea342823fb263b75e2a063a9ae78a347752f1e8fba316cad64c181489010f98b52a3aaa0ba171d7581604ea738b94c07a555214e 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..fc5bf97 --- /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