- Build with ocaml-dune-bootstrap

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-csexp?expand=0&rev=11
This commit is contained in:
Olaf Hering 2022-04-04 15:18:08 +00:00 committed by Git OBS Bridge
parent ea7d528fd1
commit 6656414d8b
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1a6ee8e0cc8d093b01fdee0734e366b6372cadd906dab58360be67a59622ade
size 10172
oid sha256:d79a4af9a0e70dd5b6630453d6615267e6e0ebde3eba471ac0385630b1e90f82
size 10204

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
- Build with ocaml-dune-bootstrap
-------------------------------------------------------------------
Fri Apr 9 09:09:09 UTC 2021 - ohering@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ocaml-csexp
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -39,8 +39,12 @@ BuildRoot: %_tmppath/%name-%version-build
URL: https://opam.ocaml.org/packages/csexp
Source0: %pkg-%version.tar.xz
BuildRequires: ocaml
%if "%build_flavor" == ""
BuildRequires: ocaml-dune-bootstrap
%else
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20210409
%endif
BuildRequires: ocaml-rpm-macros >= 20220222
%if "%build_flavor" == "testsuite"
BuildRequires: ocamlfind(csexp)
@ -67,6 +71,9 @@ developing applications that use %name.
%setup -q -n %pkg-%version
%build
%if "%build_flavor" == ""
export PATH="%ocaml_dune_bootstrap_directory:$PATH"
%endif
dune_release_pkgs='csexp'
%ocaml_dune_setup
%if "%build_flavor" == ""
@ -75,6 +82,7 @@ dune_release_pkgs='csexp'
%install
%if "%build_flavor" == ""
export PATH="%ocaml_dune_bootstrap_directory:$PATH"
%ocaml_dune_install
%ocaml_create_file_list
%endif