## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate elasticlunr-rs Name: rust-elasticlunr-rs Version: 3.0.2 Release: %autorelease Summary: Partial port of elasticlunr.js to Rust for generating static document search indexes # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/elasticlunr-rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes 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}+ja-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ja-devel %{_description} This package contains library source intended for building other packages which use the "ja" feature of the "%{crate}" crate. %files -n %{name}+ja-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jieba-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jieba-rs-devel %{_description} This package contains library source intended for building other packages which use the "jieba-rs" feature of the "%{crate}" crate. %files -n %{name}+jieba-rs-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}+lindera-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lindera-devel %{_description} This package contains library source intended for building other packages which use the "lindera" feature of the "%{crate}" crate. %files -n %{name}+lindera-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lindera-core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lindera-core-devel %{_description} This package contains library source intended for building other packages which use the "lindera-core" feature of the "%{crate}" crate. %files -n %{name}+lindera-core-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 %package -n %{name}+zh-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zh-devel %{_description} This package contains library source intended for building other packages which use the "zh" feature of the "%{crate}" crate. %files -n %{name}+zh-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 ## START: Generated by rpmautospec * Fri Dec 15 2023 John Doe - 3.0.2-1 - Uncommitted changes ## END: Generated by rpmautospec