Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 872683d3a6 | |||
| eb828673e0 | |||
| a9101604f3 |
2
_service
2
_service
@@ -1,7 +1,7 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="filename">ocaml-ctypes</param>
|
||||
<param name="revision">6c2b4f6458a48f396a8a9d0b63693713bae4a832</param>
|
||||
<param name="revision">1962085ff4b4d4bb33a050b413edeeb8fcdd55de</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="submodules">disable</param>
|
||||
<param name="url">https://github.com/yallop/ocaml-ctypes.git</param>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d359ccaa80f09cb64ad3c684ea2a7da842b18a29590726d4aa4b4d3a3d1c6f1
|
||||
size 158804
|
||||
3
ocaml-ctypes-0.24.0.tar.xz
Normal file
3
ocaml-ctypes-0.24.0.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e9ea2157e7f7d6c206b74b9b7d62c2b3928057c008e8e263e324e963a3b11f74
|
||||
size 157996
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 11 11:11:11 UTC 2025 - ohering@suse.de
|
||||
|
||||
- Update to version 0.24.0
|
||||
see included CHANGES.md file for details
|
||||
remove ocaml-ctypes.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 3 03:03:03 UTC 2025 - ohering@suse.de
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
From fe4be538e389d5caf6c0a562cd02e58fda9361cb Mon Sep 17 00:00:00 2001
|
||||
From: Jeremy Yallop <yallop@gmail.com>
|
||||
Date: Tue, 13 Aug 2024 06:41:53 +0100
|
||||
Subject: [PATCH] Add an explicit upcast in the OO-style test.
|
||||
|
||||
---
|
||||
tests/clib/test_functions.c | 5 +++++
|
||||
tests/clib/test_functions.h | 2 ++
|
||||
tests/test-oo_style/stubs/functions.ml | 2 +-
|
||||
3 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/clib/test_functions.c b/tests/clib/test_functions.c
|
||||
index cf81c5a40..44d0f57d8 100644
|
||||
--- a/tests/clib/test_functions.c
|
||||
+++ b/tests/clib/test_functions.c
|
||||
@@ -293,6 +293,11 @@ struct chorse *new_chorse(int colour)
|
||||
h->colour = (enum colour)colour;
|
||||
return h;
|
||||
}
|
||||
+
|
||||
+struct animal *new_chorse_as_animal(int colour)
|
||||
+{
|
||||
+ return (struct animal *)new_chorse(colour);
|
||||
+}
|
||||
/* (End of OO-style example) */
|
||||
|
||||
int accept_pointers(float *float_p,
|
||||
diff --git a/tests/clib/test_functions.h b/tests/clib/test_functions.h
|
||||
index eae2e176a..011cc9369 100644
|
||||
--- a/tests/clib/test_functions.h
|
||||
+++ b/tests/clib/test_functions.h
|
||||
@@ -79,6 +79,8 @@ extern char *chorse_colour(struct chorse *);
|
||||
extern char *chorse_say(struct animal *);
|
||||
extern char *chorse_identify(struct animal *);
|
||||
extern struct chorse *new_chorse(int);
|
||||
+extern struct animal *new_chorse_as_animal(int);
|
||||
+
|
||||
extern int accept_pointers(float *,
|
||||
double *,
|
||||
short *,
|
||||
diff --git a/tests/test-oo_style/stubs/functions.ml b/tests/test-oo_style/stubs/functions.ml
|
||||
index 84ded6f6f..a35fa2cda 100644
|
||||
--- a/tests/test-oo_style/stubs/functions.ml
|
||||
+++ b/tests/test-oo_style/stubs/functions.ml
|
||||
@@ -81,6 +81,6 @@ struct
|
||||
let check_name = foreign "check_name"
|
||||
(ptr animal @-> string @-> returning int)
|
||||
|
||||
- let new_chorse = foreign "new_chorse"
|
||||
+ let new_chorse = foreign "new_chorse_as_animal"
|
||||
(int @-> returning (ptr animal))
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ocaml-ctypes
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -32,7 +32,7 @@ ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64
|
||||
|
||||
%define pkg ocaml-ctypes
|
||||
Name: %pkg%nsuffix
|
||||
Version: 0.23.0
|
||||
Version: 0.24.0
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
Summary: Combinators for binding to C libraries without writing any C
|
||||
@@ -40,11 +40,9 @@ License: ISC
|
||||
Group: Development/Languages/OCaml
|
||||
URL: https://opam.ocaml.org/packages/ctypes
|
||||
Source0: %pkg-%version.tar.xz
|
||||
Patch0: %pkg.patch
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-dune >= 2.9
|
||||
BuildRequires: ocaml-dune >= 3.9
|
||||
BuildRequires: ocaml-rpm-macros >= 20240909
|
||||
BuildRequires: ocamlfind(bigarray-compat)
|
||||
BuildRequires: ocamlfind(bisect_ppx)
|
||||
BuildRequires: ocamlfind(dune-configurator)
|
||||
BuildRequires: ocamlfind(findlib)
|
||||
|
||||
Reference in New Issue
Block a user