代码拉取完成,页面将自动刷新
Name: ocaml-libvirt
Version: 0.6.1.5
Release: 1
Summary: OCaml binding for libvirt
License: LGPLv2+
URL: http://libvirt.org/ocaml/
Source0: http://libvirt.org/sources/ocaml/%{name}-%{version}.tar.gz
# Fixes build with OCaml >= 4.09.
# Upstream commit 75b13978f85b32c7a121aa289d8ebf41ba14ee5a.
Patch1: 0001-Make-const-the-return-value-of-caml_named_value.patch
# Fixes for OCaml 4.10, sent upstream 2020-01-19.
Patch2: 0001-block_peek-memory_peek-Use-bytes-for-return-buffer.patch
Patch3: 0002-String_val-returns-const-char-in-OCaml-4.10.patch
Patch4: 0003-Don-t-try-to-memcpy-into-a-String_val.patch
BuildRequires: ocaml >= 3.10.0 ocaml-ocamldoc ocaml-findlib-devel
BuildRequires: libvirt-devel >= 0.2.1 perl-interpreter gawk make
%description
OCaml bindings for libvirt, allowing you to write OCaml programs and scripts which control virtualisation features.
%package devel
Summary: Development files for ocaml-libvirt
Requires: %{name} = %{version}-%{release}
%description devel
OCaml bindings for libvirt, allowing you to write OCaml programs and scripts which control virtualisation features.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure
%make_build all doc
%make_build opt
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
install -d $RPM_BUILD_ROOT%{_bindir}
make install-opt
%files
%doc COPYING.LIB README ChangeLog
%{_libdir}/ocaml/libvirt
%exclude %{_libdir}/ocaml/libvirt/{*.a,*.cmxa,*.cmx,*.mli}
%{_libdir}/ocaml/stublibs/{*.so,*.so.owner}
%files devel
%doc COPYING.LIB README TODO.libvirt ChangeLog html/*
%{_libdir}/ocaml/libvirt/{*.a,*.cmxa,*.cmx,*.mli}
%changelog
* Thu Jan 20 2022 yangping <yangping69@huawei.com> - 0.6.1.5-1
- Update to 0.6.1.5
* Tue Feb 18 2020 chenli <chenli147@huawei.com> - 0.6.1.4-30
- Init Package.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。