Delete the OCaml man page on i686

We are not building the OCaml subpackage on i686, but the man page is
built anyway.  Fixes:

error: Installed (but unpackaged) file(s) found:
   /usr/share/man/man3/libnbd-ocaml.3.gz
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/man/man3/libnbd-ocaml.3.gz
This commit is contained in:
Richard W.M. Jones 2023-07-11 23:28:38 +01:00
parent f817d55251
commit 64f779d6fb

View File

@ -241,6 +241,11 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
# Delete the golang man page since we're not distributing the bindings.
rm $RPM_BUILD_ROOT%{_mandir}/man3/libnbd-golang.3*
%ifarch %{ix86}
# Delete the OCaml man page on i686.
rm $RPM_BUILD_ROOT%{_mandir}/man3/libnbd-ocaml.3*
%endif
%if 0%{?rhel}
# Delete nbdublk on RHEL.
rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nbdublk