# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate ed25519-dalek Name: rust-ed25519-dalek Version: 2.1.1 Release: %autorelease Summary: Fast and efficient ed25519 EdDSA key generations, signing, and verification License: BSD-3-Clause URL: https://crates.io/crates/ed25519-dalek Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency Patch: ed25519-dalek-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Fast and efficient ed25519 EdDSA key generations, signing, and verification in pure Rust.} %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 %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{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}+asm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+asm-devel %{_description} This package contains library source intended for building other packages which use the "asm" feature of the "%{crate}" crate. %files -n %{name}+asm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+digest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+digest-devel %{_description} This package contains library source intended for building other packages which use the "digest" feature of the "%{crate}" crate. %files -n %{name}+digest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-devel %{_description} This package contains library source intended for building other packages which use the "fast" feature of the "%{crate}" crate. %files -n %{name}+fast-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hazmat-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hazmat-devel %{_description} This package contains library source intended for building other packages which use the "hazmat" feature of the "%{crate}" crate. %files -n %{name}+hazmat-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy_compatibility-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+legacy_compatibility-devel %{_description} This package contains library source intended for building other packages which use the "legacy_compatibility" feature of the "%{crate}" crate. %files -n %{name}+legacy_compatibility-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pem-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pem-devel %{_description} This package contains library source intended for building other packages which use the "pem" feature of the "%{crate}" crate. %files -n %{name}+pem-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pkcs8-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pkcs8-devel %{_description} This package contains library source intended for building other packages which use the "pkcs8" feature of the "%{crate}" crate. %files -n %{name}+pkcs8-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand_core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rand_core-devel %{_description} This package contains library source intended for building other packages which use the "rand_core" feature of the "%{crate}" crate. %files -n %{name}+rand_core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+signature-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+signature-devel %{_description} This package contains library source intended for building other packages which use the "signature" feature of the "%{crate}" crate. %files -n %{name}+signature-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}+zeroize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zeroize-devel %{_description} This package contains library source intended for building other packages which use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-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 # * skip tests that rely on large test vectors %cargo_test -- -- --exact --skip vectors::against_reference_implementation --skip check_validation_criteria --skip find_validation_criteria %endif %changelog %autochangelog