# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate pgp Name: rust-pgp Version: 0.19.0 Release: %autorelease Summary: OpenPGP implementation in Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/pgp Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop benchmark-only criterion dev-dependency # * drop escape_string dev-dependency (not packaged in Fedora) Patch: pgp-fix-metadata.diff # Fedora downstream-only patch: consult # /etc/crypto-policies/back-ends/sequoia.config at signature/decrypt/AEAD # chokepoints and reject algorithms disallowed by the system policy. # Ships a new private module src/crypto/policy.rs; hooks at four sites. # Retired once the upstream Policy trait (plan Phase B) lands. Patch: crypto-policies.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: OpenPGP implementation in 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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.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}+bzip2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bzip2-devel %{_description} This package contains library source intended for building other packages which use the "bzip2" feature of the "%{crate}" crate. %files -n %{name}+bzip2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+getrandom-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+getrandom-devel %{_description} This package contains library source intended for building other packages which use the "getrandom" feature of the "%{crate}" crate. %files -n %{name}+getrandom-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+large-rsa-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+large-rsa-devel %{_description} This package contains library source intended for building other packages which use the "large-rsa" feature of the "%{crate}" crate. %files -n %{name}+large-rsa-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+malformed-artifact-compat-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+malformed-artifact-compat-devel %{_description} This package contains library source intended for building other packages which use the "malformed-artifact-compat" feature of the "%{crate}" crate. %files -n %{name}+malformed-artifact-compat-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