# 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 dfa4f38190d07c37e315953e08b90fe2d95b3c24 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapdate 20261012 %global lean_version 4.35.0 %global lakename plausible Name: lean4-plausible Version: 0^20261012gitdfa4f38 Release: 2%{?dist} Summary: Property-based testing for Lean 4 License: Apache-2.0 URL: https://github.com/leanprover-community/plausible Source0: %{url}/archive/%{commit}/plausible-%{commit}.tar.gz # `git cat-file commit %%{commit}`: %%lean4_git_init rebuilds the checkout # Lake expects from the tarball (see macros.lean4). Source1: plausible-%{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 Plausible is a QuickCheck-style property-based testing framework for Lean 4: the `plausible` tactic searches for counterexamples to a goal by generating random instances of its variables. %prep %autosetup -n plausible-%{commit} %lean4_git_init %{SOURCE1} %{url} %build %lean4_build Plausible %check # the installed oleans load and elaborate against this toolchain cat > %{_builddir}/check-%{lakename}.lean <<'EOF' import Plausible #check @Plausible.Testable.check 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^20261012gitdfa4f38-2 - Rebuild in mhough/scientific: math and computational-physics packages move out of mhough/neurofedora * Mon Nov 02 2026 Morgan Hough - 0^20261012gitdfa4f38-1 - Initial package: the revision Mathlib v4.35.0 pins