# 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 df72b022e558978a1c50264cfc4d7fec86fa8e04 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapdate 20261012 %global lean_version 4.35.0 %global lakename proofwidgets Name: lean4-proofwidgets Version: 0.0.116 Release: 2%{?dist} Summary: ProofWidgets: interactive widgets for the Lean 4 infoview License: Apache-2.0 URL: https://github.com/leanprover-community/ProofWidgets4 Source0: %{url}/archive/%{commit}/ProofWidgets4-%{commit}.tar.gz # `git cat-file commit %%{commit}`: %%lean4_git_init rebuilds the checkout # Lake expects from the tarball (see macros.lean4). Source1: proofwidgets-%{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 ProofWidgets is a library of user-interface components (HTML, SVG, graphs, expression presenters) rendered in the Lean 4 infoview, with the JavaScript they need prebuilt in the source tree, so no npm is involved. %prep %autosetup -n ProofWidgets4-%{commit} %lean4_git_init %{SOURCE1} %{url} %build %lean4_build ProofWidgets %check # the installed oleans load and elaborate against this toolchain cat > %{_builddir}/check-%{lakename}.lean <<'EOF' import ProofWidgets #check @ProofWidgets.Html.ofComponent EOF lake env lean %{_builddir}/check-%{lakename}.lean %install %lean4_install %{lakename} %files %license LICENSE %doc README.md %{_lean4_pkgdir}/%{lakename}/ %changelog * Fri Nov 06 2026 Morgan Hough - 0.0.116-2 - Rebuild in mhough/scientific: math and computational-physics packages move out of mhough/neurofedora * Mon Nov 02 2026 Morgan Hough - 0.0.116-1 - Initial package: the revision Mathlib v4.35.0 pins