From c706c036273ce8cce6088700faba4a2eb517e706 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Nov 30 2021 18:58:46 +0000 Subject: Rebuild for ocaml-sexplib0 0.15.0 Reenable Unicode standard munging code to fix the tests --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..dcdf70d --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# ocaml-sedlex + +[Sedlex](https://github.com/ocaml-community/sedlex) is a lexer generator for +OCaml, similar to ocamllex, but supporting Unicode. Contrary to ocamllex, +lexer specifications for sedlex are embedded in regular OCaml source files. diff --git a/ocaml-sedlex.spec b/ocaml-sedlex.spec index 99c7144..45205c9 100644 --- a/ocaml-sedlex.spec +++ b/ocaml-sedlex.spec @@ -1,6 +1,6 @@ Name: ocaml-sedlex Version: 2.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unicode-friendly lexer generator License: MIT @@ -41,17 +41,15 @@ files for developing applications that use %{name}. %prep %autosetup -p1 -n sedlex-%{version} -if false; then # Upstream's regression test is written for Unicode 6.3.0 through 13.0.0. Our # Unicode files are from a more recent version of the standard. The test has a # good chance of succeeding anyway, so we cross our fingers and give it a try. # If the regression test fails, we'll have to try another approach. univer=$(sed -n 's/.*PropList-\([.[:digit:]]*\)\.txt/\1/p' %{_datadir}/unicode/ucd/PropList.txt) sed -i "s/13\\.0\\.0/$univer/" examples/regressions.ml -fi %build -dune build %{?_smp_mflags} -p sedlex --verbose +dune build %{?_smp_mflags} -p sedlex --verbose --profile release dune build %{?_smp_mflags} @doc %install @@ -62,11 +60,7 @@ rm -r $RPM_BUILD_ROOT%{_prefix}/doc/sedlex/{CHANGES,README.md,LICENSE} %check -# Disabled this because it prints: -# (cd _build/default/examples && ./regressions.exe) -# Fatal error: exception (Failure "Test written for versions: 12.1.0 => 14.0.0\n") -# I think the version number refers to the version of Unicode (not OCaml). -dune runtest ||: +dune runtest %files @@ -91,6 +85,10 @@ dune runtest ||: %changelog +* Tue Nov 30 2021 Jerry James - 2.4-3 +- Rebuild for ocaml-sexplib0 0.15.0 +- Reenable Unicode standard munging code to fix the tests + * Tue Oct 05 2021 Richard W.M. Jones - 2.4-2 - OCaml 4.13.1 build