[packages/ocaml-benchmark] - added ocaml_opt bcond - release 2 (ocaml rebuild)
qboosh
qboosh at pld-linux.org
Sun Jul 19 07:51:52 CEST 2015
commit 43e233b2b3e873faaf2d95f1b3c140b3cefa04b6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 19 07:53:09 2015 +0200
- added ocaml_opt bcond
- release 2 (ocaml rebuild)
ocaml-benchmark.spec | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/ocaml-benchmark.spec b/ocaml-benchmark.spec
index 14d595e..1a3402f 100644
--- a/ocaml-benchmark.spec
+++ b/ocaml-benchmark.spec
@@ -1,8 +1,16 @@
+#
+# Conditional build:
+%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
+
+%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
+%undefine with_ocaml_opt
+%endif
+
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: 1
+Release: 2
License: LGPL v3 with linking exception
Group: Development/Languages
Source0: http://forge.ocamlcore.org/frs/download.php/1252/benchmark-%{version}.tar.gz
@@ -57,7 +65,13 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md benchmark.mli
%dir %{_libdir}/ocaml/benchmark
+%{_libdir}/ocaml/benchmark/benchmark.cma
+%{_libdir}/ocaml/benchmark/benchmark.cmi
+%if %{with ocaml_opt}
%{_libdir}/ocaml/benchmark/benchmark.a
-%{_libdir}/ocaml/benchmark/benchmark.cm[aix]*
+%{_libdir}/ocaml/benchmark/benchmark.cmx
+%{_libdir}/ocaml/benchmark/benchmark.cmxa
+%{_libdir}/ocaml/benchmark/benchmark.cmxs
+%endif
%{_libdir}/ocaml/site-lib/benchmark
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-benchmark.git/commitdiff/43e233b2b3e873faaf2d95f1b3c140b3cefa04b6
More information about the pld-cvs-commit
mailing list