[packages/cppo] - cleanup ocaml_opt bcond - rel 2

baggins baggins at pld-linux.org
Sat Jul 25 19:57:26 CEST 2015


commit 2cb517ac9f187be43d1d22037b10e3d077685e94
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 25 19:57:09 2015 +0200

    - cleanup ocaml_opt bcond
    - rel 2

 cppo.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/cppo.spec b/cppo.spec
index 26f06fe..fb12730 100644
--- a/cppo.spec
+++ b/cppo.spec
@@ -1,13 +1,18 @@
 #
 # Conditional build:
-%bcond_without	opt		# build opt
+%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		debug_package	%{nil}
 Summary:	cpp for OCaml
 Summary(pl.UTF-8):	Wiązania cppo dla OCamla
 Name:		cppo
 Version:	0.9.3
-Release:	1
+Release:	3
 License:	BSD
 Group:		Applications
 Source0:	http://mjambon.com/releases/cppo/%{name}-%{version}.tar.gz
@@ -29,7 +34,7 @@ używających tej biblioteki.
 %setup -q
 
 %build
-%{__make} -j1 all %{?with_opt:opt} \
+%{__make} -j1 all %{?with_ocaml_opt:opt} \
 	CC="%{__cc} %{rpmcflags} -fPIC"
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cppo.git/commitdiff/2cb517ac9f187be43d1d22037b10e3d077685e94



More information about the pld-cvs-commit mailing list