The package rpms/rust-unsafe-io.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-unsafe-io.git/commit/?id=740....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 740bea4a0bbe65fbc69236007b6ddb2b14f6086f
Author: Olivier Lemasle <o.lemasle(a)gmail.com>
Date: Mon May 24 19:55:29 2021 +0200
Initial import (#1962887)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..079349d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/unsafe-io-0.6.8.crate
diff --git a/rust-unsafe-io.spec b/rust-unsafe-io.spec
new file mode 100644
index 0000000..d31ccb1
--- /dev/null
+++ b/rust-unsafe-io.spec
@@ -0,0 +1,163 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate unsafe-io
+
+Name: rust-%{crate}
+Version: 0.6.8
+Release: 1%{?dist}
+Summary: Non-owning unsafe I/O
+
+# Upstream license specification: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
+License: ASL 2.0 with exceptions or ASL 2.0 or MIT
+URL:
https://crates.io/crates/unsafe-io
+Source: %{crates_source}
+# Initial patched metadata
+# Remove windows-only crate
+Patch0: unsafe-io-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Non-owning unsafe I/O.}
+
+%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-APACHE LICENSE-MIT COPYRIGHT
+%license LICENSE-Apache-2.0_WITH_LLVM-exception
+%{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}+async-std-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+async-std-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "async-std" feature of "%{crate}" crate.
+
+%files -n %{name}+async-std-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+mio-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+mio-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "mio" feature of "%{crate}" crate.
+
+%files -n %{name}+mio-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+os_pipe-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+os_pipe-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "os_pipe" feature of "%{crate}" crate.
+
+%files -n %{name}+os_pipe-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+socket2-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+socket2-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "socket2" feature of "%{crate}" crate.
+
+%files -n %{name}+socket2-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+tokio-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+use_mio_net-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+use_mio_net-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "use_mio_net" feature of "%{crate}" crate.
+
+%files -n %{name}+use_mio_net-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+use_mio_os_ext-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+use_mio_os_ext-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "use_mio_os_ext" feature of "%{crate}" crate.
+
+%files -n %{name}+use_mio_os_ext-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
+* Thu May 20 19:42:19 CEST 2021 Olivier Lemasle <o.lemasle(a)gmail.com> - 0.6.8-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..d5cf47d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (unsafe-io-0.6.8.crate) =
17b0d11309dccb38daf952cb390efc3935d277aaa6736374edfa1f7e15257f8c20d703a91dc3c92cffde6e890262e5cb88cc999a2f1799a7d3a94a8731fa2428
diff --git a/unsafe-io-fix-metadata.diff b/unsafe-io-fix-metadata.diff
new file mode 100644
index 0000000..1116683
--- /dev/null
+++ b/unsafe-io-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- unsafe-io-0.6.8/Cargo.toml 1970-01-01T00:00:00+00:00
++++ unsafe-io-0.6.8/Cargo.toml 2021-05-20T17:42:19.099465+00:00
+@@ -48,8 +48,5 @@
+ [features]
+ use_mio_net = ["mio", "mio/net"]
+ use_mio_os_ext = ["mio", "mio/os-ext"]
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.9"
+-features = ["consoleapi", "handleapi", "processenv",
"std", "winbase", "winerror"]
+ [badges.maintenance]
+ status = "actively-developed"