commit d675728c4f40e1a23212566d9bec7aef9b781a8c
Author: Jan Rękorajski <[email protected]>
Date:   Sat Jul 25 20:14:49 2015 +0200

    - add ocaml_opt bcond

 ocaml-net.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-net.spec b/ocaml-net.spec
index c8cd083..74992f3 100644
--- a/ocaml-net.spec
+++ b/ocaml-net.spec
@@ -1,3 +1,12 @@
+#
+# 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
+
 %define                apxs    /usr/sbin/apxs
 %define                apache  /usr/sbin/httpd
 Summary:       Modules for Internet programming in OCaml
@@ -608,7 +617,7 @@ Interfejs dla protokołu SMTP opisanego w RFC 2821.
        -apxs %{apxs} \
        -apache %{apache}
 
-%{__make} -j1 all opt
+%{__make} -j1 all %{?with_ocaml_opt:opt}
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-net.git/commitdiff/d675728c4f40e1a23212566d9bec7aef9b781a8c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to