diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d518fcb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hashbrown-0.5.0.crate diff --git a/rust-hashbrown0.5.spec b/rust-hashbrown0.5.spec new file mode 100644 index 0000000..3853a45 --- /dev/null +++ b/rust-hashbrown0.5.spec @@ -0,0 +1,159 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate hashbrown + +Name: rust-%{crate}0.5 +Version: 0.5.0 +Release: 1%{?dist} +Summary: Rust port of Google's SwissTable hash map + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/hashbrown +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Rust port of Google's SwissTable hash map.} + +%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 CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+compiler_builtins-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compiler_builtins-devel %{_description} + +This package contains library source intended for building other packages +which use "compiler_builtins" feature of "%{crate}" crate. + +%files -n %{name}+compiler_builtins-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+core-devel %{_description} + +This package contains library source intended for building other packages +which use "core" feature of "%{crate}" crate. + +%files -n %{name}+core-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages +which use "nightly" feature of "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rayon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rayon-devel %{_description} + +This package contains library source intended for building other packages +which use "rayon" feature of "%{crate}" crate. + +%files -n %{name}+rayon-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustc-dep-of-std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc-dep-of-std-devel %{_description} + +This package contains library source intended for building other packages +which use "rustc-dep-of-std" feature of "%{crate}" crate. + +%files -n %{name}+rustc-dep-of-std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Fri Dec 20 20:56:29 CET 2019 Igor Gnatenko - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..a44c2b2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hashbrown-0.5.0.crate) = 96c878d0f9dd70eddb14be2c42df955956a334e768a021f6e14369244c9b0f199182566181d4cbdf137adf040f5a397a57d9ab3d503470fb3412f9edb44b2e01 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..d96b6a7 --- /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-hashbrown0.5