- Build with ocaml-dune-bootstrap
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pp?expand=0&rev=3
This commit is contained in:
parent
e6ec1ad655
commit
a0602aa0e3
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
|
||||||
|
|
||||||
|
- Build with ocaml-dune-bootstrap
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 13 13:13:13 UTC 2022 - ohering@suse.de
|
Sun Mar 13 13:13:13 UTC 2022 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -38,13 +38,16 @@ Group: Development/Languages/OCaml
|
|||||||
BuildRoot: %_tmppath/%name-%version-build
|
BuildRoot: %_tmppath/%name-%version-build
|
||||||
URL: https://opam.ocaml.org/packages/pp
|
URL: https://opam.ocaml.org/packages/pp
|
||||||
Source0: %pkg-%version.tar.xz
|
Source0: %pkg-%version.tar.xz
|
||||||
|
%if "%build_flavor" == ""
|
||||||
|
BuildRequires: ocaml-dune-bootstrap
|
||||||
|
%else
|
||||||
BuildRequires: ocaml-dune >= 2.0
|
BuildRequires: ocaml-dune >= 2.0
|
||||||
BuildRequires: ocaml-rpm-macros >= 20211027
|
%endif
|
||||||
|
BuildRequires: ocaml-rpm-macros >= 20220222
|
||||||
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
||||||
|
|
||||||
%if "%build_flavor" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
BuildRequires: ocamlfind(pp)
|
BuildRequires: ocamlfind(pp)
|
||||||
BuildRequires: ocamlfind(ppx_expect)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -65,6 +68,9 @@ developing applications that use %name.
|
|||||||
%setup -q -n %pkg-%version
|
%setup -q -n %pkg-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if "%build_flavor" == ""
|
||||||
|
export PATH="%ocaml_dune_bootstrap_directory:$PATH"
|
||||||
|
%endif
|
||||||
dune_release_pkgs='pp'
|
dune_release_pkgs='pp'
|
||||||
%ocaml_dune_setup
|
%ocaml_dune_setup
|
||||||
%if "%build_flavor" == ""
|
%if "%build_flavor" == ""
|
||||||
@ -73,6 +79,7 @@ dune_release_pkgs='pp'
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if "%build_flavor" == ""
|
%if "%build_flavor" == ""
|
||||||
|
export PATH="%ocaml_dune_bootstrap_directory:$PATH"
|
||||||
%ocaml_dune_install
|
%ocaml_dune_install
|
||||||
%ocaml_create_file_list
|
%ocaml_create_file_list
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user