# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate flexiber Name: rust-flexiber Version: 0.1.3 Release: %autorelease Summary: Encoding and decoding of BER-TLV as described in ISO 7816-4, without allocations License: Apache-2.0 OR MIT URL: https://crates.io/crates/flexiber Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Drop flexiber-derive safety pin since we aren't packaging it Patch: flexiber-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Encoding and decoding of BER-TLV as described in ISO 7816-4, without allocations.} %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}+heapless-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+heapless-devel %{_description} This package contains library source intended for building other packages which use the "heapless" feature of the "%{crate}" crate. %files -n %{name}+heapless-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-all-devel %{_description} This package contains library source intended for building other packages which use the "log-all" feature of the "%{crate}" crate. %files -n %{name}+log-all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-debug-devel %{_description} This package contains library source intended for building other packages which use the "log-debug" feature of the "%{crate}" crate. %files -n %{name}+log-debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-error-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-error-devel %{_description} This package contains library source intended for building other packages which use the "log-error" feature of the "%{crate}" crate. %files -n %{name}+log-error-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-info-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-info-devel %{_description} This package contains library source intended for building other packages which use the "log-info" feature of the "%{crate}" crate. %files -n %{name}+log-info-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-none-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-none-devel %{_description} This package contains library source intended for building other packages which use the "log-none" feature of the "%{crate}" crate. %files -n %{name}+log-none-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-trace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-trace-devel %{_description} This package contains library source intended for building other packages which use the "log-trace" feature of the "%{crate}" crate. %files -n %{name}+log-trace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-warn-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-warn-devel %{_description} This package contains library source intended for building other packages which use the "log-warn" feature of the "%{crate}" crate. %files -n %{name}+log-warn-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 %cargo_test %endif %changelog %autochangelog