Accepting request 967045 from devel:languages:ocaml
- Build with ocaml-dune-bootstrap OBS-URL: https://build.opensuse.org/request/show/967045 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-csexp?expand=0&rev=2
This commit is contained in:
commit
e349abc645
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c1a6ee8e0cc8d093b01fdee0734e366b6372cadd906dab58360be67a59622ade
|
oid sha256:d79a4af9a0e70dd5b6630453d6615267e6e0ebde3eba471ac0385630b1e90f82
|
||||||
size 10172
|
size 10204
|
||||||
|
@ -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
|
Fri Apr 9 09:09:09 UTC 2021 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ocaml-csexp
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,18 +17,18 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_with ocaml_csexp_testsuite
|
%bcond_with ocaml_csexp_testsuite
|
||||||
%define build_flavor @BUILD_FLAVOR@%{nil}
|
%define build_flavor @BUILD_FLAVOR@%nil
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
%if %{without ocaml_csexp_testsuite}
|
%if %{without ocaml_csexp_testsuite}
|
||||||
ExclusiveArch: do-not-build
|
ExclusiveArch: do-not-build
|
||||||
%endif
|
%endif
|
||||||
%define nsuffix -testsuite
|
%define nsuffix -testsuite
|
||||||
%else
|
%else
|
||||||
%define nsuffix %{nil}
|
%define nsuffix %nil
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define pkg ocaml-csexp
|
%define pkg ocaml-csexp
|
||||||
Name: %{pkg}%{nsuffix}
|
Name: %pkg%nsuffix
|
||||||
Version: 1.5.1
|
Version: 1.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
%{?ocaml_preserve_bytecode}
|
%{?ocaml_preserve_bytecode}
|
||||||
@ -37,12 +37,16 @@ License: MIT
|
|||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
BuildRoot: %_tmppath/%name-%version-build
|
BuildRoot: %_tmppath/%name-%version-build
|
||||||
URL: https://opam.ocaml.org/packages/csexp
|
URL: https://opam.ocaml.org/packages/csexp
|
||||||
Source0: %{pkg}-%{version}.tar.xz
|
Source0: %pkg-%version.tar.xz
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
|
%if "%build_flavor" == ""
|
||||||
|
BuildRequires: ocaml-dune-bootstrap
|
||||||
|
%else
|
||||||
BuildRequires: ocaml-dune
|
BuildRequires: ocaml-dune
|
||||||
BuildRequires: ocaml-rpm-macros >= 20210409
|
%endif
|
||||||
|
BuildRequires: ocaml-rpm-macros >= 20220222
|
||||||
|
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
BuildRequires: ocamlfind(csexp)
|
BuildRequires: ocamlfind(csexp)
|
||||||
BuildRequires: ocamlfind(ppx_expect)
|
BuildRequires: ocamlfind(ppx_expect)
|
||||||
%endif
|
%endif
|
||||||
@ -55,40 +59,44 @@ This library only provides a few helpers for simple applications. If you need mo
|
|||||||
To avoid a dependency on a particular S-expression library, the only module of this library is parameterised by the type of S-expressions.
|
To avoid a dependency on a particular S-expression library, the only module of this library is parameterised by the type of S-expressions.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %name
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
Requires: %{name} = %{version}
|
Requires: %name = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and signature files for
|
The %name-devel package contains libraries and signature files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %name.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%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='csexp'
|
dune_release_pkgs='csexp'
|
||||||
%ocaml_dune_setup
|
%ocaml_dune_setup
|
||||||
%if "%{build_flavor}" == ""
|
%if "%build_flavor" == ""
|
||||||
%ocaml_dune_build
|
%ocaml_dune_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%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
|
||||||
|
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
%check
|
%check
|
||||||
%ocaml_dune_test
|
%ocaml_dune_test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{build_flavor}" == ""
|
%if "%build_flavor" == ""
|
||||||
%files -f %{name}.files
|
%files -f %name.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%files devel -f %{name}.files.devel
|
%files devel -f %name.files.devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user