rebuilt with libSDL_gfx 2.0.26 [release 0.9.1-3mamba;Fri Dec 31 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 08:01:45 +01:00
parent 0e1e142ae7
commit 3219cfc020
3 changed files with 32 additions and 9 deletions

View File

@ -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.

View File

@ -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

View File

@ -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 <davide.madrisan@gmail.com>
URL: http://downloads.sourceforge.net/home.html
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.9.1-3mamba
- rebuilt with libSDL_gfx 2.0.26
* Mon Jul 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-2mamba
- rebuilt with libSDL_gfx 2.0.24
- fixed specfile name