[projects/template-specs] - added setting wrt ocaml opt

baggins baggins at pld-linux.org
Sun Mar 1 11:53:29 CET 2015


commit e24c43097bc6b5e8de0dd8f3f780825193afc0ea
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 1 11:53:13 2015 +0100

    - added setting wrt ocaml opt

 ocaml.spec | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/ocaml.spec b/ocaml.spec
index b308efd..616136a 100644
--- a/ocaml.spec
+++ b/ocaml.spec
@@ -2,6 +2,16 @@
 # Conditional build:
 %bcond_without	ocaml_opt		# build opt
 
+%ifarch x32
+%undefine▸      with_opt
+%endif
+
+%if %{without ocaml_opt}
+%define▸▸       no_install_post_strip▸  1
+# no opt means no native binary, stripping bytecode breaks such programs
+%define▸▸       _enable_debug_packages▸ 0
+%endif
+
 %define		module	%{module}
 Summary:	%{module} binding for OCaml
 Summary(pl.UTF-8):	Wiązania %{module} dla OCamla
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/e24c43097bc6b5e8de0dd8f3f780825193afc0ea



More information about the pld-cvs-commit mailing list