From d54b1b3b09ef8fd8a450871f06e713941746568e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 11 Dec 2019 10:28:00 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-tokio0.1.spec | 400 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + tests/.fmf/version | 1 + tests/provision.fmf | 5 + tests/tests.yml | 13 ++ 6 files changed, 421 insertions(+) create mode 100644 .gitignore create mode 100644 rust-tokio0.1.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..0696dd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tokio-0.1.22.crate diff --git a/rust-tokio0.1.spec b/rust-tokio0.1.spec new file mode 100644 index 0000000..2089da1 --- /dev/null +++ b/rust-tokio0.1.spec @@ -0,0 +1,400 @@ +# Generated by rust2rpm 11 +%bcond_with check +%global debug_package %{nil} + +%global crate tokio + +Name: rust-%{crate}0.1 +Version: 0.1.22 +Release: 1%{?dist} +Summary: Platform for writing asynchronous I/O backed applications + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/tokio +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Event-driven, non-blocking I/O platform for writing asynchronous I/O backed +applications.} + +%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 +%doc CHANGELOG.md README.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}+bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytes-devel %{_description} + +This package contains library source intended for building other packages +which use "bytes" feature of "%{crate}" crate. + +%files -n %{name}+bytes-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+codec-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+codec-devel %{_description} + +This package contains library source intended for building other packages +which use "codec" feature of "%{crate}" crate. + +%files -n %{name}+codec-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+experimental-tracing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+experimental-tracing-devel %{_description} + +This package contains library source intended for building other packages +which use "experimental-tracing" feature of "%{crate}" crate. + +%files -n %{name}+experimental-tracing-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+fs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fs-devel %{_description} + +This package contains library source intended for building other packages +which use "fs" feature of "%{crate}" crate. + +%files -n %{name}+fs-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+io-devel %{_description} + +This package contains library source intended for building other packages +which use "io" feature of "%{crate}" crate. + +%files -n %{name}+io-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+mio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio-devel %{_description} + +This package contains library source intended for building other packages +which use "mio" feature of "%{crate}" crate. + +%files -n %{name}+mio-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+num_cpus-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+num_cpus-devel %{_description} + +This package contains library source intended for building other packages +which use "num_cpus" feature of "%{crate}" crate. + +%files -n %{name}+num_cpus-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+reactor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+reactor-devel %{_description} + +This package contains library source intended for building other packages +which use "reactor" feature of "%{crate}" crate. + +%files -n %{name}+reactor-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+rt-full-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rt-full-devel %{_description} + +This package contains library source intended for building other packages +which use "rt-full" feature of "%{crate}" crate. + +%files -n %{name}+rt-full-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+sync-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sync-devel %{_description} + +This package contains library source intended for building other packages +which use "sync" feature of "%{crate}" crate. + +%files -n %{name}+sync-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tcp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tcp-devel %{_description} + +This package contains library source intended for building other packages +which use "tcp" feature of "%{crate}" crate. + +%files -n %{name}+tcp-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+timer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+timer-devel %{_description} + +This package contains library source intended for building other packages +which use "timer" feature of "%{crate}" crate. + +%files -n %{name}+timer-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-codec-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-codec-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-codec" feature of "%{crate}" crate. + +%files -n %{name}+tokio-codec-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-current-thread-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-current-thread-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-current-thread" feature of "%{crate}" crate. + +%files -n %{name}+tokio-current-thread-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-executor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-executor-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-executor" feature of "%{crate}" crate. + +%files -n %{name}+tokio-executor-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-fs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-fs-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-fs" feature of "%{crate}" crate. + +%files -n %{name}+tokio-fs-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-io-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-io" feature of "%{crate}" crate. + +%files -n %{name}+tokio-io-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-reactor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-reactor-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-reactor" feature of "%{crate}" crate. + +%files -n %{name}+tokio-reactor-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-sync-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-sync-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-sync" feature of "%{crate}" crate. + +%files -n %{name}+tokio-sync-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}+tokio-threadpool-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-threadpool-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-threadpool" feature of "%{crate}" crate. + +%files -n %{name}+tokio-threadpool-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-timer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-timer-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-timer" feature of "%{crate}" crate. + +%files -n %{name}+tokio-timer-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-udp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-udp-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-udp" feature of "%{crate}" crate. + +%files -n %{name}+tokio-udp-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tokio-uds-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-uds-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-uds" feature of "%{crate}" crate. + +%files -n %{name}+tokio-uds-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+tracing-core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tracing-core-devel %{_description} + +This package contains library source intended for building other packages +which use "tracing-core" feature of "%{crate}" crate. + +%files -n %{name}+tracing-core-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+udp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+udp-devel %{_description} + +This package contains library source intended for building other packages +which use "udp" feature of "%{crate}" crate. + +%files -n %{name}+udp-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+uds-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+uds-devel %{_description} + +This package contains library source intended for building other packages +which use "uds" feature of "%{crate}" crate. + +%files -n %{name}+uds-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 +* Wed Dec 11 10:26:53 CET 2019 Igor Gnatenko - 0.1.22-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..36eb144 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tokio-0.1.22.crate) = d92b8527bbeec84bb306686a7d29b705c36b59e9c0995154ed95d483c84952c838691f8c11615f481abb6c4fba470ba8968860a74a88b77dd67ccf659bf4e4e1 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..2948c93 --- /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-tokio0.1