Name: ocaml-csv Version: 1.2.2 Release: %mkrel 2 Summary: OCaml library for reading and writing CSV files Group: Development/Other License: LGPLv2+ URL: http://csv.forge.ocamlcore.org/ Source0: http://forge.ocamlcore.org/frs/download.php/613/csv-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: ocaml >= 3.10.1 BuildRequires: ocaml-findlib %description This OCaml library can read and write CSV files, including all extensions used by Excel - eg. quotes, newlines, 8 bit characters in fields, quote-0 etc. The library comes with a handy command line tool called csvtool for handling CSV files from shell scripts. %package devel Summary: Development files for %{name} Group: Development/Other Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n csv-%{version} %build ocaml setup.ml -configure ocaml setup.ml -build strip _build/examples/csvtool %check ocaml setup.ml -test %install rm -rf %{buildroot} export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR mkdir -p $OCAMLFIND_DESTDIR/site-lib/ mkdir -p $DESTDIR/%{_bindir} ocaml setup.ml -install BINDIR=%{_bindir} cp _build/examples/csvtool %{buildroot}/%{_bindir}/csvtool %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.txt %{_libdir}/ocaml/csv %exclude %{_libdir}/ocaml/csv/*.a %exclude %{_libdir}/ocaml/csv/*.cmxa %exclude %{_libdir}/ocaml/csv/*.mli %{_bindir}/csvtool %files devel %defattr(-,root,root,-) %doc README.txt %{_libdir}/ocaml/csv/*.a %{_libdir}/ocaml/csv/*.cmxa %{_libdir}/ocaml/csv/*.mli %changelog * Sat Oct 22 2011 malo <malo> 1.2.2-2.mga2 + Revision: 157423 - rebuild for Ocaml 3.12.1 * Sun Sep 25 2011 shlomif <shlomif> 1.2.2-1.mga2 + Revision: 147696 - New version - 1.2.2 - thanks to Malo. * Sat Apr 30 2011 misc <misc> 1.1.7-4.mga1 + Revision: 93951 - increase Release for upgrade from Mandriva * Mon Mar 21 2011 saispo <saispo> 1.1.7-1.mga1 + Revision: 75210 - imported package ocaml-csv