# Pinned to the revision Mathlib v4.35.0 locks in its lake-manifest.json; a dependent's # `lake build` accepts an installed package only at that exact commit, so this # moves together with lean4-mathlib and lean4. %global commit d6b4c7be5be75ec4917c873ac50c756dc1436372 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapdate 20261012 %global lean_version 4.35.0 %global lakename LeanSearchClient Name: lean4-leansearchclient Version: 0^20261012gitd6b4c7b Release: 1%{?dist} Summary: Lean 4 syntax for querying the LeanSearch and Loogle search engines License: Apache-2.0 URL: https://github.com/leanprover-community/LeanSearchClient Source0: %{url}/archive/%{commit}/LeanSearchClient-%{commit}.tar.gz # `git cat-file commit %%{commit}`: %%lean4_git_init rebuilds the checkout # Lake expects from the tarball (see macros.lean4). Source1: LeanSearchClient-%{commit}.commit BuildArch: noarch BuildRequires: lean4 = %{lean_version} BuildRequires: lean4-rpm-macros BuildRequires: git-core Requires: lean4 = %{lean_version} # what a dependent's spec pins: the Lake package name at its exact revision Provides: lean4-package(%{lakename}) = %{commit} %description LeanSearchClient adds `#leansearch`, `#loogle` and `#moogle` commands and term syntax that query the LeanSearch, Loogle and Moogle search engines from inside a Lean 4 file. %prep %autosetup -n LeanSearchClient-%{commit} %lean4_git_init %{SOURCE1} %{url} %build %lean4_build LeanSearchClient %check # the installed oleans load and elaborate against this toolchain cat > %{_builddir}/check-%{lakename}.lean <<'EOF' import LeanSearchClient example : True := trivial EOF lake env lean %{_builddir}/check-%{lakename}.lean %install %lean4_install %{lakename} %files %license LICENSE %doc README.md %{_lean4_pkgdir}/%{lakename}/ %changelog * Mon Nov 02 2026 Morgan Hough - 0^20261012gitd6b4c7b-1 - Initial package: the revision Mathlib v4.35.0 pins