The package rpms/rust-fatfs.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-fatfs.git/commit/?id=322fc42...
https://src.fedoraproject.org/cgit/rpms/rust-fatfs.git/commit/?id=c1e1b2a....
Change:
+%ifarch i686
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 2dfd165576fbd45634ca7cbdf28d6666a19c385f
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 23 04:02:51 2022 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit 322fc42c79354fb34b8564a2677af436228d8914
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Sun Feb 13 21:43:40 2022 -0800
Gate out broken test on i686
diff --git a/rust-fatfs.spec b/rust-fatfs.spec
index 2b832a7..753c4d4 100644
--- a/rust-fatfs.spec
+++ b/rust-fatfs.spec
@@ -111,8 +111,12 @@ cp -p %SOURCE1 %SOURCE2 %SOURCE3 resources
%if %{with check}
%check
+%ifarch i686
+%cargo_test -- -- --skip test_format_512mb_512sec
+%else
%cargo_test
%endif
+%endif
%changelog
%autochangelog
commit c1e1b2a1ff95c318c7cfd7259be81cd66dbb6883
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Sun Feb 13 08:26:45 2022 -0800
Initial import; Fixes: RHBZ#1983876
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..50244ca
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/fat12.img
+/fat16.img
+/fat32.img
+/fatfs-0.3.5.crate
diff --git a/fatfs-fix-metadata.diff b/fatfs-fix-metadata.diff
new file mode 100644
index 0000000..4e60d91
--- /dev/null
+++ b/fatfs-fix-metadata.diff
@@ -0,0 +1,13 @@
+--- fatfs-0.3.5/Cargo.toml 2021-01-23T22:50:43+00:00
++++ fatfs-0.3.5/Cargo.toml 2022-02-13T16:18:49.828038+00:00
+@@ -32,10 +32,6 @@
+ version = "0.4"
+ optional = true
+
+-[dependencies.core_io]
+-version = "0.1"
+-optional = true
+-
+ [dependencies.log]
+ version = "0.4"
+ [dev-dependencies.env_logger]
diff --git a/rust-fatfs.spec b/rust-fatfs.spec
new file mode 100644
index 0000000..2b832a7
--- /dev/null
+++ b/rust-fatfs.spec
@@ -0,0 +1,118 @@
+# Generated by rust2rpm 20
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate fatfs
+%global forgeurl
https://github.com/rafalh/rust-fatfs
+
+Name: rust-%{crate}
+Version: 0.3.5
+Release: %autorelease
+Summary: FAT filesystem library
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/fatfs
+Source: %{crates_source}
+Source1: %{forgeurl}/raw/v%{version}/resources/fat12.img
+Source2: %{forgeurl}/raw/v%{version}/resources/fat16.img
+Source3: %{forgeurl}/raw/v%{version}/resources/fat32.img
+# Initial patched metadata
+# Drop core_io optional dependency
+Patch0: fatfs-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+FAT filesystem library.}
+
+%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 LICENSE.txt
+%doc examples CHANGELOG.md README.md TODO.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 the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+alloc-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+alloc-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "alloc" feature of the "%{crate}" crate.
+
+%files -n %{name}+alloc-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+chrono-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+chrono-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "chrono" feature of the "%{crate}" crate.
+
+%files -n %{name}+chrono-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 the "std" feature of the "%{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
+%if %{with check}
+mkdir resources
+cp -p %SOURCE1 %SOURCE2 %SOURCE3 resources
+%endif
+
+%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..0549e71
--- /dev/null
+++ b/sources
@@ -0,0 +1,4 @@
+SHA512 (fat12.img) =
d7509d7fc1382b2cddad8854a6dfbecf7bec0fbc97bc76933ae2cc46290aaf783809661ff6cf48e61899af36f6d2e45629e907645b8c95f22a68251e3567eed4
+SHA512 (fat16.img) =
5fbf6d3885c486f51410c679ad7ebfd54202c63779e5b78637f3911b8986dde6cf7bc5a10e03e6e40ac8c3d97fb87c7e5028b668447ff6ce09753732b3b7a88b
+SHA512 (fat32.img) =
4cc62b9373084ed1ab1392c2bd0a16be60f1a32fac1398c651d6bda9234accb6fe7ea53dfdb2e6e45d9b9ebcc22aa70c3b293adfd112ef64ac4af38d93c8a18f
+SHA512 (fatfs-0.3.5.crate) =
823165b7c8c06cad365aa41ccbebbb2b7268cbe497d41a043c813f7451d455bf23a0c93acd95ca2fdf1ca167536b58ded8fbf60c44f65c6e79f07cbed59d5d61