- Enable building the ocaml bindings for libnbd.
virt-v2v has added a dependency on ocaml bindings from libnbd beginning with virt-v2v version 2.0.0. libnbd.spec OBS-URL: https://build.opensuse.org/package/show/Virtualization/libnbd?expand=0&rev=12
This commit is contained in:
parent
d6ffee710e
commit
33411e32cd
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 12 16:25:41 MDT 2022 - carnold@suse.com
|
||||||
|
|
||||||
|
- Enable building the ocaml bindings for libnbd.
|
||||||
|
virt-v2v has added a dependency on ocaml bindings from libnbd
|
||||||
|
beginning with virt-v2v version 2.0.0.
|
||||||
|
libnbd.spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 08 16:46:29 UTC 2022 - jfehlig@suse.com
|
Tue Feb 08 16:46:29 UTC 2022 - jfehlig@suse.com
|
||||||
|
|
||||||
|
17
libnbd.spec
17
libnbd.spec
@ -29,6 +29,7 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
BuildRequires: ocaml-findlib
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: ocaml(compiler)
|
BuildRequires: ocaml(compiler)
|
||||||
BuildRequires: perl(Pod::Man)
|
BuildRequires: perl(Pod::Man)
|
||||||
@ -102,6 +103,7 @@ for %{name}.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--with-tls-priority=@LIBNBD,SYSTEM \
|
--with-tls-priority=@LIBNBD,SYSTEM \
|
||||||
@ -121,9 +123,6 @@ find "%{buildroot}" -name '*.la' -delete
|
|||||||
# Delete the golang man page since we're not distributing the bindings.
|
# Delete the golang man page since we're not distributing the bindings.
|
||||||
rm %{buildroot}/%{_mandir}/man3/libnbd-golang.3*
|
rm %{buildroot}/%{_mandir}/man3/libnbd-golang.3*
|
||||||
|
|
||||||
# Delete the ocaml man page. 'make install' should be fixed to not install it when ocaml is disabled
|
|
||||||
rm %{buildroot}/%{_mandir}/man3/libnbd-ocaml.3*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# All fuse tests fail in Koji with:
|
# All fuse tests fail in Koji with:
|
||||||
# fusermount: entry for fuse/test-*.d not found in /etc/mtab
|
# fusermount: entry for fuse/test-*.d not found in /etc/mtab
|
||||||
@ -156,12 +155,24 @@ done
|
|||||||
%license COPYING.LIB
|
%license COPYING.LIB
|
||||||
%{_libdir}/libnbd.so.%{sover}
|
%{_libdir}/libnbd.so.%{sover}
|
||||||
%{_libdir}/libnbd.so.%{sover}.*
|
%{_libdir}/libnbd.so.%{sover}.*
|
||||||
|
%dir %{_libdir}/ocaml/nbd
|
||||||
|
%{_libdir}/ocaml/nbd/META
|
||||||
|
%{_libdir}/ocaml/nbd/NBD.cmi
|
||||||
|
%{_libdir}/ocaml/nbd/mlnbd.cma
|
||||||
|
%{_libdir}/ocaml/stublibs/dllmlnbd.so
|
||||||
|
%{_libdir}/ocaml/stublibs/dllmlnbd.so.owner
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/libnbd.h
|
%{_includedir}/libnbd.h
|
||||||
%{_libdir}/libnbd.so
|
%{_libdir}/libnbd.so
|
||||||
%{_libdir}/pkgconfig/libnbd.pc
|
%{_libdir}/pkgconfig/libnbd.pc
|
||||||
|
%{_libdir}/ocaml/nbd/NBD.cmx
|
||||||
|
%{_libdir}/ocaml/nbd/mlnbd.cmxa
|
||||||
|
%{_libdir}/ocaml/nbd/NBD.mli
|
||||||
|
%{_libdir}/ocaml/nbd/mlnbd.a
|
||||||
|
%{_libdir}/ocaml/nbd/libmlnbd.a
|
||||||
%{_mandir}/man3/libnbd.3*
|
%{_mandir}/man3/libnbd.3*
|
||||||
|
%{_mandir}/man3/libnbd-ocaml.3.gz
|
||||||
%{_mandir}/man1/libnbd-release-notes-1.*.1*
|
%{_mandir}/man1/libnbd-release-notes-1.*.1*
|
||||||
%{_mandir}/man3/libnbd-security.3*
|
%{_mandir}/man3/libnbd-security.3*
|
||||||
%{_mandir}/man3/nbd_*.3*
|
%{_mandir}/man3/nbd_*.3*
|
||||||
|
Loading…
Reference in New Issue
Block a user