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. 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. 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 Name: ocaml-sdl
Version: 0.9.1 Version: 0.9.1
Release: 2mamba Release: 3mamba
Summary: OCamlSDL is an interface between the ML programming language and the SDL C library Summary: OCamlSDL is an interface between the ML programming language and the SDL C library
Group: Development/Bindings Group: Development/Bindings
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://downloads.sourceforge.net/home.html URL: https://sourceforge.net/create
Source: http://sourceforge.net/projects/ocamlsdl/files/OCamlSDL/ocamlsdl-%{version}/ocamlsdl-%{version}.tar.gz 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 License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -18,20 +19,17 @@ BuildRequires: libSDL_gfx-devel
BuildRequires: libSDL_image-devel BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_ttf-devel BuildRequires: libSDL_ttf-devel
BuildRequires: ocaml
BuildRequires: ocaml-runtime
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libSDL_gfx-devel >= 2.0.24 BuildRequires: libSDL_gfx-devel >= 2.0.26
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-findlib 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 %description
OCamlSDL is an attempt to write a software interface between the ML (Meta Language) programming language and the SDL C library. 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. The ML inplementation we have choosen is OCaml.
## remove the following two blocks if there's no devel files
%package devel %package devel
Group: Development/Libraries Group: Development/Libraries
Summary: Development files for %{name} Summary: Development files for %{name}
@ -40,8 +38,11 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package contains libraries and signature files for developing applications that use %{name}. This package contains libraries and signature files for developing applications that use %{name}.
%debug_package
%prep %prep
%setup -q -n ocamlsdl-%{version} %setup -q -n ocamlsdl-%{version}
%patch0 -p1 -b .safe-string
%build %build
./configure \ ./configure \
@ -83,6 +84,9 @@ make install
%doc doc/html/ %doc doc/html/
%changelog %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 * Mon Jul 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-2mamba
- rebuilt with libSDL_gfx 2.0.24 - rebuilt with libSDL_gfx 2.0.24
- fixed specfile name - fixed specfile name