[packages/ocaml-benchmark] - new
qboosh
qboosh at pld-linux.org
Thu Sep 27 16:45:28 CEST 2012
commit eb474300e08598f70a259415f3c3d726d1ec9d22
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Sep 27 16:46:31 2012 +0200
- new
ocaml-benchmark.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/ocaml-benchmark.spec b/ocaml-benchmark.spec
new file mode 100644
index 0000000..81f1753
--- /dev/null
+++ b/ocaml-benchmark.spec
@@ -0,0 +1,63 @@
+# $Revision: 1.5 $, $Date: 2011/07/23 06:35:45 $
+Summary: Benchmark - measure/compare run-time of OCaml functions
+Summary(pl.UTF-8): Biblioteka benchmark - mierzenie i porównywanie czasu działania funkcji ocamlowych
+Name: ocaml-benchmark
+Version: 1.1
+Release: 1
+License: LGPL v3 with linking exception
+Group: Development/Languages
+Source0: http://forge.ocamlcore.org/frs/download.php/734/benchmark-%{version}.tar.gz
+# Source0-md5: ae6885082c68f319ded4a1bb25ec5b37
+URL: http://forge.ocamlcore.org/projects/ocaml-benchmark/
+BuildRequires: ocaml >= 3.04-7
+BuildRequires: ocaml-camlp4
+%requires_eq ocaml
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Benchmark provides functions to measure and compare the run-time of
+OCaml functions. It is inspired by the Perl module of the same name.
+
+%description -l pl.UTF-8
+Biblioteka benchmark dostarcza funkcje do mierzenia i porównywania
+czasu działania funkcji ocamlowych. Została zainspirowana modułem
+Perla o tej samej nazwie.
+
+%prep
+%setup -q -n benchmark-%{version}
+
+%build
+ocaml setup.ml -configure \
+ --prefix %{_prefix}
+
+%{__make} all
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/benchmark
+
+%{__make} install \
+ OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+
+mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/benchmark/META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/benchmark
+cat >>$RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/benchmark/META <<EOF
+directory="+benchmark"
+EOF
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/benchmark/benchmark.mli
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt benchmark.mli
+%dir %{_libdir}/ocaml/benchmark
+%{_libdir}/ocaml/benchmark/benchmark.a
+%{_libdir}/ocaml/benchmark/benchmark.cm[aix]*
+%{_libdir}/ocaml/site-lib/benchmark
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-benchmark.git/commitdiff/eb474300e08598f70a259415f3c3d726d1ec9d22
More information about the pld-cvs-commit
mailing list