The package rpms/rust-rand0.6.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-rand0.6.git/commit/?id=95c18....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 95c186b4867c4139ce955526e41c5f6dd5385ae9
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sun Aug 4 14:21:06 2019 +0200
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..34629b3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/rand-0.6.5.crate
diff --git a/rand-fix-metadata.diff b/rand-fix-metadata.diff
new file mode 100644
index 0000000..806dc0a
--- /dev/null
+++ b/rand-fix-metadata.diff
@@ -0,0 +1,12 @@
+--- rand-0.6.5/Cargo.toml 1970-01-01T00:00:00+00:00
++++ rand-0.6.5/Cargo.toml 2019-08-04T11:28:37.678317+00:00
+@@ -80,9 +80,6 @@
+ [target."cfg(unix)".dependencies.libc]
+ version = "0.2"
+ default-features = false
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = ["minwindef", "ntsecapi", "profileapi",
"winnt"]
+ [badges.appveyor]
+ repository = "rust-random/rand"
+
diff --git a/rust-rand0.6.spec b/rust-rand0.6.spec
new file mode 100644
index 0000000..c921203
--- /dev/null
+++ b/rust-rand0.6.spec
@@ -0,0 +1,210 @@
+# Generated by rust2rpm 10
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate rand
+
+Name: rust-%{crate}0.6
+Version: 0.6.5
+Release: 1%{?dist}
+Summary: Random number generators and other randomness functionality
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/rand
+Source: %{crates_source}
+# Initial patched metadata
+# * No Windows
+Patch0: rand-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Random number generators and other randomness functionality.}
+
+%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 COPYRIGHT
+%doc README.md CHANGELOG.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}+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}/Cargo.toml
+
+%package -n %{name}+i128_support-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+i128_support-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "i128_support" feature of "%{crate}" crate.
+
+%files -n %{name}+i128_support-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+log-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+log-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "log" feature of "%{crate}" crate.
+
+%files -n %{name}+log-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/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}/Cargo.toml
+
+%package -n %{name}+packed_simd-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+packed_simd-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "packed_simd" feature of "%{crate}" crate.
+
+%files -n %{name}+packed_simd-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+rand_os-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+rand_os-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "rand_os" feature of "%{crate}" crate.
+
+%files -n %{name}+rand_os-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+serde1-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde1-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "serde1" feature of "%{crate}" crate.
+
+%files -n %{name}+serde1-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+simd_support-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+simd_support-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "simd_support" feature of "%{crate}" crate.
+
+%files -n %{name}+simd_support-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+std-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+std-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "std" feature of "%{crate}" crate.
+
+%files -n %{name}+std-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+stdweb-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+stdweb-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "stdweb" feature of "%{crate}" crate.
+
+%files -n %{name}+stdweb-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+wasm-bindgen-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+wasm-bindgen-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "wasm-bindgen" feature of "%{crate}" crate.
+
+%files -n %{name}+wasm-bindgen-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
+* Sun Aug 04 13:28:37 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.6.5-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..3868c18
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (rand-0.6.5.crate) =
2eb84bed29708b8ba109f4329bf6f1cac6caed9d91b2aaf185d68dd2eda73d3fb7be2897d0596fb28352e799ccf92c161ee44599d5cb426ba9c3b8c747831904
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..a6e6000
--- /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-rand0.6