# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate ring Name: rust-ring Version: 0.17.14 Release: %autorelease Summary: Ring API shim backed by ring-native-ossl (system OpenSSL) License: Apache-2.0 URL: https://crates.io/crates/ring Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop features that need unpackaged crates: wasm32_unknown_unknown_js # * declare the dropped features as expected cfg values # (lints.rust.unexpected_cfgs), so rustc does not warn about the code that # still tests them Patch: ring-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Ring API shim backed by ring-native-ossl (system OpenSSL).} %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 %{crate_instdir}/LICENSE %{crate_instdir}/ %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 %{crate_instdir}/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 %{crate_instdir}/Cargo.toml %package -n %{name}+dev_urandom_fallback-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dev_urandom_fallback-devel %{_description} This package contains library source intended for building other packages which use the "dev_urandom_fallback" feature of the "%{crate}" crate. %files -n %{name}+dev_urandom_fallback-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+less-safe-getrandom-custom-or-rdrand-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+less-safe-getrandom-custom-or-rdrand-devel %{_description} This package contains library source intended for building other packages which use the "less-safe-getrandom-custom-or-rdrand" feature of the "%{crate}" crate. %files -n %{name}+less-safe-getrandom-custom-or-rdrand-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+less-safe-getrandom-espidf-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+less-safe-getrandom-espidf-devel %{_description} This package contains library source intended for building other packages which use the "less-safe-getrandom-espidf" feature of the "%{crate}" crate. %files -n %{name}+less-safe-getrandom-espidf-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+slow_tests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+slow_tests-devel %{_description} This package contains library source intended for building other packages which use the "slow_tests" feature of the "%{crate}" crate. %files -n %{name}+slow_tests-devel %ghost %{crate_instdir}/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 %{crate_instdir}/Cargo.toml %package -n %{name}+test_logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test_logging-devel %{_description} This package contains library source intended for building other packages which use the "test_logging" feature of the "%{crate}" crate. %files -n %{name}+test_logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-testing-arm-no-hw-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-testing-arm-no-hw-devel %{_description} This package contains library source intended for building other packages which use the "unstable-testing-arm-no-hw" feature of the "%{crate}" crate. %files -n %{name}+unstable-testing-arm-no-hw-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-testing-arm-no-neon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-testing-arm-no-neon-devel %{_description} This package contains library source intended for building other packages which use the "unstable-testing-arm-no-neon" feature of the "%{crate}" crate. %files -n %{name}+unstable-testing-arm-no-neon-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog