]> git.pld-linux.org Git - packages/libguestfs.git/commitdiff
- added ocaml_opt bcond auto/th/libguestfs-1.28.6-2
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 6 Apr 2015 08:52:44 +0000 (08:52 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 6 Apr 2015 08:52:44 +0000 (08:52 +0000)
- no erlang, golang, ocaml_opt on x32
- rel 2

libguestfs.spec

index 3259c3563c3cc6aed263bbd00a4eb722b2c0f4e6..dc4adf2ed0c2b10769d2bff21f103686fdc2aaae 100644 (file)
@@ -12,6 +12,7 @@
 %bcond_without java            # Java binding
 %bcond_without lua             # Lua binding
 %bcond_without ocaml           # OCaml binding and tools
+%bcond_without ocaml_opt       # skip building native optimized binaries (bytecode is always built)
 %bcond_without perl            # Perl binding
 %bcond_without perltools       # Perl tools
 %bcond_without php             # PHP binding
 %if 0%{!?php_name:1}
 %define                php_name        php55
 %endif
+
+%ifarch x32
+%undefine      with_erlang
+%undefine      with_golang
+%undefine      with_ocaml_opt
+%endif
+
 %include       /usr/lib/rpm/macros.perl
 %include       /usr/lib/rpm/macros.java
 Summary:       Library and tools for accessing and modifying virtual machine disk images
 Summary(pl.UTF-8):     Biblioteka i narzędzia do dostępu i modyfikacji obrazów dysków maszyn wirtualnych
 Name:          libguestfs
 Version:       1.28.6
-Release:       1
+Release:       2
 License:       LGPL v2+
 Group:         Libraries
 Source0:       http://libguestfs.org/download/1.28-stable/%{name}-%{version}.tar.gz
@@ -800,12 +808,14 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/ocaml/guestfs
 %{_libdir}/ocaml/guestfs/META
 %{_libdir}/ocaml/guestfs/guestfs.cmi
-%{_libdir}/ocaml/guestfs/guestfs.cmx
 %{_libdir}/ocaml/guestfs/guestfs.mli
 %{_libdir}/ocaml/guestfs/libmlguestfs.a
-%{_libdir}/ocaml/guestfs/mlguestfs.a
 %{_libdir}/ocaml/guestfs/mlguestfs.cma
+%if %{with ocaml_opt}
+%{_libdir}/ocaml/guestfs/guestfs.cmx
+%{_libdir}/ocaml/guestfs/mlguestfs.a
 %{_libdir}/ocaml/guestfs/mlguestfs.cmxa
+%endif
 %{_mandir}/man3/guestfs-ocaml.3*
 %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3*
 %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3*
This page took 0.098897 seconds and 4 git commands to generate.