# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate synta-certificate %global snapdate 202604112257 %global snapcommit 05dfe2d Name: rust-synta-certificate Version: 0.1.6 Release: 2%{?dist} Summary: X.509 certificate structures for synta ASN.1 library License: MIT OR Apache-2.0 URL: https://crates.io/crates/synta-certificate Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: openssl-devel %global _description %{expand: X.509 certificate structures for synta ASN.1 library.} %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}/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}+deprecated-pkcs12-algorithms-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deprecated-pkcs12-algorithms-devel %{_description} This package contains library source intended for building other packages which use the "deprecated-pkcs12-algorithms" feature of the "%{crate}" crate. %files -n %{name}+deprecated-pkcs12-algorithms-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+derive-devel %{_description} This package contains library source intended for building other packages which use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nss-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nss-devel %{_description} This package contains library source intended for building other packages which use the "nss" feature of the "%{crate}" crate. %files -n %{name}+nss-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}+pqc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pqc-devel %{_description} This package contains library source intended for building other packages which use the "pqc" feature of the "%{crate}" crate. %files -n %{name}+pqc-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}+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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * Restrict to library unit tests only; integration tests exercise the circular # * dev-dep (synta ↔ synta-certificate) and are covered by the synta build. %cargo_test -- --lib %endif %changelog