[packages/ocaml-cryptokit] - added ocaml_opt bcond - rel 3

baggins baggins at pld-linux.org
Sat Jul 25 14:39:26 CEST 2015


commit 7254fe21f22998c1b1dbe49be38e235dfe2cf84f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 25 14:39:12 2015 +0200

    - added ocaml_opt bcond
    - rel 3

 ocaml-cryptokit.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ocaml-cryptokit.spec b/ocaml-cryptokit.spec
index 3b17214..8efd1d1 100644
--- a/ocaml-cryptokit.spec
+++ b/ocaml-cryptokit.spec
@@ -1,15 +1,23 @@
-%define		ocaml_ver	1:3.09.2
+#
+# Conditional build:
+%bcond_without	ocaml_opt	# skip building native optimized binaries (bytecode is always built)
+
+# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
+%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
+%undefine	with_ocaml_opt
+%endif
+
 Summary:	Cryptographic toolkit for OCaml
 Summary(pl.UTF-8):	Biblioteka kryptograficzna dla OCamla
 Name:		ocaml-cryptokit
 Version:	1.9
-Release:	2
+Release:	3
 License:	LGPL w/ linking exceptions
 Group:		Libraries
 Source0:	http://forge.ocamlcore.org/frs/download.php/1229/cryptokit-%{version}.tar.gz
 # Source0-md5:	4432a426c9d260822f4ff2b0750413de
 URL:		http://pauillac.inria.fr/~xleroy/software.html
-BuildRequires:	ocaml >= %{ocaml_ver}
+BuildRequires:	ocaml >= 1:3.09.2
 BuildRequires:	zlib-devel
 %requires_eq	ocaml-runtime
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -80,7 +88,7 @@ tej biblioteki.
 ./configure \
 	--exec-prefix %{_prefix} \
 	--prefix %{_prefix} \
-	--enable-bench
+	%{?with_ocaml_opt:--enable-bench}
 
 %{__make} all \
 	CFLAGS="%{rpmcflags} -fPIC"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-cryptokit.git/commitdiff/7254fe21f22998c1b1dbe49be38e235dfe2cf84f



More information about the pld-cvs-commit mailing list