X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-SDL.git;a=blobdiff_plain;f=ocaml-SDL.spec;h=e8a8c68a1a41f6cd60779c019d286674f2a7cf39;hp=b692a55072b6dc17db6f796038a14626f913999c;hb=4607d6ce8d69e96693f82a4a4a0e864e46922cfa;hpb=b741b82885739f6af8c020e67f75a70015c06a6b diff --git a/ocaml-SDL.spec b/ocaml-SDL.spec index b692a55..e8a8c68 100644 --- a/ocaml-SDL.spec +++ b/ocaml-SDL.spec @@ -2,7 +2,7 @@ Summary: SDL binding for OCaml Summary(pl): Wi±zania SDL dla OCamla Name: ocaml-SDL Version: 0.7.1 -Release: 0.1 +Release: 1 License: GPL Group: Libraries Source0: http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz @@ -11,9 +11,9 @@ URL: http://ocamlsdl.sourceforge.net/ BuildRequires: SDL-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel -BuildRequires: SDLimage-devel -BuildRequires: glut-devel +BuildRequires: SDL_image-devel BuildRequires: ocaml >= 3.07 +BuildRequires: ocaml-lablgl-devel %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -39,55 +39,17 @@ This package contains files needed to develop OCaml programs using this library. %prep -%setup -q -n ocamlsdl +%setup -q -n ocamlsdl-%{version} %build -%{__make} -C gl \ - CC="%{__cc}" \ - CFLAGS="%{rpmcflags} -fPIC" -%{__make} -C hgl \ - CC="%{__cc}" \ - CFLAGS="%{rpmcflags} -fPIC" -%{__make} -C glfw \ - CC="%{__cc}" \ - CFLAGS="%{rpmcflags} -fPIC" \ - X11LIBS="-L/usr/X11R6/%{_lib}" -%{__make} -C glut \ - CC="%{__cc}" \ - CFLAGS="%{rpmcflags} -fPIC" \ - X11LIBS="-L/usr/X11R6/%{_lib}" +%configure +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{gl,stublibs} +install -d $RPM_BUILD_ROOT -install lib/*.cm[ixa]* lib/*.a $RPM_BUILD_ROOT%{_libdir}/ocaml/gl -install lib/dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs - -install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -cp -r demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} - -install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlgl-gl -cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlgl-gl/META < $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/ocamlgl-$f/META <