# Generated by rust2rpm 25 %bcond_without check %global crate rpki Name: rust-rpki Version: 0.17.2 Release: %autorelease Summary: Library for validating and creating RPKI data License: BSD-3-Clause URL: https://crates.io/crates/rpki Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * bump quick-xml from 0.29.0 to 0.31.0 Patch: rpki-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library for validating and creating RPKI data.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 OR MIT # BSD-3-Clause # ISC # ISC AND MIT AND OpenSSL # MIT # MIT OR Apache-2.0 License: BSD-3-Clause AND (Apache-2.0 OR MIT) AND ISC AND (ISC AND MIT AND OpenSSL) AND MIT # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc Changelog.md %doc README.md %{_bindir}/readcer %{_bindir}/readmft %{_bindir}/readroa %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}+__windows_ci_all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+__windows_ci_all-devel %{_description} This package contains library source intended for building other packages which use the "__windows_ci_all" feature of the "%{crate}" crate. %files -n %{name}+__windows_ci_all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+arbitrary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bcder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bcder-devel %{_description} This package contains library source intended for building other packages which use the "bcder" feature of the "%{crate}" crate. %files -n %{name}+bcder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ca-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ca-devel %{_description} This package contains library source intended for building other packages which use the "ca" feature of the "%{crate}" crate. %files -n %{name}+ca-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compat-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compat-devel %{_description} This package contains library source intended for building other packages which use the "compat" feature of the "%{crate}" crate. %files -n %{name}+compat-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crypto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crypto-devel %{_description} This package contains library source intended for building other packages which use the "crypto" feature of the "%{crate}" crate. %files -n %{name}+crypto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-util-devel %{_description} This package contains library source intended for building other packages which use the "futures-util" feature of the "%{crate}" crate. %files -n %{name}+futures-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-devel %{_description} This package contains library source intended for building other packages which use the "openssl" feature of the "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quick-xml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quick-xml-devel %{_description} This package contains library source intended for building other packages which use the "quick-xml" feature of the "%{crate}" crate. %files -n %{name}+quick-xml-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+repository-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+repository-devel %{_description} This package contains library source intended for building other packages which use the "repository" feature of the "%{crate}" crate. %files -n %{name}+repository-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ring-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ring-devel %{_description} This package contains library source intended for building other packages which use the "ring" feature of the "%{crate}" crate. %files -n %{name}+ring-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rrdp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rrdp-devel %{_description} This package contains library source intended for building other packages which use the "rrdp" feature of the "%{crate}" crate. %files -n %{name}+rrdp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rtr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rtr-devel %{_description} This package contains library source intended for building other packages which use the "rtr" feature of the "%{crate}" crate. %files -n %{name}+rtr-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}+serde-support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-support-devel %{_description} This package contains library source intended for building other packages which use the "serde-support" feature of the "%{crate}" crate. %files -n %{name}+serde-support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+slurm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+slurm-devel %{_description} This package contains library source intended for building other packages which use the "slurm" feature of the "%{crate}" crate. %files -n %{name}+slurm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+softkeys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+softkeys-devel %{_description} This package contains library source intended for building other packages which use the "softkeys" feature of the "%{crate}" crate. %files -n %{name}+softkeys-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-stream-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-stream-devel %{_description} This package contains library source intended for building other packages which use the "tokio-stream" feature of the "%{crate}" crate. %files -n %{name}+tokio-stream-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+untrusted-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+untrusted-devel %{_description} This package contains library source intended for building other packages which use the "untrusted" feature of the "%{crate}" crate. %files -n %{name}+untrusted-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+xml-devel %{_description} This package contains library source intended for building other packages which use the "xml" feature of the "%{crate}" crate. %files -n %{name}+xml-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f repository %build %cargo_build -f repository %{cargo_license_summary -f repository} %{cargo_license -f repository} > LICENSE.dependencies %install %cargo_install -f repository %if %{with check} %check %cargo_test -f repository %endif %changelog %autochangelog