# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate elasticlunr-rs Name: rust-elasticlunr-rs Version: 3.0.2 Release: %autorelease Summary: Generate static document search indexes License: (MIT OR Apache-2.0) AND MIT URL: https://crates.io/crates/elasticlunr-rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * disable ja language support (missing dependency: lindera) # * disable zh language support (missing dependency: jieba-rs) # * make MIT-only licensed components clear in crate metadata Patch: elasticlunr-rs-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A partial port of elasticlunr.js to Rust for generating static document search indexes.} %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-JS %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/LICENSE-WORDS %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}+ar-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ar-devel %{_description} This package contains library source intended for building other packages which use the "ar" feature of the "%{crate}" crate. %files -n %{name}+ar-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+da-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+da-devel %{_description} This package contains library source intended for building other packages which use the "da" feature of the "%{crate}" crate. %files -n %{name}+da-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+de-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+de-devel %{_description} This package contains library source intended for building other packages which use the "de" feature of the "%{crate}" crate. %files -n %{name}+de-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+du-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+du-devel %{_description} This package contains library source intended for building other packages which use the "du" feature of the "%{crate}" crate. %files -n %{name}+du-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+es-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+es-devel %{_description} This package contains library source intended for building other packages which use the "es" feature of the "%{crate}" crate. %files -n %{name}+es-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fi-devel %{_description} This package contains library source intended for building other packages which use the "fi" feature of the "%{crate}" crate. %files -n %{name}+fi-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fr-devel %{_description} This package contains library source intended for building other packages which use the "fr" feature of the "%{crate}" crate. %files -n %{name}+fr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hu-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hu-devel %{_description} This package contains library source intended for building other packages which use the "hu" feature of the "%{crate}" crate. %files -n %{name}+hu-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+it-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+it-devel %{_description} This package contains library source intended for building other packages which use the "it" feature of the "%{crate}" crate. %files -n %{name}+it-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ko-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ko-devel %{_description} This package contains library source intended for building other packages which use the "ko" feature of the "%{crate}" crate. %files -n %{name}+ko-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+languages-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+languages-devel %{_description} This package contains library source intended for building other packages which use the "languages" feature of the "%{crate}" crate. %files -n %{name}+languages-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+no-devel %{_description} This package contains library source intended for building other packages which use the "no" feature of the "%{crate}" crate. %files -n %{name}+no-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pt-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pt-devel %{_description} This package contains library source intended for building other packages which use the "pt" feature of the "%{crate}" crate. %files -n %{name}+pt-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ro-devel %{_description} This package contains library source intended for building other packages which use the "ro" feature of the "%{crate}" crate. %files -n %{name}+ro-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ru-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ru-devel %{_description} This package contains library source intended for building other packages which use the "ru" feature of the "%{crate}" crate. %files -n %{name}+ru-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust-stemmers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rust-stemmers-devel %{_description} This package contains library source intended for building other packages which use the "rust-stemmers" feature of the "%{crate}" crate. %files -n %{name}+rust-stemmers-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sv-devel %{_description} This package contains library source intended for building other packages which use the "sv" feature of the "%{crate}" crate. %files -n %{name}+sv-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tr-devel %{_description} This package contains library source intended for building other packages which use the "tr" feature of the "%{crate}" crate. %files -n %{name}+tr-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