|
|
@ -4,6 +4,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
%global crate ring
|
|
|
|
%global crate ring
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# compile and run tests only on supported architectures
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1869980
|
|
|
|
|
|
|
|
%global supported_arches x86_64 %{ix86} aarch64 %{arm}
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-ring
|
|
|
|
Name: rust-ring
|
|
|
|
Version: 0.16.20
|
|
|
|
Version: 0.16.20
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
@ -20,10 +24,6 @@ Patch: ring-fix-metadata-auto.diff
|
|
|
|
# * set package.license in metadata to match package license
|
|
|
|
# * set package.license in metadata to match package license
|
|
|
|
Patch: ring-fix-metadata.diff
|
|
|
|
Patch: ring-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
# * ring does not support ppc64le and s390x:
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1869980
|
|
|
|
|
|
|
|
ExcludeArch: ppc64le s390x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
@ -161,17 +161,21 @@ use the "wasm32_c" feature of the "%{crate}" crate.
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%ifarch %{supported_arches}
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
%ifarch %{supported_arches}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# * files needed for integration tests are not included in published crates
|
|
|
|
# * files needed for integration tests are not included in published crates
|
|
|
|
%cargo_test -- --lib
|
|
|
|
%cargo_test -- --lib
|
|
|
|
%cargo_test -- --doc
|
|
|
|
%cargo_test -- --doc
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
%autochangelog
|
|
|
|