85 lines
2.5 KiB
RPMSpec
85 lines
2.5 KiB
RPMSpec
Name: ocaml-libvirt
|
|
Version: 0.6.1.4
|
|
Release: 30
|
|
Summary: OCaml binding for libvirt
|
|
License: LGPLv2+
|
|
|
|
URL: http://libvirt.org/ocaml/
|
|
Source0: http://libvirt.org/sources/ocaml/%{name}-%{version}.tar.gz
|
|
|
|
# Upstream patch to fix int types.
|
|
Patch0001: 0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
|
|
|
|
# Upstream patch to add virDomainCreateXML binding.
|
|
Patch0002: 0001-Add-a-binding-for-virDomainCreateXML.patch
|
|
|
|
# Upstream patches to fix error handling.
|
|
Patch0003: 0001-Suppress-errors-to-stderr-and-use-thread-local-virEr.patch
|
|
Patch0004: 0002-Don-t-bother-checking-return-from-virInitialize.patch
|
|
|
|
# Upstream patch to remove unused function.
|
|
Patch0005: 0001-Remove-unused-not_supported-function.patch
|
|
|
|
# Upstream patches to tidy up warnings.
|
|
Patch0006: 0001-Use-g-warn-error.patch
|
|
Patch0007: 0002-Update-dependencies.patch
|
|
|
|
# Upstream patches to add binding for virConnectGetAllDomainStats.
|
|
Patch0008: 0003-Add-a-binding-for-virConnectGetAllDomainStats-RHBZ-1.patch
|
|
Patch0009: 0004-examples-Print-more-stats-in-the-get_all_domain_stat.patch
|
|
Patch0010: 0005-Change-binding-of-virConnectGetAllDomainStats-to-ret.patch
|
|
|
|
# Upstream patch to use -safe-string.
|
|
Patch0011: 0001-Use-safe-string-and-fix-the-library.patch
|
|
|
|
BuildRequires: ocaml >= 3.10.0 ocaml-ocamldoc ocaml-findlib-devel
|
|
BuildRequires: libvirt-devel >= 0.2.1 perl-interpreter gawk
|
|
|
|
%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
|
|
* Tue Feb 18 2020 chenli <chenli147@huawei.com> - 0.6.1.4-30
|
|
- Init Package.
|
|
|
|
|