]> git.pld-linux.org Git - packages/ocaml-SDL.git/blobdiff - ocaml-SDL.spec
- refresh config.sub, release 2
[packages/ocaml-SDL.git] / ocaml-SDL.spec
index 3005717368bc6fa8275f00eb4336c67706abd079..0f1c95d683ff0e2564e288586ebc0665c5cd3fa9 100644 (file)
@@ -2,7 +2,7 @@ Summary:        SDL binding for OCaml
 Summary(pl):   Wi±zania SDL dla OCamla
 Name:          ocaml-SDL
 Version:       0.7.2
-Release:       0.1
+Release:       2
 License:       GPL
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz
@@ -12,7 +12,10 @@ BuildRequires:       SDL-devel
 BuildRequires: SDL_image-devel
 BuildRequires: SDL_mixer-devel
 BuildRequires: SDL_ttf-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: ocaml >= 3.07
+BuildRequires: ocaml-findlib-devel
 BuildRequires: ocaml-lablgl-devel
 %requires_eq   ocaml-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,17 +59,17 @@ u
 %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%{_libdir}/ocaml
+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
@@ -81,4 +84,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
This page took 0.052434 seconds and 4 git commands to generate.