diff --git a/README.md b/README.md index 8ab46cf..3b7a867 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ OCamlSDL is an attempt to write a software interface between the ML (Meta Language) programming language and the SDL C library. The ML inplementation we have choosen is OCaml. + diff --git a/ocaml-sdl-0.9.1-safe-string.patch b/ocaml-sdl-0.9.1-safe-string.patch new file mode 100644 index 0000000..7f757e9 --- /dev/null +++ b/ocaml-sdl-0.9.1-safe-string.patch @@ -0,0 +1,18 @@ +--- ocamlsdl-0.9.1.old/src/sdlmouse.ml 2011-04-10 16:33:52.000000000 +0100 ++++ ocamlsdl-0.9.1/src/sdlmouse.ml 2017-11-18 11:24:01.989795950 +0000 +@@ -49,12 +49,12 @@ + = "ml_SDL_Cursor_data" + + let string_of_bits x = +- let s = String.make 8 ' ' in ++ let s = Bytes.make 8 ' ' in + for i=0 to 7 do + if x land (1 lsl i) <> 0 +- then s.[7-i] <- '@' ++ then Bytes.set s (7-i) '@' + done ; +- s ++ Bytes.to_string s + + let pprint_cursor c = + let { data = data ; mask = mask } = cursor_data c in diff --git a/ocaml-sdl.spec b/ocaml-sdl.spec index 18fd853..4de9795 100644 --- a/ocaml-sdl.spec +++ b/ocaml-sdl.spec @@ -2,14 +2,15 @@ Name: ocaml-sdl Version: 0.9.1 -Release: 2mamba +Release: 3mamba Summary: OCamlSDL is an interface between the ML programming language and the SDL C library Group: Development/Bindings Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan -URL: http://downloads.sourceforge.net/home.html +Packager: Silvan Calarco +URL: https://sourceforge.net/create Source: http://sourceforge.net/projects/ocamlsdl/files/OCamlSDL/ocamlsdl-%{version}/ocamlsdl-%{version}.tar.gz +Patch0: ocaml-sdl-0.9.1-safe-string.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -18,20 +19,17 @@ BuildRequires: libSDL_gfx-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel BuildRequires: libSDL_ttf-devel +BuildRequires: ocaml +BuildRequires: ocaml-runtime ## AUTOBUILDREQ-END -BuildRequires: libSDL_gfx-devel >= 2.0.24 +BuildRequires: libSDL_gfx-devel >= 2.0.26 BuildRequires: ocaml BuildRequires: ocaml-findlib -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -# FIXME: optionam build requirement -# LablGL http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html %description OCamlSDL is an attempt to write a software interface between the ML (Meta Language) programming language and the SDL C library. The ML inplementation we have choosen is OCaml. -## remove the following two blocks if there's no devel files %package devel Group: Development/Libraries Summary: Development files for %{name} @@ -40,8 +38,11 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and signature files for developing applications that use %{name}. +%debug_package + %prep %setup -q -n ocamlsdl-%{version} +%patch0 -p1 -b .safe-string %build ./configure \ @@ -83,6 +84,9 @@ make install %doc doc/html/ %changelog +* Fri Dec 31 2021 Silvan Calarco 0.9.1-3mamba +- rebuilt with libSDL_gfx 2.0.26 + * Mon Jul 15 2013 Silvan Calarco 0.9.1-2mamba - rebuilt with libSDL_gfx 2.0.24 - fixed specfile name