The package rpms/rust-sval.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-sval.git/commit/?id=747e6df8....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 747e6df8e3dc85755d4d6cc7aa276f7c38f41236
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Mon Jul 29 11:09:20 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..f8fc72d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/sval-0.4.3.crate
diff --git a/rust-sval.spec b/rust-sval.spec
new file mode 100644
index 0000000..3557f8b
--- /dev/null
+++ b/rust-sval.spec
@@ -0,0 +1,198 @@
+# Generated by rust2rpm 10
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate sval
+
+Name: rust-%{crate}
+Version: 0.4.3
+Release: 1%{?dist}
+Summary: No-std, object-safe serialization framework
+
+# Upstream license specification: Apache-2.0 OR MIT
+License: ASL 2.0 or MIT
+URL:
https://crates.io/crates/sval
+Source: %{crates_source}
+# Initial patched metadata
+# * Exclude CI files,
https://github.com/sval-rs/sval/pull/62
+Patch0: sval-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+No-std, object-safe serialization framework.}
+
+%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
+%{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}+arbitrary-depth-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+arbitrary-depth-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "arbitrary-depth" feature of "%{crate}" crate.
+
+%files -n %{name}+arbitrary-depth-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+derive-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+derive-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "derive" feature of "%{crate}" crate.
+
+%files -n %{name}+derive-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+fmt-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+fmt-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "fmt" feature of "%{crate}" crate.
+
+%files -n %{name}+fmt-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/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}/Cargo.toml
+
+%package -n %{name}+serde_no_std-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde_no_std-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "serde_no_std" feature of "%{crate}" crate.
+
+%files -n %{name}+serde_no_std-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+serde_std-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde_std-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "serde_std" feature of "%{crate}" crate.
+
+%files -n %{name}+serde_std-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+smallvec-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+smallvec-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "smallvec" feature of "%{crate}" crate.
+
+%files -n %{name}+smallvec-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}+sval_derive-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+sval_derive-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "sval_derive" feature of "%{crate}" crate.
+
+%files -n %{name}+sval_derive-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+test-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+test-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "test" feature of "%{crate}" crate.
+
+%files -n %{name}+test-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
+* Mon Jul 29 06:59:59 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.4.3-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..c313a30
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (sval-0.4.3.crate) =
648593b7fbe99b5bd90e254ad1517998698f1b3cf12dfc5f202e613eded3a689d9b830b29aa2d4924bdf4588257a46120c276ed54dc4e0355999c3e539487bcb
diff --git a/sval-fix-metadata.diff b/sval-fix-metadata.diff
new file mode 100644
index 0000000..642696b
--- /dev/null
+++ b/sval-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- sval-0.4.3/Cargo.toml 1970-01-01T00:00:00+00:00
++++ sval-0.4.3/Cargo.toml 2019-07-29T04:59:59.668117+00:00
+@@ -15,7 +15,7 @@
+ name = "sval"
+ version = "0.4.3"
+ authors = ["Ashley Mannix <ashleymannix(a)live.com.au>"]
+-exclude = [".travis.yml"]
++exclude = [".travis.yml", "ci/*"]
+ description = "A no-std, object-safe serialization framework"
+ documentation = "https://docs.rs/sval"
+ readme = "README.md"
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..9de25c8
--- /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-sval