X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-SDL.git;a=blobdiff_plain;f=ocaml-SDL.spec;h=f23cf67986756f3f864c68cad4891e4cabe2bd90;hp=72b0275f490cfd2fde6b85730b2ef19d2637dd1a;hb=5d030fb9808255ab0a91c7919b4f8c239a446950;hpb=6684267e8ccb2a43987d29ced63ee740a875d121 diff --git a/ocaml-SDL.spec b/ocaml-SDL.spec index 72b0275..f23cf67 100644 --- a/ocaml-SDL.spec +++ b/ocaml-SDL.spec @@ -1,18 +1,22 @@ +%define ocaml_ver 1:3.09.2 Summary: SDL binding for OCaml -Summary(pl): Wi±zania SDL dla OCamla +Summary(pl.UTF-8): Wiązania SDL dla OCamla Name: ocaml-SDL -Version: 0.7.1 -Release: 1 +Version: 0.8.0 +Release: 2 License: GPL Group: Libraries Source0: http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz -# Source0-md5: 3829b20bd975e3bef5195a54e2cd04cb +# Source0-md5: b7ee334cf107867cc8d08cbcc319c9af URL: http://ocamlsdl.sourceforge.net/ BuildRequires: SDL-devel +BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel -BuildRequires: SDL_image-devel -BuildRequires: ocaml >= 3.07 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: ocaml >= %{ocaml_ver} +BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-lablgl-devel %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -24,9 +28,16 @@ between the ML programming language and the SDL C library. This package contains files needed to run bytecode executables using this library. +%description -l pl.UTF-8 +OCamlSDL to próba napisania interfejsu programowego między językiem +programowania ML a biblioteką C SDL. + +Ten pakiet zawiera pliki potrzebne do uruchamiania wykonywalnego +bytecodu używającego tej biblioteki. + %package devel Summary: SDL binding for OCaml - development part -Summary(pl): Wi±zania SDL dla OCamla - cze¶æ programistyczna +Summary(pl.UTF-8): Wiązania SDL dla OCamla - cześć programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml @@ -38,21 +49,29 @@ between the ML programming language and the SDL C library. This package contains files needed to develop OCaml programs using this library. +%description devel -l pl.UTF-8 +OCamlSDL to próba napisania interfejsu programowego między językiem +programowania ML a biblioteką C SDL. + +Ten pakiet zawiera pliki potrzebne do tworzenia programów w OCamlu +używających tej biblioteki. + %prep %setup -q -n ocamlsdl-%{version} %build +cp -f /usr/share/automake/config.* support +%{__aclocal} -I support +%{__autoconf} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs %{__make} install \ - OCAMLLIBDIR=%{_libdir}/ocaml \ - OCAMLSDLDIR=%{_libdir}/ocaml/sdl \ - DESTDIR=$RPM_BUILD_ROOT + OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml %clean rm -rf $RPM_BUILD_ROOT @@ -66,4 +85,4 @@ rm -rf $RPM_BUILD_ROOT %doc README AUTHORS NEWS doc/html doc/ocaml* %dir %{_libdir}/ocaml/sdl %{_libdir}/ocaml/sdl/* -%attr(755, root, root) %{_libdir}/ocaml/stublibs/* +%attr(755,root,root) %{_libdir}/ocaml/stublibs/*.owner