Depend on ocaml-rpm-macros instead of python3

This commit is contained in:
Jerry James 2023-10-04 21:03:40 -06:00
parent 2cd4c8645e
commit 9e17677ab7

View File

@ -1,15 +1,9 @@
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
ExcludeArch: %{ix86}
%ifarch %{ocaml_native_compiler}
%global native_compiler 1
%else
%global native_compiler 0
%endif
Name: ocaml-labltk
Version: 8.06.13
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Tcl/Tk interface for OCaml
@ -30,7 +24,7 @@ Patch3: ocaml-labltk-configure-c99.patch
BuildRequires: make
BuildRequires: ocaml
BuildRequires: ocaml-ocamldoc
BuildRequires: python3
BuildRequires: ocaml-rpm-macros
BuildRequires: tcl-devel, tk-devel
%global _desc %{expand:
@ -86,19 +80,19 @@ sed -i 's/^cclibs=.*/cclibs=/' configure
# Build does not work in parallel.
unset MAKEFLAGS
%if !%{native_compiler}
make byte
%else
%ifarch %{ocaml_native_compiler}
make all opt \
SHAREDCCCOMPOPTS='%{build_cflags} -fPIC' \
TK_LINK="%{build_ldflags} $(pkg-config --libs tk)"
%else
make byte
%endif
# Build documentation
# make apiref does not work
MLIS=$(ls -1d labltk/*.mli | grep -Fv _tkgen.mli)
mkdir apiref
/usr/bin/ocamldoc -I +threads -I support -I labltk -I camltk \
/usr/bin/ocamldoc -I +unix -I +threads -I support -I labltk -I camltk \
support/fileevent.mli support/support.mli support/textvariable.mli \
support/timer.mli support/tkthread.mli support/widget.mli $MLIS \
labltk/tk.ml -sort -d apiref -html
@ -135,6 +129,9 @@ sed 's/8\.06\.6/%{version}/' support/META > \
%changelog
* Wed Oct 4 2023 Jerry James <loganjerry@gmail.com> - 8.06.13-5
- Depend on ocaml-rpm-macros instead of python3
* Sat Sep 9 2023 Jerry James <loganjerry@gmail.com> - 8.06.13-4
- Add devel package dependency on tcl-/tk-devel