# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate bamboo-core Name: rust-bamboo-core Version: 0.5.3 Release: %autorelease Summary: Vietnamese input method engine written in Rust License: MIT URL: https://crates.io/crates/bamboo-core Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop benchmarks and their dev-dependencies, which are not packaged for # Fedora # * drop the wasm feature, since wasm-bindgen is not packaged for Fedora # * drop dev-dependencies no test uses: skey-engine, uvie, vi # * allow serial_test 3, the version in Fedora # * build only the rlib, and drop release profile settings that conflict with # RPM flags Patch: bamboo-core-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Vietnamese input method engine written in Rust.} %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 %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}+parallel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parallel-devel %{_description} This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-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