Author: guillomovitch
Date: Wed Feb 14 21:16:16 2007
New Revision: 121129

Modified:
   packages/cooker/ocaml-SDL/current/SPECS/ocaml-SDL.spec

Log:
install through findlib under site-lib hierarchy

Modified: packages/cooker/ocaml-SDL/current/SPECS/ocaml-SDL.spec
==============================================================================
--- packages/cooker/ocaml-SDL/current/SPECS/ocaml-SDL.spec      (original)
+++ packages/cooker/ocaml-SDL/current/SPECS/ocaml-SDL.spec      Wed Feb 14 
21:16:16 2007
@@ -1,7 +1,8 @@
 %define real_name      ocamlsdl
 %define name           ocaml-SDL
 %define version                0.7.2
-%define release                %mkrel 5
+%define release                %mkrel 6
+%define ocaml_sitelib %(if [ -x /usr/bin/ocamlc ]; then ocamlc 
-where;fi)/site-lib
 
 Name:          %{name}
 Version:       %{version}
@@ -9,7 +10,7 @@
 Summary:       Wrapper around the cross platform Simple DirectMedia Layer game 
library
 License:       LGPL
 Source:                
http://belnet.dl.sourceforge.net/sourceforge/ocamlsdl/%{real_name}-%{version}.tar.bz2
-#Patch1:               ocamlsdl-0.6.1-fix-samples-makefile.patch.bz2
+Patch0:                ocamlsdl-0.7.2.install-destdir.patch
 Group:         Development/Other
 URL:           http://ocamlsdl.sourceforge.net/
 BuildRequires: libSDL-devel
@@ -20,6 +21,7 @@
 BuildRequires: libncurses-devel
 BuildRequires: ocaml
 BuildRequires: ocaml-lablgl-devel
+BuildRequires:  findlib
 BuildRoot:     %{_tmppath}/%{name}-%{version}
 
 %package -n %{name}-devel
@@ -44,15 +46,17 @@
 
 %prep
 %setup -q -n %{real_name}-%{version}
+%patch -p1
 
 %build
-%configure2_5x --without-findlib
+%configure
 make
 
 %install
 rm -rf %{buildroot}
-install -d %{buildroot}%{_prefix}/lib/ocaml
-make install DESTDIR=%{buildroot}
+install -d %{buildroot}%{ocaml_sitelib}
+install -d %{buildroot}%{ocaml_sitelib}/stublibs
+make install OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{ocaml_sitelib}"
 mkdir -p %{buildroot}/%{_infodir}
 install doc/*.info* %{buildroot}/%{_infodir}
 

Reply via email to