[packages/libnbd] - fix install if ocaml is disabled

baggins baggins at pld-linux.org
Thu Mar 11 23:22:41 CET 2021


commit 9f50be2ffcb1a27ae8c468b1ceec7ede585f9e79
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Mar 11 23:22:15 2021 +0100

    - fix install if ocaml is disabled

 libnbd.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libnbd.spec b/libnbd.spec
index 7941c31..e51e243 100644
--- a/libnbd.spec
+++ b/libnbd.spec
@@ -182,7 +182,9 @@ rm -rf $RPM_BUILD_ROOT
 # Delete libtool crap.
 find $RPM_BUILD_ROOT -name '*.la' -delete
 
+%if %{with ocaml}
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.owner
+%endif
 
 # Delete the golang man page since we're not distributing the bindings.
 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/libnbd-golang.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnbd.git/commitdiff/9f50be2ffcb1a27ae8c468b1ceec7ede585f9e79



More information about the pld-cvs-commit mailing list