The package rpms/rust-esphome.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-esphome.git/commit/?id=b94a2....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit b94a2f1f398e6315a7889120cf4243560f40c98e
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Mon Jul 4 20:34:19 2022 -0700
Initial import; Fixes: RHBZ#2011962
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d74a086
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/esphome-0.1.0.crate
diff --git a/esphome-fix-metadata.diff b/esphome-fix-metadata.diff
new file mode 100644
index 0000000..16e45e5
--- /dev/null
+++ b/esphome-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- esphome-0.1.0/Cargo.toml 1970-01-01T00:00:01+00:00
++++ esphome-0.1.0/Cargo.toml 2022-06-29T18:16:24.719260+00:00
+@@ -22,7 +22,7 @@
+ name = "esphome"
+ path = "src/lib.rs"
+ [dependencies.num-derive]
+-version = "0.2"
++version = "0.3"
+
+ [dependencies.num-traits]
+ version = "0.2"
diff --git a/rust-esphome.spec b/rust-esphome.spec
new file mode 100644
index 0000000..7196eb2
--- /dev/null
+++ b/rust-esphome.spec
@@ -0,0 +1,74 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate esphome
+
+Name: rust-%{crate}
+Version: 0.1.0
+Release: %autorelease
+Summary: ESPHome API client for Rust
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/esphome
+Source: %{crates_source}
+# Initial patched metadata
+# Bump num-derive to 0.3:
https://github.com/pixelspark/esphome-rs/pull/1
+Patch0: esphome-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+ESPHome API client for Rust.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENSE.txt
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%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 the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{crate_instdir}/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
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..ee7de96
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (esphome-0.1.0.crate) =
103557e28da3bf1b19600a8ecaa1d1238e6202f3be591982d2997b48daac18a54b5d6723dc7092a6cc89d409e6bd942533b527d051a4d252c93865e7c047ded8