diff --git a/markup-0.8.2-rename-ounit.patch b/markup-0.8.2-rename-ounit.patch new file mode 100644 index 0000000..2dd746d --- /dev/null +++ b/markup-0.8.2-rename-ounit.patch @@ -0,0 +1,31 @@ +diff -ur markup.ml-0.8.2.old/test/dune markup.ml-0.8.2/test/dune +--- markup.ml-0.8.2.old/test/dune 2019-12-09 21:10:45.000000000 +0000 ++++ markup.ml-0.8.2/test/dune 2020-02-26 18:50:33.352347296 +0000 +@@ -1,6 +1,6 @@ + (executable + (name test) +- (libraries markup oUnit test_support) ++ (libraries markup ounit2 test_support) + (flags (:standard -w +A-44-48))) + + (alias +diff -ur markup.ml-0.8.2.old/test/lwt_unix/dune markup.ml-0.8.2/test/lwt_unix/dune +--- markup.ml-0.8.2.old/test/lwt_unix/dune 2019-12-09 21:10:45.000000000 +0000 ++++ markup.ml-0.8.2/test/lwt_unix/dune 2020-02-26 18:50:27.299431528 +0000 +@@ -1,6 +1,6 @@ + (executable + (name test_lwt) +- (libraries lwt.unix markup-lwt.unix oUnit test_support) ++ (libraries lwt.unix markup-lwt.unix ounit2 test_support) + (flags (:standard -w +A-44))) + + (alias +diff -ur markup.ml-0.8.2.old/test/support/dune markup.ml-0.8.2/test/support/dune +--- markup.ml-0.8.2.old/test/support/dune 2019-12-09 21:10:45.000000000 +0000 ++++ markup.ml-0.8.2/test/support/dune 2020-02-26 18:50:48.344138661 +0000 +@@ -1,4 +1,4 @@ + (library + (name test_support) +- (libraries markup oUnit) ++ (libraries markup ounit2) + (flags (:standard -w +A-44))) diff --git a/ocaml-markup.spec b/ocaml-markup.spec index 4dc9604..46fb95c 100644 --- a/ocaml-markup.spec +++ b/ocaml-markup.spec @@ -13,6 +13,9 @@ License: MIT URL: http://aantron.github.io/markup.ml/ Source0: https://github.com/aantron/markup.ml/archive/%{version}/%{srcname}-%{version}.tar.gz +# Test looks for "oUnit" but the module is actually called "ounit2". +Patch1: markup-0.8.2-rename-ounit.patch + BuildRequires: ocaml >= 4.02.0 BuildRequires: ocaml-bisect-ppx-devel BuildRequires: ocaml-dune @@ -73,7 +76,7 @@ The %{name}-lwt-devel package contains libraries and signature files for developing applications that use %{name}-lwt. %prep -%autosetup -n %{srcname}.ml-%{version} +%autosetup -n %{srcname}.ml-%{version} -p1 # The uchar package is a forward compatibility package for OCaml versions prior # to 4.03. We have a later OCaml in Fedora; uchar is in the standard library.