The package rpms/rust-rustls-native-certs.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-rustls-native-certs.git/comm....
Change:
+ExcludeArch: ppc64le s390x
Thanks.
Full change:
============
commit 52543868642257bc147395df756bb315323cce4a
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Fri Jun 11 19:54:30 2021 +0200
initial import (#1968630)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c9e15c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/rustls-native-certs-0.5.0.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 0991bd9..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-rustls-native-certs
-
-The rust-rustls-native-certs package
diff --git a/rust-rustls-native-certs.spec b/rust-rustls-native-certs.spec
new file mode 100644
index 0000000..5fd82c4
--- /dev/null
+++ b/rust-rustls-native-certs.spec
@@ -0,0 +1,100 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate rustls-native-certs
+
+Name: rust-%{crate}
+Version: 0.5.0
+Release: 1%{?dist}
+Summary: Allow rustls to use the platform native certificate store
+
+# Upstream license specification: Apache-2.0/ISC/MIT
+License: ASL 2.0 or ISC or MIT
+URL:
https://crates.io/crates/rustls-native-certs
+Source: %{crates_source}
+# Initial patched metadata
+# * drop windows- and mac OS-specific dependencies
+Patch0: rustls-native-certs-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+# ring is not available on ppc64le and s390x
+ExcludeArch: ppc64le s390x
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Rustls-native-certs allows rustls to use the platform native certificate store.}
+
+%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
+%license LICENSE LICENSE-APACHE LICENSE-ISC LICENSE-MIT
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/{admin/,integration-tests/}
+
+%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}+rustls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+rustls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "rustls" feature of "%{crate}" crate.
+
+%files -n %{name}+rustls-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 tests that require internet connectivity
+%cargo_test -- -- \
+ --skip amazon \
+ --skip apple \
+ --skip ebay \
+ --skip facebook \
+ --skip google \
+ --skip netflix
+%endif
+
+%changelog
+* Mon Jun 07 2021 Fabio Valentini <decathorpe(a)gmail.com> - 0.5.0-1
+- Initial package
diff --git a/rustls-native-certs-fix-metadata.diff
b/rustls-native-certs-fix-metadata.diff
new file mode 100644
index 0000000..ea97d4d
--- /dev/null
+++ b/rustls-native-certs-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- rustls-native-certs-0.5.0/Cargo.toml 2020-11-22T14:23:18+00:00
++++ rustls-native-certs-0.5.0/Cargo.toml 2021-04-23T09:32:55.268672+00:00
+@@ -40,7 +40,3 @@
+ default = ["rustls"]
+ [target."cfg(all(unix, not(target_os =
\"macos\")))".dependencies.openssl-probe]
+ version = "0.1.2"
+-[target."cfg(target_os =
\"macos\")".dependencies.security-framework]
+-version = "2.0.0"
+-[target."cfg(windows)".dependencies.schannel]
+-version = "0.1.15"
diff --git a/sources b/sources
new file mode 100644
index 0000000..0da8f8c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (rustls-native-certs-0.5.0.crate) =
55ec5d034a4ca3fbff5255fdffd79c0abbcc9f767dffa18d48fd667c262f60dd67cd48c8aa8f1738e580a07e9a6bcb3375479b072d1e18ce6aaf8da32071ee41