]> git.pld-linux.org Git - packages/ocaml-net.git/commitdiff
- add ocaml_opt bcond
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 18:14:49 +0000 (20:14 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 18:14:49 +0000 (20:14 +0200)
ocaml-net.spec

index c8cd083c4dd64a1273b73e061e1da8cf0f48c160..74992f3fb6ca16c671879fb927e5aa74b671c3d7 100644 (file)
@@ -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
This page took 0.037331 seconds and 4 git commands to generate.