File ocaml-camlidl.spec of Package ocaml-camlidl
#
# spec file for package ocaml-camlidl
#
# Copyright (c) 2025 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-camlidl
Version: 1.13
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Stub code generator and COM binding for Objective Caml
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
Url: https://opam.ocaml.org/packages/camlidl
Group: Development/Languages/OCaml
Source0: %name-%version.tar.xz
Patch0: %name.patch
BuildRequires: ocaml
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20250517
%description
CamlIDL is a stub code generator and COM binding for Objective Caml.
CamlIDL comprises two parts:
* A stub code generator that generates the C stub code required for
the Caml/C interface, based on an MIDL specification. (MIDL stands
for Microsoft's Interface Description Language; it looks like C
header files with some extra annotations, plus a notion of object
interfaces that look like C++ classes without inheritance.)
* A (currently small) library of functions and tools to import COM
components in Caml applications, and export Caml code as COM
components.
%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
%autosetup -p1
%build
mv -t lib runtime/camlidlruntime.h runtime/idlalloc.c
dune_release_pkgs='camlidl'
%ocaml_dune_setup
%ocaml_dune_build
%install
%ocaml_dune_install
%ocaml_create_file_list
%check
dune_test_tolerate_fail='dune_test_tolerate_fail'
%ocaml_dune_test
%files -f %name.files
%_bindir/*
%files devel -f %name.files.devel
%changelog