The package rpms/rust-webpki.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-webpki.git/commit/?id=5b55edf7d....
Change: +%ifarch aarch64
Thanks.
Full change: ============
commit 5b55edf7de6db88ca240bb1b8af2bd8281bbd567 Author: Fabio Valentini decathorpe@gmail.com Date: Mon May 10 22:51:01 2021 +0200
initial import (#1958608)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25da463 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/webpki-0.21.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 1fc86d9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-webpki - -The rust-webpki package diff --git a/rust-webpki.spec b/rust-webpki.spec new file mode 100644 index 0000000..6ca3434 --- /dev/null +++ b/rust-webpki.spec @@ -0,0 +1,117 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate webpki + +Name: rust-%{crate} +Version: 0.21.4 +Release: 1%{?dist} +Summary: Web PKI X.509 Certificate Verification + +# Upstream license specification: None +# * webpki itself is licensed under the terms of the ISC license +# * third-party data from chromium is licensed under a 3-Clause BSD license, +# but it is only used for integration tests and not included in RPM packages +License: ISC + +URL: https://crates.io/crates/webpki +Source: %{crates_source} +# Initial patched metadata +# * bump base64 from 0.9 to 0.13. +# https://github.com/briansmith/webpki/pull/230 +Patch0: webpki-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: +Web PKI X.509 Certificate Verification.} + +%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 +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ +# these files are only used by integration tests +%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/third-party/ + +%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}+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 + +%package -n %{name}+trust_anchor_util-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trust_anchor_util-devel %{_description} + +This package contains library source intended for building other packages +which use "trust_anchor_util" feature of "%{crate}" crate. + +%files -n %{name}+trust_anchor_util-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 +%ifarch aarch64 +# some doctests fail to compile on aarch64 +# https://bugzilla.redhat.com/show_bug.cgi?id=1902663 +%cargo_test -- --lib +%else +%cargo_test +%endif +%endif + +%changelog +* Mon May 10 2021 Fabio Valentini decathorpe@gmail.com - 0.21.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9c7174b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (webpki-0.21.4.crate) = 667c9dc1c50a3d99aab53b6a9974f503e5c88f79012b3c94386a321761b96a74cc743a4e3b85d8314c36cef5ef01c2a2faffa80c773be1ba9680af4f21af3119 diff --git a/webpki-fix-metadata.diff b/webpki-fix-metadata.diff new file mode 100644 index 0000000..1bf966a --- /dev/null +++ b/webpki-fix-metadata.diff @@ -0,0 +1,11 @@ +--- webpki-0.21.4/Cargo.toml 2020-12-02T05:22:27+00:00 ++++ webpki-0.21.4/Cargo.toml 2021-04-22T22:46:03.692479+00:00 +@@ -49,7 +49,7 @@ + [dependencies.untrusted] + version = "0.7.1" + [dev-dependencies.base64] +-version = "0.9.1" ++version = "0.13" + + [features] + default = ["std", "trust_anchor_util"]
arch-excludes@lists.fedoraproject.org