From 3a6786ea8a68d75abbe44865d2feec58e9ba1e15f95b4264912547f9abd10e4a Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 13 Nov 2019 14:57:41 +0000 Subject: [PATCH] wrap runtest in ocaml_do_dune_runtest OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=20 --- ocaml-calendar.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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