diff --git a/sources b/sources index 60c3729..8b46ffc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (utop-2.16.0.tar.gz) = 0f6a7a85e9bbb442b217f5c28228c65fc63bafa033d178b696d461a200ef52d0d6c4f9b4ef04337e24dcd88bcf246f8163bd4851baa35a9c9e8de3aaee4d062d +SHA512 (utop-2.17.0.tar.gz) = 0d4665f72379ef7d294517a3e3cd4e6facb109a59faa6df71fa7f9837664771a919639f035ddc41f51a60cfd4fc03c911d87c20b943a601e0abc3a1248140eab diff --git a/utop.spec b/utop.spec index e546031..95ee2e4 100644 --- a/utop.spec +++ b/utop.spec @@ -1,6 +1,3 @@ -# OCaml packages not built on i686 since OCaml 5 / Fedora 39. -ExcludeArch: %{ix86} - # The OCaml code is byte compiled, not native compiled, so there are no ELF # objects in the binary RPM. %global debug_package %{nil} @@ -8,17 +5,21 @@ ExcludeArch: %{ix86} %global giturl https://github.com/ocaml-community/utop Name: utop -Version: 2.16.0 +Version: 2.17.0 Release: %autorelease Summary: Improved toplevel for OCaml License: BSD-3-Clause URL: https://ocaml-community.github.io/utop/ -VCS : git:%{giturl}.git +VCS: git:%{giturl}.git Source: %{giturl}/archive/%{version}/%{name}-%{version}.tar.gz # Upstream patch to fix the version number Patch: %{name}-version.patch +# OCaml packages not built on i686 since OCaml 5 / Fedora 39. +ExcludeArch: %{ix86} + +BuildSystem: dune BuildRequires: ocaml >= 4.11.0 BuildRequires: ocaml-alcotest-devel BuildRequires: ocaml-cppo >= 1.1.2 @@ -39,10 +40,9 @@ BuildRequires: emacs-tuareg Provides: ocaml-%{name}%{?_isa} = %{version}-%{release} %description -utop is an improved toplevel (i.e., Read-Eval-Print Loop) for -OCaml. It can run in a terminal or in Emacs. It supports line -editing, history, real-time and context sensitive completion, -colors, and more. +utop is an improved toplevel (i.e., Read-Eval-Print Loop) for OCaml. It can +run in a terminal or in Emacs. It supports line editing, history, real-time +and context sensitive completion, colors, and more. %package devel Summary: Development files for %{name} @@ -64,32 +64,25 @@ Requires: emacs-tuareg Recommends: emacs-company %description -n emacs-utop -This package contains an Emacs front end for utop, an improved toplevel -for OCaml. +This package contains an Emacs front end for utop, an improved toplevel for +OCaml. %prep %autosetup -p1 -%build -%dune_build - +%build -a cd src/top emacs -batch --no-init-file --no-site-file \ --eval "(let ((backup-inhibited t)) (loaddefs-generate \".\" \"$PWD/utop-loaddefs.el\"))" %_emacs_bytecompile utop.el cd - -%install -%dune_install - +%install -a # Install the Emacs interface mkdir -p %{buildroot}%{_emacs_sitestartdir} cp -p src/top/utop-loaddefs.* %{buildroot}%{_emacs_sitestartdir} cp -p src/top/utop.elc %{buildroot}%{_emacs_sitelispdir} -%check -%dune_check - %files -f .ofiles %license LICENSE %doc README.md CHANGES.md