From: areq Date: Sat, 18 Apr 2009 18:49:29 +0000 (+0000) Subject: - fix(?) META X-Git-Tag: auto/th/ocaml-calendar-2_01_1-2 X-Git-Url: https://git.pld-linux.org/?p=packages%2Focaml-calendar.git;a=commitdiff_plain;h=808f1aea26d970f8c56f11088dc4a894f6b4f4c1 - fix(?) META Changed files: ocaml-calendar.spec -> 1.8 --- diff --git a/ocaml-calendar.spec b/ocaml-calendar.spec index c2fb415..8d3227a 100644 --- a/ocaml-calendar.spec +++ b/ocaml-calendar.spec @@ -3,7 +3,7 @@ Summary: OCaml library managing dates and times Summary(pl.UTF-8): Biblioteka OCamla do obsługi daty i czasu Name: ocaml-calendar Version: 2.01.1 -Release: 1 +Release: 2 License: LGPL + OCaml linking exception Group: Libraries Source0: http://forge.ocamlcore.org/frs/download.php/173/calendar-%{name}.tar.gz @@ -45,9 +45,13 @@ czasie. %install rm -rf $RPM_BUILD_ROOT + +export DESTDIR=$RPM_BUILD_ROOT +export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{calendar,stublibs} -install src/*.cm[ixa]* target/*.a $RPM_BUILD_ROOT%{_libdir}/ocaml/calendar +%{__make} \ + install install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} @@ -56,6 +60,7 @@ cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/calendar echo 'directory = "+calendar"' >> META install META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/calendar +%{__sed} -i -e 's/calendarLib.cm[ox] //' $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/calendar/META %clean rm -rf $RPM_BUILD_ROOT