# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate wecanencrypt Name: rust-wecanencrypt Version: 0.15.0 Release: %autorelease Summary: Simple Rust OpenPGP library for encryption, signing, and key management License: MIT URL: https://crates.io/crates/wecanencrypt Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax rusqlite from 0.39 to 0.38 (Fedora ships 0.38) and drop the # "bundled" feature so we link against the system libsqlite3 Patch: wecanencrypt-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(sqlite3) %global _description %{expand: Simple Rust OpenPGP library for encryption, signing, and key management.} %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 # FIXME: no license files detected %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}+aes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aes-devel %{_description} This package contains library source intended for building other packages which use the "aes" feature of the "%{crate}" crate. %files -n %{name}+aes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+aes-kw-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aes-kw-devel %{_description} This package contains library source intended for building other packages which use the "aes-kw" feature of the "%{crate}" crate. %files -n %{name}+aes-kw-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+card-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+card-devel %{_description} This package contains library source intended for building other packages which use the "card" feature of the "%{crate}" crate. %files -n %{name}+card-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+card-backend-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+card-backend-devel %{_description} This package contains library source intended for building other packages which use the "card-backend" feature of the "%{crate}" crate. %files -n %{name}+card-backend-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+card-backend-pcsc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+card-backend-pcsc-devel %{_description} This package contains library source intended for building other packages which use the "card-backend-pcsc" feature of the "%{crate}" crate. %files -n %{name}+card-backend-pcsc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+card-external-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+card-external-devel %{_description} This package contains library source intended for building other packages which use the "card-external" feature of the "%{crate}" crate. %files -n %{name}+card-external-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+card-pcsc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+card-pcsc-devel %{_description} This package contains library source intended for building other packages which use the "card-pcsc" feature of the "%{crate}" crate. %files -n %{name}+card-pcsc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dane-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dane-devel %{_description} This package contains library source intended for building other packages which use the "dane" feature of the "%{crate}" crate. %files -n %{name}+dane-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}+draft-pqc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+draft-pqc-devel %{_description} This package contains library source intended for building other packages which use the "draft-pqc" feature of the "%{crate}" crate. %files -n %{name}+draft-pqc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hickory-proto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hickory-proto-devel %{_description} This package contains library source intended for building other packages which use the "hickory-proto" feature of the "%{crate}" crate. %files -n %{name}+hickory-proto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hkdf-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hkdf-devel %{_description} This package contains library source intended for building other packages which use the "hkdf" feature of the "%{crate}" crate. %files -n %{name}+hkdf-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+keystore-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+keystore-devel %{_description} This package contains library source intended for building other packages which use the "keystore" feature of the "%{crate}" crate. %files -n %{name}+keystore-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+network-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+network-devel %{_description} This package contains library source intended for building other packages which use the "network" feature of the "%{crate}" crate. %files -n %{name}+network-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+openpgp-card-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openpgp-card-devel %{_description} This package contains library source intended for building other packages which use the "openpgp-card" feature of the "%{crate}" crate. %files -n %{name}+openpgp-card-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+reqwest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+reqwest-devel %{_description} This package contains library source intended for building other packages which use the "reqwest" feature of the "%{crate}" crate. %files -n %{name}+reqwest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rusqlite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rusqlite-devel %{_description} This package contains library source intended for building other packages which use the "rusqlite" feature of the "%{crate}" crate. %files -n %{name}+rusqlite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+secrecy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+secrecy-devel %{_description} This package contains library source intended for building other packages which use the "secrecy" feature of the "%{crate}" crate. %files -n %{name}+secrecy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sha1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sha1-devel %{_description} This package contains library source intended for building other packages which use the "sha1" feature of the "%{crate}" crate. %files -n %{name}+sha1-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