[packages/ocaml-benchmark] - up to 1.6

baggins baggins at pld-linux.org
Thu Mar 25 22:12:35 CET 2021


commit 5a8cb839d7c99afd41459f27cb13366138a3de1a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Mar 25 22:12:23 2021 +0100

    - up to 1.6

 ocaml-benchmark.spec | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)
---
diff --git a/ocaml-benchmark.spec b/ocaml-benchmark.spec
index eb80bd9..8939196 100644
--- a/ocaml-benchmark.spec
+++ b/ocaml-benchmark.spec
@@ -6,18 +6,21 @@
 %undefine	with_ocaml_opt
 %endif
 
+%define		_enable_debug_packages	0
+
 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.3
-Release:	4
+Version:	1.6
+Release:	1
 License:	LGPL v3 with linking exception
 Group:		Development/Languages
-Source0:	http://forge.ocamlcore.org/frs/download.php/1252/benchmark-%{version}.tar.gz
-# Source0-md5:	c265ba144aaad600a3714f08d43596cc
-URL:		http://forge.ocamlcore.org/projects/ocaml-benchmark/
+Source0:	https://github.com/Chris00/ocaml-benchmark/archive/%{version}/benchmark-%{version}.tar.gz
+# Source0-md5:	3e716610143aeda29bace893ae3b056b
+URL:		https://github.com/Chris00/ocaml-benchmark
 BuildRequires:	ocaml >= 3.04-7
 BuildRequires:	ocaml-camlp4
+BuildRequires:	ocaml-dune
 BuildRequires:	ocaml-findlib
 %requires_eq	ocaml
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,25 +35,22 @@ czasu działania funkcji ocamlowych. Została zainspirowana modułem
 Perla o tej samej nazwie.
 
 %prep
-%setup -q -n benchmark-%{version}
+%setup -q
 
 %build
-ocaml setup.ml -configure \
-	--prefix %{_prefix}
-
-%{__make} all
+%{__make}
 
 %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
+dune install \
+	--destdir $RPM_BUILD_ROOT
 
-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
+cat >>$RPM_BUILD_ROOT%{_libdir}/ocaml/benchmark/META <<EOF
 directory="+benchmark"
 EOF
+ln -sr $RPM_BUILD_ROOT%{_libdir}/ocaml/benchmark/META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/benchmark
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -63,15 +63,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md benchmark.mli
+%doc README.md src/benchmark.mli
 %dir %{_libdir}/ocaml/benchmark
+%{_libdir}/ocaml/benchmark/META
 %{_libdir}/ocaml/benchmark/benchmark.cma
 %{_libdir}/ocaml/benchmark/benchmark.cmi
+%{_libdir}/ocaml/benchmark/benchmark.cmt
+%{_libdir}/ocaml/benchmark/benchmark.cmti
 %if %{with ocaml_opt}
 %{_libdir}/ocaml/benchmark/benchmark.a
 %{_libdir}/ocaml/benchmark/benchmark.cmx
 %{_libdir}/ocaml/benchmark/benchmark.cmxa
 %{_libdir}/ocaml/benchmark/benchmark.cmxs
 %endif
+%{_libdir}/ocaml/benchmark/dune-package
+%{_libdir}/ocaml/benchmark/opam
 %{_libdir}/ocaml/site-lib/benchmark
 %{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-benchmark.git/commitdiff/5a8cb839d7c99afd41459f27cb13366138a3de1a



More information about the pld-cvs-commit mailing list