# Generated by rust2rpm 26 # * The tests depend on unsupported crates, and need files not present in the # crate file %bcond_with check %global debug_package %{nil} %global crate jieba-rs Name: rust-jieba-rs Version: 0.6.8 Release: %autorelease Summary: Jieba Chinese Word Segmentation Implemented in Rust License: MIT URL: https://crates.io/crates/jieba-rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: jieba-rs-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: The Jieba Chinese Word Segmentation Implemented 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}/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}+default-dict-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-dict-devel %{_description} This package contains library source intended for building other packages which use the "default-dict" feature of the "%{crate}" crate. %files -n %{name}+default-dict-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ordered-float-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ordered-float-devel %{_description} This package contains library source intended for building other packages which use the "ordered-float" feature of the "%{crate}" crate. %files -n %{name}+ordered-float-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+textrank-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+textrank-devel %{_description} This package contains library source intended for building other packages which use the "textrank" feature of the "%{crate}" crate. %files -n %{name}+textrank-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tfidf-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tfidf-devel %{_description} This package contains library source intended for building other packages which use the "tfidf" feature of the "%{crate}" crate. %files -n %{name}+tfidf-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