# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate synta Name: rust-synta Version: 0.3.6 Release: %autorelease 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 %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 # * cryptography_vectors_tests and cryptography_vectors_tests_extended use # synta-certificate, which depends on synta (circular; the published crate # does not declare it) %cargo_test -- --lib %cargo_test -- --test ber_tests %cargo_test -- --test cer_tests %cargo_test -- --test constructed_tests %cargo_test -- --test decoder_tests %cargo_test -- --test der_compliance_tests %cargo_test -- --test encoder_tests %cargo_test -- --test length_tests %cargo_test -- --test oid_tests %cargo_test -- --test primitive_tests %cargo_test -- --test roundtrip %cargo_test -- --test serde_tests %cargo_test -- --test string_tests %cargo_test -- --test tag_tests %cargo_test -- --test tagged_tests %cargo_test -- --test time_tests %cargo_test -- --doc %endif %changelog %autochangelog