Minor spec file cleanups.

This commit is contained in:
Jerry James 2020-04-16 15:35:14 -06:00
parent 6a8d59008f
commit c8133924fc

View File

@ -17,7 +17,7 @@ Source0: https://github.com/aantron/markup.ml/archive/%{version}/%{srcnam
Patch1: markup-0.8.2-rename-ounit.patch
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-bisect-ppx-devel
BuildRequires: ocaml-bisect-ppx-devel >= 2.0.0
BuildRequires: ocaml-dune
BuildRequires: ocaml-findlib
BuildRequires: ocaml-lwt-devel
@ -25,13 +25,8 @@ BuildRequires: ocaml-mmap-devel
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-ocplib-endian-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-result-devel
BuildRequires: ocaml-uutf-devel >= 1.0.0
# Workaround for possible bug in another package (maybe LWT?).
# /usr/bin/ld: cannot find -lev
BuildRequires: libev-devel
%description
Markup.ml is a pair of parsers implementing the HTML5 and XML
specifications, including error recovery. Usage is simple, because each
@ -94,7 +89,8 @@ dune build %{?_smp_mflags}
# Build the documentation. Unfortunately, ocamldoc is not smart enough to
# figure out that Kstream is Markup.Kstream. I have not been able to figure
# out how to convince it, so the temporary hacked-up copy of markup.mli is
# my way of working around the problem. Please fix if you know how.
# my way of working around the problem. We should really build documentation
# with odoc, but this package is a build dependency of odoc.
mkdir tmp
sed '/Kstream/d' _build/default/src/markup.mli > tmp/markup.mli