%define real_name ocamlsdl %define name ocaml-SDL %define real_version 0.6.1 %define version 0.6.1 %define release 1mdk Summary: Wrapper around the cross platform Simple DirectMedia Layer game library. Name: %{name} Version: %{version} Release: %{release} License: LGPL Source: http://belnet.dl.sourceforge.net/sourceforge/ocamlsdl/%{real_name}-%{version}.tar.bz2 Patch0: ocamlsdl-0.6.1-fix-missing-info-dir-entry.patch.bz2 Patch1: ocamlsdl-0.6.1-fix-samples-makefile.patch.bz2 Group: Development/Other URL: http://ocamlsdl.sourceforge.net/ BuildRequires: libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libpng-devel ocaml BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot/ # Author: brunel@mail.dotcom.fr %package -n %{name}-devel Summary: Wrapper around the cross platform Simple DirectMedia Layer game library. Group: Development/Other Provides: %{real_name} = %{version}-%{release} Requires: libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libpng-devel ocaml %description Ocaml-SDL is a wrapper around the cross platform Simple Direct Layer game library. Essentially it allows you to write cross platform games in ocaml, using 2d (SDL), or 3d (OpenGL), or a combination of both if you wish. %description -n %{name}-devel Ocaml-SDL is a wrapper around the cross platform Simple Direct Layer game library. Essentially it allows you to write cross platform games in ocaml, using 2d (SDL), or 3d (OpenGL), or a combination of both if you wish. %prep %setup -q -n %{real_name}-%{version} %patch0 -p0 %patch1 -p0 %build %configure2_5x make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_infodir} install doc/*.info* $RPM_BUILD_ROOT/%{_infodir} %clean rm -rf $RPM_BUILD_ROOT %post -n %{name}-devel %_install_info ocamlsdl.info %preun -n %{name}-devel %_remove_install_info ocamlsdl.info %files -n %{name}-devel %defattr(-, root, root) %doc README samples doc/html doc/foobar.ml doc/Makefile doc/OCamlMakefile makefile.toplevel %{_libdir}/ocaml/* %{_infodir}/* %changelog * Sat Feb 15 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 0.6.1-1mdk - new version * Wed Sep 25 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-6mdk - add my "fix a few things" patch to make it usable for my Simon program * Mon Sep 2 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-5mdk - ocaml changed (and error message suck bigtime!! "/usr/lib/ocaml/sdl/sdl.cmi is not a compiled interface", nonsense..) * Tue Jul 30 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-4mdk - recompile against latest libstdc++ * Sun Jul 21 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-3mdk - recompile against new vorbis stuff * Mon Apr 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-2mdk - rebuild for new alsa * Mon Apr 22 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-1mdk - final 0.5 version * Mon Mar 11 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-0.pre3.2mdk - patch #0: color rgb values are unsigned * Sun Mar 10 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.5-1mdk - first mandrake package