diff --git a/ocaml-calendar.spec b/ocaml-calendar.spec index 0ac8d07..6d07dab 100644 --- a/ocaml-calendar.spec +++ b/ocaml-calendar.spec @@ -16,6 +16,7 @@ # +%bcond_with ocaml_do_dune_runtest Name: ocaml-calendar Version: 2.04 Release: 0 @@ -28,9 +29,11 @@ Source0: %{name}-%{version}.tar.xz BuildRequires: ocaml BuildRequires: ocaml-dune BuildRequires: ocaml-rpm-macros >= 20191101 -BuildRequires: ocamlfind(alcotest) BuildRequires: ocamlfind(re) BuildRequires: ocamlfind(unix) +%if %{with ocaml_do_dune_runtest} +BuildRequires: ocamlfind(alcotest) +%endif %description Objective Caml library for managing dates and times. @@ -58,8 +61,10 @@ dune_release_pkgs='calendar' %ocaml_dune_install %ocaml_create_file_list +%if %{with ocaml_do_dune_runtest} %check %ocaml_dune_test +%endif %files -f %{name}.files