From 6d30221bee6301b60687ac6729ced165a9c8ffef Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 20 Jun 2015 11:58:07 +0100 Subject: [PATCH] Only run ldconfig when nbdkit-plugin-ocaml is built. --- nbdkit.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nbdkit.spec b/nbdkit.spec index 06f1d6c..9bb9178 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -252,9 +252,10 @@ make check %endif +%ifarch %{ocaml_native_compiler} %post plugin-ocaml -p /sbin/ldconfig - %postun plugin-ocaml -p /sbin/ldconfig +%endif %files