The package rpms/rust-console_error_panic_hook.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-console_error_panic_hook.git....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 63b63ddba4109133a92c0cc259d5fd03fd4f7ed5
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Mon May 10 19:52:28 2021 +0200
initial import (#1955948)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7bc64a2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/console_error_panic_hook-0.1.6.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index d0cbb18..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-console_error_panic_hook
-
-The rust-console_error_panic_hook package
diff --git a/console_error_panic_hook-fix-metadata.diff
b/console_error_panic_hook-fix-metadata.diff
new file mode 100644
index 0000000..1daaeec
--- /dev/null
+++ b/console_error_panic_hook-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- console_error_panic_hook-0.1.6/Cargo.toml 1970-01-01T00:00:00+00:00
++++ console_error_panic_hook-0.1.6/Cargo.toml 2021-04-21T08:54:13.085199+00:00
+@@ -19,6 +19,7 @@
+ categories = ["wasm"]
+ license = "Apache-2.0/MIT"
+ repository = "https://github.com/rustwasm/console_error_panic_hook"
++exclude = ["*.png"]
+ [dependencies.cfg-if]
+ version = "0.1.6"
+
diff --git a/rust-console_error_panic_hook.spec b/rust-console_error_panic_hook.spec
new file mode 100644
index 0000000..ac6eccb
--- /dev/null
+++ b/rust-console_error_panic_hook.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate console_error_panic_hook
+
+Name: rust-%{crate}
+Version: 0.1.6
+Release: 1%{?dist}
+Summary: Panic hook for WASM that logs panics to console.error
+
+# Upstream license specification: Apache-2.0/MIT
+#
https://github.com/rustwasm/console_error_panic_hook/commit/a33dcf5
+License: ASL 2.0 or MIT
+URL:
https://crates.io/crates/console_error_panic_hook
+Source: %{crates_source}
+# Initial patched metadata
+# * exclude screenshots from installed files
+Patch0: console_error_panic_hook-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Panic hook for `wasm32-unknown-unknown` that logs panics to `console.error`.}
+
+%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
+%doc README.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
+
+%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
+# skip useless "is README up-to-date" test
+%cargo_test -- -- --skip cargo_readme_up_to_date
+%endif
+
+%changelog
+* Mon May 10 2021 Fabio Valentini <decathorpe(a)gmail.com> - 0.1.6-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fc36991
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (console_error_panic_hook-0.1.6.crate) =
622500b82ce27a1dd33197f54f8c0495aa34b870b96a71fd0fa92cf1f0b0e7d4968b9f6bc5e41c23a145980cbe7a4bc5a7ddd03571e1e4688b2eeb7d146aa5c9