The package rpms/rust-cranelift-wasm.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-cranelift-wasm.git/commit/?i...
https://src.fedoraproject.org/cgit/rpms/rust-cranelift-wasm.git/commit/?i....
Change:
+ExcludeArch: %{power64}
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit e46403ecb7edf68c29bab3946326c87b2bb7bed0
Author: Olivier Lemasle <o.lemasle(a)gmail.com>
Date: Tue Jun 1 12:16:52 2021 +0200
Exclude arch unsupported by Cranelift
diff --git a/rust-cranelift-wasm.spec b/rust-cranelift-wasm.spec
index 3357b4a..7713b8c 100644
--- a/rust-cranelift-wasm.spec
+++ b/rust-cranelift-wasm.spec
@@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.74.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Translator from WebAssembly to Cranelift IR
# Upstream license specification: Apache-2.0 WITH LLVM-exception
@@ -14,6 +14,15 @@ License: ASL 2.0 with exceptions
URL:
https://crates.io/crates/cranelift-wasm
Source: %{crates_source}
+# Cranelift currently only supports x86_64, aarch64 and s390x.
+
+#
https://bugzilla.redhat.com/show_bug.cgi?id=1966344
+ExcludeArch: %{ix86}
+#
https://bugzilla.redhat.com/show_bug.cgi?id=1966346
+ExcludeArch: %{arm32}
+#
https://bugzilla.redhat.com/show_bug.cgi?id=1966347
+ExcludeArch: %{power64}
+
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
@@ -131,5 +140,8 @@ which use "std" feature of "%{crate}" crate.
%endif
%changelog
+* Tue Jun 01 2021 Olivier Lemasle <o.lemasle(a)gmail.com> - 0.74.0-2
+- Exclude arch unsupported by Cranelift
+
* Sat May 22 14:57:54 CEST 2021 Olivier Lemasle <o.lemasle(a)gmail.com> - 0.74.0-1
- Initial package
commit 85792fb4439367daaa39263dfd750b098f465241
Author: Olivier Lemasle <o.lemasle(a)gmail.com>
Date: Tue Jun 1 09:58:57 2021 +0200
Initial import (#1963340)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2919e82
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cranelift-wasm-0.74.0.crate
diff --git a/rust-cranelift-wasm.spec b/rust-cranelift-wasm.spec
new file mode 100644
index 0000000..3357b4a
--- /dev/null
+++ b/rust-cranelift-wasm.spec
@@ -0,0 +1,135 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate cranelift-wasm
+
+Name: rust-%{crate}
+Version: 0.74.0
+Release: 1%{?dist}
+Summary: Translator from WebAssembly to Cranelift IR
+
+# Upstream license specification: Apache-2.0 WITH LLVM-exception
+License: ASL 2.0 with exceptions
+URL:
https://crates.io/crates/cranelift-wasm
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Translator from WebAssembly to Cranelift IR.}
+
+%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
+%license LICENSE
+%{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
+
+%package -n %{name}+core-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+core-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "core" feature of "%{crate}" crate.
+
+%files -n %{name}+core-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+enable-serde-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+enable-serde-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "enable-serde" feature of "%{crate}" crate.
+
+%files -n %{name}+enable-serde-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+hashbrown-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+hashbrown-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "hashbrown" feature of "%{crate}" crate.
+
+%files -n %{name}+hashbrown-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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_no_tilde}/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_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
+%cargo_test
+%endif
+
+%changelog
+* Sat May 22 14:57:54 CEST 2021 Olivier Lemasle <o.lemasle(a)gmail.com> - 0.74.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..7dda851
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cranelift-wasm-0.74.0.crate) =
4400fff694776e4375275451223261b941b85e1d8b04e09a8faeaffdbc74e520affa06c3120aae48be996c7f47c274a7a07beb48273e569aa57b5177bfdbcbb7