# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate synta %global snapdate 202604112257 %global snapcommit 05dfe2d Name: rust-synta Version: 0.1.6 Release: 2%{?dist} Summary: ASN.1 parser, decoder, and encoder library with DER/BER support and C FFI License: MIT OR Apache-2.0 URL: https://crates.io/crates/synta Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: openssl-devel %global _description %{expand: ASN.1 parser, decoder, and encoder library with DER/BER support and C FFI.} %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 %license %{crate_instdir}/contrib/packages/LICENSE-APACHE %license %{crate_instdir}/contrib/packages/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}+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}+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 %package -n %{name}+unchecked-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unchecked-devel %{_description} This package contains library source intended for building other packages which use the "unchecked" feature of the "%{crate}" crate. %files -n %{name}+unchecked-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; the circular dev-dep on # synta-certificate # * requires synta-devel which is only available after this package is built. %cargo_test -- --lib %endif %changelog