File ocaml-base.spec of Package ocaml-base
#
# spec file for package ocaml-base
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
Name: ocaml-base
Version: 0.16.3
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Standard library for OCaml
License: MIT
ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64
Group: Development/Languages/OCaml
BuildRoot: %_tmppath/%name-%version-build
URL: https://opam.ocaml.org/packages/base
Source0: %name-%version.tar.xz
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20231101
BuildRequires: ocaml(ocaml_base_version) >= 4.14
BuildRequires: ocamlfind(compiler-libs.bytecomp)
BuildRequires: ocamlfind(compiler-libs.common)
BuildRequires: ocamlfind(dune-configurator)
BuildRequires: ocamlfind(sexplib0)
BuildRequires: ocamlfind(str)
%description
Base is a standard library for OCaml. It provides a standard set of general purpose modules that are well-tested, performant, and fully-portable across any environment that can run OCaml code. Unlike other standard library projects, Base is meant to be used as a wholesale replacement of the standard library distributed with the OCaml compiler. In particular it makes different choices and does not re-export features that are not fully portable such as I/O, which are left to other libraries.
%package devel
Summary: Development files for %name
Group: Development/Languages/OCaml
Requires: %name = %version
%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%setup -q
%build
dune_release_pkgs='base'
%ocaml_dune_setup
%ocaml_dune_build
%install
%ocaml_dune_install
%ocaml_create_file_list
%check
%ocaml_dune_test
%files -f %name.files
%defattr(-,root,root,-)
%files devel -f %name.files.devel
%defattr(-,root,root,-)
%changelog