File ocaml-camlidl.patch of Package ocaml-camlidl

--- /dev/null
+++ b/compiler/dune
@@ -0,0 +1,24 @@
+(executable
+ (public_name camlidl)
+ (package camlidl)
+ (name main)
+ (modules clflags config constdecl cvttyp cvtval enum enumdecl file fixlabels
+   funct idlarray idltypes intf lexer_midl lexpr linenum main normalize parse
+   parse_aux parser_midl predef prefix struct structdecl typedef union
+   uniondecl utils variables)
+ (flags -w -9-27-33)
+ (modules_without_implementation idltypes))
+
+(ocamllex
+ (modules lexer_midl linenum))
+
+(ocamlyacc
+ (modules parser_midl))
+
+(rule
+ (target config.ml)
+ (deps config.mlp)
+ (action
+  (with-stdout-to
+   %{target}
+   (run %{bin:sed} -e "s@%%CPP%%@cpp@" %{deps}))))
--- /dev/null
+++ b/dune-project
@@ -0,0 +1,28 @@
+(lang dune 1.11)
+
+(generate_opam_files true)
+
+(license "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception")
+
+(authors "Xavier Leroy <xavier.leroy@college-de-france.fr>")
+
+(maintainers "Nicolas Berthier <m@nberth.space>")
+
+(homepage "https://github.com/xavierleroy/camlidl")
+
+(bug_reports "https://github.com/xavierleroy/camlidl/issues")
+
+(package
+ (name camlidl)
+ (synopsis "Stub code generator for OCaml")
+ (description
+   "CamlIDL is a stub code generator for OCaml. It automates the
+   generation of C stub code required for the Caml/C interface, based on
+   an MIDL specification. Also provides some support for Microsoft's COM
+   software components.")
+ (depends
+  (dune
+   (>= 1.11))
+  dune-configurator
+  (ocaml
+   (>= 4.03.0))))
--- /dev/null
+++ b/lib/dune
@@ -0,0 +1,12 @@
+(library
+ (public_name camlidl)
+ (modules com)
+ (wrapped false)
+ (c_names idlalloc)
+ (synopsis "Stub code generator for OCaml"))
+
+(install
+ (section lib_root)
+ (package camlidl)
+ (files
+  (camlidlruntime.h as caml/camlidlruntime.h)))
openSUSE Build Service is sponsored by