- Require current ocaml-rpm-macros
- Build conditionally with ocaml-lwt OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=35
This commit is contained in:
parent
93020c8ac5
commit
5edb0d7334
@ -1,8 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 28 18:19:20 UTC 2020 - olaf@aepfle.de
|
||||
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de
|
||||
|
||||
- Update to version 2.2.2
|
||||
Don't follow symlink in bracket_tmpdir removal code
|
||||
- Require current ocaml-rpm-macros
|
||||
- Build conditionally with ocaml-lwt
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
|
||||
|
@ -16,6 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with ocaml_lwt
|
||||
|
||||
Name: ocaml-ounit
|
||||
Version: 2.2.2
|
||||
Release: 0
|
||||
@ -27,14 +29,16 @@ Url: https://github.com/gildor478/ounit
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-dune
|
||||
BuildRequires: ocaml-rpm-macros >= 20191101
|
||||
BuildRequires: ocaml-rpm-macros >= 20200220
|
||||
BuildRequires: ocamlfind(bytes)
|
||||
BuildRequires: ocamlfind(lwt)
|
||||
BuildRequires: ocamlfind(lwt.unix)
|
||||
BuildRequires: ocamlfind(stdlib-shims)
|
||||
BuildRequires: ocamlfind(str)
|
||||
BuildRequires: ocamlfind(threads)
|
||||
BuildRequires: ocamlfind(unix)
|
||||
%if %{with ocaml_lwt}
|
||||
BuildRequires: ocamlfind(lwt)
|
||||
BuildRequires: ocamlfind(lwt.unix)
|
||||
%endif
|
||||
|
||||
%description
|
||||
OUnit is a unit test framework for OCaml. It allows one to easily
|
||||
@ -54,7 +58,10 @@ Development files needed for application based on %{name}.
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
dune_release_pkgs='ounit-lwt,ounit,ounit2-lwt,ounit2'
|
||||
dune_release_pkgs=',ounit,ounit2'
|
||||
%if %{with ocaml_lwt}
|
||||
dune_release_pkgs="${dune_release_pkgs},ounit-lwt,ounit2-lwt"
|
||||
%endif
|
||||
%ocaml_dune_setup
|
||||
%ocaml_dune_build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user