SPECS: ocaml-csv.spec (NEW) - initial revision

baggins baggins at pld-linux.org
Sun Dec 2 13:06:45 CET 2007


Author: baggins                      Date: Sun Dec  2 12:06:45 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
SPECS:
   ocaml-csv.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ocaml-csv.spec
diff -u /dev/null SPECS/ocaml-csv.spec:1.1
--- /dev/null	Sun Dec  2 13:06:45 2007
+++ SPECS/ocaml-csv.spec	Sun Dec  2 13:06:40 2007
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+%define		ocaml_ver	1:3.10.0
+Summary:	A library managing dates and times
+Summary(pl.UTF-8):	Biblioteka do obsługi daty i czasu
+Name:		ocaml-csv
+Version:	1.1.6
+Release:	1
+License:	LGPL + OCaml linking exception
+Group:		Libraries
+URL:		http://merjis.com/developers/csv
+Source0:	http://merjis.com/_file/%{name}-%{version}.tar.gz
+# Source0-md5:	a91851438f9540b1a445087a4d409507
+BuildRequires:	ocaml >= %{ocaml_ver}
+BuildRequires:	ocaml-findlib
+%requires_eq	ocaml-runtime
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Calendar library is a library providing a set of operations
+over dates and times.
+
+%package devel
+Summary:	A library managing dates and times
+Summary(pl.UTF-8):	Biblioteka do obsługi daty i czasu
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+%requires_eq	ocaml
+
+%description devel
+The Calendar library is a library providing a set of operations
+over dates and times.
+
+%prep
+%setup -q
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ocaml/{csv,stublibs}}
+
+install csvtool $RPM_BUILD_ROOT%{_bindir}
+install *.cm[ixa]* *.a $RPM_BUILD_ROOT%{_libdir}/ocaml/csv
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -r test* example.ml $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# META for findlib
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/csv
+echo 'directory = "+csv"' >> META
+install META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/csv
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc *.mli
+%attr(755,root,root) %{_bindir}/*
+%dir %{_libdir}/ocaml/csv
+%{_libdir}/ocaml/csv/*.cm[ixa]*
+%{_libdir}/ocaml/csv/*.a
+%{_examplesdir}/%{name}-%{version}
+%{_libdir}/ocaml/site-lib/csv
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007-12-02 12:06:40  baggins
+- initial revision
+
+Revision 1.1  2007-12-02 11:58:02  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list