SHA256
1
0
forked from pool/libguestfs

remove ocaml bindings files if they are disable via rpm macro

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=149
This commit is contained in:
Olaf Hering 2012-11-13 15:35:37 +00:00 committed by Git OBS Bridge
parent 3330fbe08d
commit a0c4ad6a79

View File

@ -422,6 +422,10 @@ make \
%install
%makeinstall
#remove ocaml bindings files if they are disable via rpm macro
%if !%{with_ocaml_bindings}
rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml
%endif
find $RPM_BUILD_ROOT -type f \( \
-name "virt-list-filesystems" -o -name "virt-list-filesystems.*" -o \
-name "virt-list-partitions" -o -name "virt-list-partitions.*" -o \