## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 # OCaml 5.5.2 rebuild Name: lem Version: 2026.05.01 Release: %autorelease Summary: A tool for semantic definition language License: LGPL-2.0-only URL: https://github.com/rems-project/%{name} Source0: https://github.com/rems-project/%{name}/archive/2026-05-01/%{name}-2026-05-01.tar.gz # Fix file permissions: lem generates files with 0o600 permissions due to # Filename.open_temp_file defaulting to restrictive permissions. This patch # adds ~perms:0o666 to allow proper file permissions in generated output. # This should be discussed with upstream. Patch0: fix-file-permissions.patch # Fix OCaml str library deprecation warning: OCaml 5.0 changed lib directory # layout. Adding use_str to _tags ensures the str subdirectory is properly # included, preventing build failures in future OCaml releases. # Upstream should add use_str to src/_tags. Patch1: fix-ocaml-str-warning.patch # OCaml packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} BuildRequires: help2man BuildRequires: ocaml >= 4.08.1 BuildRequires: ocaml-findlib BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-zarith-devel BuildRequires: ocaml-num-devel %description Lem is a tool for lightweight executable mathematics, for writing, managing, and publishing large-scale portable semantic definitions. It exports to LaTeX, OCaml code, and theorem proves (Coq, HOL4, Isabelle/HOL). Generated Coq code may not be idiomatic. It acts as an intermediate language for domain-specific tools and for porting definitions between theorem proves. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %autosetup -n lem-2026-05-01 -p1 %build make %install # INSTALL_DIR variable is in Makefile # but INSTALLDIR is in ocaml-lib/ocamlbuild.mk mkdir -p %{buildroot}%{ocamldir} make install INSTALLDIR=%{buildroot}%{ocamldir} INSTALL_DIR=%{buildroot}/usr mkdir -p %{buildroot}%{_mandir}/man1 help2man -N --version-string=%{version} -o %{buildroot}%{_mandir}/man1/lem.1 \ -n 'Convert markdown to HTML' %{buildroot}%{_bindir}/lem %files %{_bindir}/lem %{_mandir}/man1/lem.1* %license LICENSE %doc README.md %files devel %{ocamldir}/lem/* %{ocamldir}/lem_num/* %{ocamldir}/lem_zarith/* %{_datadir}/lem/coq-lib/* %{_datadir}/lem/hol-lib/* %{_datadir}/lem/isabelle-lib/* %{_datadir}/lem/library/* %changelog ## START: Generated by rpmautospec * Fri Nov 13 2026 Jerry James - 2026.05.01-5 - Uncommitted changes * Wed Sep 23 2026 Jerry James - 2026.05.01-4 - OCaml 5.5.1 rebuild * Thu Jul 16 2026 Fedora Release Engineering - 2026.05.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jul 09 2026 Jerry James - 2026.05.01-2 - OCaml 5.5.0 rebuild * Mon Jun 29 2026 U2FsdGVkX1 - 2026.05.01-1 - Version 2026.05.01 * Thu Mar 12 2026 U2FsdGVkX1 - 2025.03.13-7 - Rebuild for Fedora 45 (rhbz#2443533) * Fri Jan 16 2026 Fedora Release Engineering - 2025.03.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Oct 24 2025 U2FsdGVkX1 - 2025.03.13-5 - Fix file permissions and OCaml str library warnings * Thu Jul 24 2025 Fedora Release Engineering - 2025.03.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jul 14 2025 Jerry James - 2025.03.13-3 - Generate debuginfo - Remove unused ocaml-rpm-macros BR * Tue Jun 10 2025 U2FsdGVkX1 - 2025.03.13-2 - Exclude i686 arch as it does not have OCaml * Tue Jun 10 2025 U2FsdGVkX1 - 2025.03.13-1 - Version 2025.03.13 ## END: Generated by rpmautospec