# 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 c24fe6078c630e89b489bffe59b3e20ac30d12c8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapdate 20261012 %global lean_version 4.35.0 %global lakename Cli Name: lean4-cli Version: 4.35.0 Release: 1%{?dist} Summary: Command line argument parsing library for Lean 4 License: MIT URL: https://github.com/leanprover/lean4-cli Source0: %{url}/archive/%{commit}/lean4-cli-%{commit}.tar.gz # `git cat-file commit %%{commit}`: %%lean4_git_init rebuilds the checkout # Lake expects from the tarball (see macros.lean4). Source1: Cli-%{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 lean4-cli parses command line arguments and generates help text for Lean 4 programs. Mathlib's import-graph tool is built on it. %prep %autosetup -n lean4-cli-%{commit} %lean4_git_init %{SOURCE1} %{url} %build %lean4_build Cli %check # the installed oleans load and elaborate against this toolchain cat > %{_builddir}/check-%{lakename}.lean <<'EOF' import Cli 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 - 4.35.0-1 - Initial package: the revision Mathlib v4.35.0 pins