2019-11-08 21:06:00 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package ocaml-core_kernel
|
|
|
|
|
#
|
2023-05-05 07:38:30 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-11-08 21:06:00 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2021-04-15 12:02:04 +00:00
|
|
|
%bcond_with ocaml_core_kernel_testsuite
|
2022-04-04 15:16:05 +00:00
|
|
|
%define build_flavor @BUILD_FLAVOR@%nil
|
|
|
|
|
%if "%build_flavor" == "testsuite"
|
2021-04-15 12:02:04 +00:00
|
|
|
%if %{without ocaml_csexp_testsuite}
|
|
|
|
|
ExclusiveArch: do-not-build
|
2023-05-05 09:46:58 +00:00
|
|
|
%else
|
|
|
|
|
ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64
|
2021-04-15 12:02:04 +00:00
|
|
|
%endif
|
2021-01-27 19:56:42 +00:00
|
|
|
%define nsuffix -testsuite
|
|
|
|
|
%else
|
2023-05-05 09:46:58 +00:00
|
|
|
ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64
|
2022-04-04 15:16:05 +00:00
|
|
|
%define nsuffix %nil
|
2021-01-27 19:56:42 +00:00
|
|
|
%endif
|
|
|
|
|
|
2021-01-27 21:19:24 +00:00
|
|
|
%define pkg ocaml-core_kernel
|
2022-04-04 15:16:05 +00:00
|
|
|
Name: %pkg%nsuffix
|
2023-05-05 07:38:30 +00:00
|
|
|
Version: 0.16.0
|
2019-11-08 21:06:00 +00:00
|
|
|
Release: 0
|
|
|
|
|
%{?ocaml_preserve_bytecode}
|
|
|
|
|
Summary: Alternative standard library
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/OCaml
|
2020-08-21 17:18:46 +00:00
|
|
|
URL: https://opam.ocaml.org/packages/core_kernel
|
2022-04-04 15:16:05 +00:00
|
|
|
Source0: %pkg-%version.tar.xz
|
2019-11-08 21:06:00 +00:00
|
|
|
BuildRequires: ocaml-dune
|
2023-05-05 07:38:30 +00:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20230101
|
|
|
|
|
BuildRequires: ocaml(ocaml_base_version) >= 4.14
|
2021-01-28 09:51:56 +00:00
|
|
|
%if 1
|
2019-11-08 21:06:00 +00:00
|
|
|
BuildRequires: ocamlfind(base)
|
2022-04-04 15:16:27 +00:00
|
|
|
BuildRequires: ocamlfind(core)
|
|
|
|
|
BuildRequires: ocamlfind(int_repr)
|
2019-11-08 21:06:00 +00:00
|
|
|
BuildRequires: ocamlfind(ppx_jane)
|
2023-05-05 07:38:30 +00:00
|
|
|
BuildRequires: ocamlfind(ppx_optcomp)
|
2021-01-27 22:57:01 +00:00
|
|
|
%endif
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2022-04-04 15:16:05 +00:00
|
|
|
%if "%build_flavor" == "testsuite"
|
2021-01-27 22:56:16 +00:00
|
|
|
BuildRequires: ocamlfind(core)
|
2021-01-27 22:48:45 +00:00
|
|
|
BuildRequires: ocamlfind(core_kernel)
|
2021-01-27 19:56:42 +00:00
|
|
|
BuildRequires: ocamlfind(ppx_jane)
|
2021-01-27 22:56:16 +00:00
|
|
|
BuildRequires: ocamlfind(quickcheck_deprecated)
|
2021-01-27 19:56:42 +00:00
|
|
|
%endif
|
|
|
|
|
|
2019-11-08 21:06:00 +00:00
|
|
|
%description
|
|
|
|
|
Core is an alternative to the OCaml standard library.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2022-04-04 15:16:05 +00:00
|
|
|
Summary: Development files for %name
|
2019-11-08 21:06:00 +00:00
|
|
|
Group: Development/Languages/OCaml
|
2022-04-04 15:16:05 +00:00
|
|
|
Requires: %name = %version
|
2019-11-08 21:06:00 +00:00
|
|
|
|
|
|
|
|
%description devel
|
2022-04-04 15:16:05 +00:00
|
|
|
The %name-devel package contains libraries and signature files for
|
|
|
|
|
developing applications that use %name.
|
2019-11-08 21:06:00 +00:00
|
|
|
|
|
|
|
|
%prep
|
2022-04-04 15:16:05 +00:00
|
|
|
%autosetup -p1 -n %pkg-%version
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2021-01-27 23:43:10 +00:00
|
|
|
%build
|
2019-11-08 21:06:00 +00:00
|
|
|
dune_release_pkgs='core_kernel'
|
|
|
|
|
%ocaml_dune_setup
|
2022-04-04 15:16:05 +00:00
|
|
|
%if "%build_flavor" == ""
|
2019-11-08 21:06:00 +00:00
|
|
|
%ocaml_dune_build
|
2021-01-27 22:48:45 +00:00
|
|
|
%endif
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2021-01-27 23:43:10 +00:00
|
|
|
%install
|
2022-04-04 15:16:05 +00:00
|
|
|
%if "%build_flavor" == ""
|
2019-11-08 21:06:00 +00:00
|
|
|
%ocaml_dune_install
|
|
|
|
|
%ocaml_create_file_list
|
2021-01-27 19:56:42 +00:00
|
|
|
%endif
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2022-04-04 15:16:05 +00:00
|
|
|
%if "%build_flavor" == "testsuite"
|
2019-11-08 21:06:00 +00:00
|
|
|
%check
|
|
|
|
|
%ocaml_dune_test
|
2021-01-27 19:56:42 +00:00
|
|
|
%endif
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2022-04-04 15:16:05 +00:00
|
|
|
%if "%build_flavor" == ""
|
|
|
|
|
%files -f %name.files
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2022-04-04 15:16:05 +00:00
|
|
|
%files devel -f %name.files.devel
|
2019-11-08 21:06:00 +00:00
|
|
|
|
2021-01-27 19:56:42 +00:00
|
|
|
%endif
|
2021-01-28 08:28:27 +00:00
|
|
|
|
|
|
|
|
%changelog
|