Disable the tests to avoid circular dependency.

This commit is contained in:
Richard W.M. Jones 2020-02-26 17:41:36 +00:00
parent a80b62ec68
commit 26dc712dd9
1 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,11 @@
%global srcname bisect-ppx
%global upname bisect_ppx
# Running the tests requires ocaml-ounit, which introduces a circular
# dependency (also involving ocaml-lwt). By disabling the tests we
# can break this cycle.
%bcond_with tests
Name: ocaml-%{srcname}
Version: 1.4.1
Release: 4.%{gitdate}.%{shorttag}%{?dist}
@ -28,7 +33,9 @@ BuildRequires: ocaml-dune
BuildRequires: ocaml-findlib
BuildRequires: ocaml-migrate-parsetree-devel >= 1.4.0
BuildRequires: ocaml-ocamldoc
%if %{with tests}
BuildRequires: ocaml-ounit-devel
%endif
BuildRequires: ocaml-ppx-derivers-devel
BuildRequires: ocaml-ppx-tools-versioned-devel >= 5.2.3
BuildRequires: ocaml-result-devel
@ -89,8 +96,10 @@ rm -fr %{buildroot}%{_prefix}/doc
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+
%endif
%if %{with tests}
%check
make test
%endif
%files
%doc doc/advanced.md doc/CHANGES README.md
@ -145,6 +154,7 @@ make test
%changelog
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-4.20200106.b2661bf
- OCaml 4.10.0 final.
- Disable the tests to avoid circular dependency.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3.20200106.b2661bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild