Test looks for "oUnit" but the module is actually called "ounit2".

This commit is contained in:
Richard W.M. Jones 2020-02-26 18:48:28 +00:00
parent 90cecc5f4e
commit 8126008fa8
2 changed files with 35 additions and 1 deletions

View File

@ -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)))

View File

@ -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.