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
|
Name: ocaml-calendar
|
||||||
Version: 2.04
|
Version: 2.04
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -28,9 +29,11 @@ Source0: %{name}-%{version}.tar.xz
|
|||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-dune
|
BuildRequires: ocaml-dune
|
||||||
BuildRequires: ocaml-rpm-macros >= 20191101
|
BuildRequires: ocaml-rpm-macros >= 20191101
|
||||||
BuildRequires: ocamlfind(alcotest)
|
|
||||||
BuildRequires: ocamlfind(re)
|
BuildRequires: ocamlfind(re)
|
||||||
BuildRequires: ocamlfind(unix)
|
BuildRequires: ocamlfind(unix)
|
||||||
|
%if %{with ocaml_do_dune_runtest}
|
||||||
|
BuildRequires: ocamlfind(alcotest)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Objective Caml library for managing dates and times.
|
Objective Caml library for managing dates and times.
|
||||||
@ -58,8 +61,10 @@ dune_release_pkgs='calendar'
|
|||||||
%ocaml_dune_install
|
%ocaml_dune_install
|
||||||
%ocaml_create_file_list
|
%ocaml_create_file_list
|
||||||
|
|
||||||
|
%if %{with ocaml_do_dune_runtest}
|
||||||
%check
|
%check
|
||||||
%ocaml_dune_test
|
%ocaml_dune_test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user