wrap runtest in ocaml_do_dune_runtest
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=20
This commit is contained in:
parent
c207f79bf3
commit
3a6786ea8a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user