Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
495b53fdd8 | ||
|
|
f5a196cff6 |
1 changed files with 7 additions and 13 deletions
20
utop.spec
20
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}
|
||||
|
|
@ -14,11 +11,15 @@ 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
|
||||
|
|
@ -69,26 +70,19 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue