The package rpms/rust-serde-xml-rs.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-serde-xml-rs.git/commit/?id=....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 671a3792d005f9befa8c8b7b4f3198002ec979a6
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Apr 27 14:34:38 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..b54c621
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/serde-xml-rs-0.3.1.crate
diff --git a/rust-serde-xml-rs.spec b/rust-serde-xml-rs.spec
new file mode 100644
index 0000000..83071a8
--- /dev/null
+++ b/rust-serde-xml-rs.spec
@@ -0,0 +1,105 @@
+# Generated by rust2rpm
+#
https://github.com/RReverser/serde-xml-rs/issues/101
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate serde-xml-rs
+
+Name: rust-%{crate}
+Version: 0.3.1
+Release: 1%{?dist}
+Summary: xml-rs based deserializer for Serde (compatible with 0.9+)
+
+License: MIT
+URL:
https://crates.io/crates/serde-xml-rs
+Source: %{crates_source}
+# Initial patched metadata
+Patch0: serde-xml-rs-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0)
+BuildRequires: (crate(error-chain/default) >= 0.12.0 with crate(error-chain/default)
< 0.13.0)
+BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
+BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
+BuildRequires: (crate(xml-rs/default) >= 0.8.0 with crate(xml-rs/default) <
0.9.0)
+%if %{with check}
+BuildRequires: (crate(docmatic/default) >= 0.1.2 with crate(docmatic/default) <
0.2.0)
+BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default)
< 2.0.0)
+BuildRequires: (crate(simple_logger/default) >= 1.0.1 with
crate(simple_logger/default) < 2.0.0)
+%endif
+
+%global _description \
+xml-rs based deserializer for Serde (compatible with 0.9+).
+
+%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 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}+legacy-support-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+legacy-support-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "legacy-support" feature of "%{crate}" crate.
+
+%files -n %{name}+legacy-support-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+with-backtrace-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+with-backtrace-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "with-backtrace" feature of "%{crate}" crate.
+
+%files -n %{name}+with-backtrace-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
+* Sat Apr 27 09:30:29 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.3.1-1
+- Initial package
diff --git a/serde-xml-rs-fix-metadata.diff b/serde-xml-rs-fix-metadata.diff
new file mode 100644
index 0000000..7b69b90
--- /dev/null
+++ b/serde-xml-rs-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- serde-xml-rs-0.3.1/Cargo.toml 1970-01-01T00:00:00+00:00
++++ serde-xml-rs-0.3.1/Cargo.toml 2019-04-27T07:30:29.016893+00:00
+@@ -18,7 +18,7 @@
+ license = "MIT"
+ repository = "https://github.com/RReverser/serde-xml-rs"
+ [dependencies.error-chain]
+-version = "0.10.0"
++version = "0.12"
+ default-features = false
+
+ [dependencies.log]
diff --git a/sources b/sources
new file mode 100644
index 0000000..5bd3426
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (serde-xml-rs-0.3.1.crate) =
f85a7040a9f91acdbb386a3ed99e3401e568884e41bdd611880021ab5fc9d5e2469419f5ac03059deb7a78c080340ab2731db676805617549f328ba6ebe1fada
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..c33b680
--- /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-serde-xml-rs