[packages/ocaml-lablgl] - added ocaml_opt bcond - rel 2

baggins baggins at pld-linux.org
Mon Apr 6 13:05:29 CEST 2015


commit fca531cd9569228a029bcd31435b380cac406069
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 6 11:05:06 2015 +0000

    - added ocaml_opt bcond
    - rel 2

 ocaml-lablgl.spec | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ocaml-lablgl.spec b/ocaml-lablgl.spec
index 656942b..866f25d 100644
--- a/ocaml-lablgl.spec
+++ b/ocaml-lablgl.spec
@@ -1,9 +1,18 @@
+#
+# Conditional build:
+%bcond_without	ocaml_opt	# skip building native optimized binaries (bytecode is always built)
+
+%ifarch x32
+# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
+%undefine	with_ocaml_opt
+%endif
+
 %define		ocaml_ver	1:3.09.2
 Summary:	OpenGL binding for OCaml
 Summary(pl.UTF-8):	Wiązania OpenGL dla OCamla
 Name:		ocaml-lablgl
 Version:	1.05
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries
 #Source0Download: https://forge.ocamlcore.org/frs/?group_id=291
@@ -157,7 +166,7 @@ sed -e 's|^\(X\|TK\)INCLUDES|#&|;
 	s|^GLLIBS.*|GLLIBS = -lGL -lGLU -lXmu|;
 	s|^COPTS.*|COPTS = %{rpmcflags} -c -fPIC|;' \
 	Makefile.config.ex > Makefile.config
-%{__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-lablgl.git/commitdiff/fca531cd9569228a029bcd31435b380cac406069



More information about the pld-cvs-commit mailing list