commit d05279b5e1aab08fb9d6a6ea22ef0698c176d33f
Author: Jan Rękorajski <[email protected]>
Date:   Mon Apr 6 14:20:41 2015 +0000

    - added ocaml_opt bcond
    - rel 8

 plplot.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/plplot.spec b/plplot.spec
index 9e38445..c3fa585 100644
--- a/plplot.spec
+++ b/plplot.spec
@@ -18,12 +18,18 @@
 %bcond_without itcl            # [incr Tcl]/[incr Tk] support in Tcl/Tk binding
 %bcond_without lua             # Lua binding
 %bcond_without ocaml           # OCaml binding
+%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
+
 Summary:       PLplot - a library of functions that are useful for making 
scientific plots
 Summary(pl.UTF-8):     PLplot - biblioteka funkcji przydatnych do tworzenia 
wykresów naukowych
 Name:          plplot
 Version:       5.10.0
-Release:       7
+Release:       8
 License:       LGPL v2+
 Group:         Libraries
 Source0:       
http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
@@ -1003,7 +1009,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/ocaml/plplot
 %{_libdir}/ocaml/plplot/META
 %{_libdir}/ocaml/plplot/libplplot_stubs.a
+%if %{with ocaml_opt}
 %{_libdir}/ocaml/plplot/plplot.a
+%endif
 %{_libdir}/ocaml/plplot/plplot.cm*
 %{_libdir}/ocaml/plplot/plplot.mli
 %{_pkgconfigdir}/plplotd-ocaml.pc
@@ -1018,7 +1026,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/ocaml/plcairo
 %{_libdir}/ocaml/plcairo/META
 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
+%if %{with ocaml_opt}
 %{_libdir}/ocaml/plcairo/plcairo.a
+%endif
 %{_libdir}/ocaml/plcairo/plcairo.cm*
 %{_libdir}/ocaml/plcairo/plcairo.mli
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/plplot.git/commitdiff/d05279b5e1aab08fb9d6a6ea22ef0698c176d33f

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

Reply via email to