Author: guillomovitch
Date: Wed Feb 14 17:29:19 2007
New Revision: 121013

Modified:
   packages/cooker/ocaml-xml-light/current/SPECS/ocaml-xml-light.spec

Log:
use new ocaml macro

Modified: packages/cooker/ocaml-xml-light/current/SPECS/ocaml-xml-light.spec
==============================================================================
--- packages/cooker/ocaml-xml-light/current/SPECS/ocaml-xml-light.spec  
(original)
+++ packages/cooker/ocaml-xml-light/current/SPECS/ocaml-xml-light.spec  Wed Feb 
14 17:29:19 2007
@@ -2,6 +2,7 @@
 %define name           ocaml-%{base_name}
 %define version                2.2
 %define release                %mkrel 7
+%define ocaml_sitelib %(if [ -x /usr/bin/ocamlc ]; then ocamlc 
-where;fi)/site-lib
 
 Name:          %{name}
 Version:       %{version}
@@ -41,9 +42,8 @@
 
 %install
 rm -rf %{buildroot}
-destdir=`ocamlc -where`/site-lib/xml-light
-install -d %{buildroot}$destdir
-make install INSTALLDIR=%{buildroot}$destdir
+install -d %{buildroot}%{ocaml_sitelib}/xml-light
+make install INSTALLDIR=%{buildroot}%{ocaml_sitelib}/xml-light
 
 %clean
 rm -rf %{buildroot}
@@ -51,4 +51,4 @@
 %files devel
 %defattr(-,root,root)
 %doc README
-%{_libdir}/ocaml/site-lib/xml-light
+%{ocaml_sitelib}/xml-light

Reply via email to