The package rpms/rust-linux-loader.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-linux-loader.git/commit/?id=....
Change:
+ExclusiveArch: aarch64 x86_64
Thanks.
Full change:
============
commit fe9fc2a6817c4ff5d1ad7dfb3ff1ce81228daa26
Author: David Michael <fedora.dm0(a)gmail.com>
Date: Tue Mar 28 11:10:47 2023 -0400
Initial import. (fedora#2181025)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a669c07
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/linux-loader-0.8.1.crate
diff --git a/linux-loader-fix-metadata.diff b/linux-loader-fix-metadata.diff
new file mode 100644
index 0000000..1331d1b
--- /dev/null
+++ b/linux-loader-fix-metadata.diff
@@ -0,0 +1,20 @@
+--- linux-loader-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00
++++ linux-loader-0.8.1/Cargo.toml 2023-03-24T13:34:28.241470+00:00
+@@ -21,6 +21,7 @@
+ keywords = ["kernel"]
+ license = "Apache-2.0 AND BSD-3-Clause"
+ repository = "https://github.com/rust-vmm/linux-loader"
++exclude = ["/CODEOWNERS", "/coverage_config*", "/docs"]
+
+ [profile.bench]
+ lto = true
+@@ -36,9 +37,6 @@
+ [dependencies.vm-memory]
+ version = "0.10.0"
+
+-[dev-dependencies.criterion]
+-version = "0.3.5"
+-
+ [dev-dependencies.vm-memory]
+ version = "0.10.0"
+ features = ["backend-mmap"]
diff --git a/rust-linux-loader.spec b/rust-linux-loader.spec
new file mode 100644
index 0000000..c93851a
--- /dev/null
+++ b/rust-linux-loader.spec
@@ -0,0 +1,114 @@
+# Generated by rust2rpm 24
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate linux-loader
+
+Name: rust-linux-loader
+Version: 0.8.1
+Release: %autorelease
+Summary: Linux kernel image loading crate
+
+License: Apache-2.0 AND BSD-3-Clause
+URL:
https://crates.io/crates/linux-loader
+Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * remove criterion dependency, only for unused benchmarks
+# * exclude extra docs and maintainer-only files from the package
+Patch: linux-loader-fix-metadata.diff
+
+BuildRequires: rust-packaging >= 21
+
+# Currently only these architectures are supported. See the README.
+ExclusiveArch: aarch64 x86_64
+
+%global _description %{expand:
+A Linux kernel image loading crate.}
+
+%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-APACHE
+%license %{crate_instdir}/LICENSE-BSD-3-Clause
+%doc %{crate_instdir}/CHANGELOG.md
+%doc %{crate_instdir}/DESIGN.md
+%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
+
+%package -n %{name}+bzimage-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+bzimage-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "bzimage" feature of the "%{crate}" crate.
+
+%files -n %{name}+bzimage-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+elf-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+elf-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "elf" feature of the "%{crate}" crate.
+
+%files -n %{name}+elf-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+pe-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+pe-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "pe" feature of the "%{crate}" crate.
+
+%files -n %{name}+pe-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..b19cb50
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (linux-loader-0.8.1.crate) =
9dab1244c542ffeefb54162f7a7d45dfa0f8118ac3cf1217dd1fb97a07e6680667c069040ce10586ea1d2d29eaa2c5eeff18d61e2cef6583808054ac76e9d920