Disable tests in RHEL builds
ocaml-alcotest and its several dependencies are otherwise unneeded in RHEL and ELN.
This commit is contained in:
parent
864c509d9a
commit
b68b0c7ba8
@ -5,6 +5,15 @@ ExcludeArch: %{ix86}
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# ocaml-alcotest requires ocaml-astring, ocaml-cmdliner, ocaml-fmt, and ocaml-uutf,
|
||||||
|
# none of which are otherwise needed for building the OCaml-depenedent packages
|
||||||
|
# found in RHEL and ELN. We want to avoid the extra dependencies there.
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%bcond_with tests
|
||||||
|
%else
|
||||||
|
%bcond_without tests
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: ocaml-calendar
|
Name: ocaml-calendar
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
@ -15,10 +24,13 @@ URL: https://ocaml-community.github.io/calendar/
|
|||||||
Source0: https://github.com/ocaml-community/calendar/archive/v%{version}/calendar-%{version}.tar.gz
|
Source0: https://github.com/ocaml-community/calendar/archive/v%{version}/calendar-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: ocaml >= 4.03
|
BuildRequires: ocaml >= 4.03
|
||||||
BuildRequires: ocaml-alcotest-devel
|
|
||||||
BuildRequires: ocaml-dune >= 1.0
|
BuildRequires: ocaml-dune >= 1.0
|
||||||
BuildRequires: ocaml-re-devel >= 1.7.2
|
BuildRequires: ocaml-re-devel >= 1.7.2
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ocaml-alcotest-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Objective Caml library for managing dates and times.
|
Objective Caml library for managing dates and times.
|
||||||
@ -46,8 +58,10 @@ developing applications that use %{name}.
|
|||||||
%dune_install
|
%dune_install
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%dune_check
|
%dune_check
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -f .ofiles
|
%files -f .ofiles
|
||||||
|
Loading…
Reference in New Issue
Block a user