ocaml-libvirt/ocaml-libvirt.spec
2023-09-21 16:12:37 +08:00

66 lines
1.6 KiB
RPMSpec

Name: ocaml-libvirt
Version: 0.6.1.7
Release: 1
Summary: OCaml binding for libvirt
License: LGPLv2+
URL: http://libvirt.org/ocaml/
Source0: https://gitlab.com/libvirt/libvirt-ocaml/-/archive/%{version}/libvirt-ocaml-v%{version}.tar.gz
BuildRequires: ocaml >= 3.10.0 ocaml-ocamldoc ocaml-findlib-devel autoconf
BuildRequires: libvirt-devel >= 0.2.1 perl-interpreter gawk make automake
%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 libvirt-ocaml-v%{version} -p1
%build
unset MAKEFLAGS
autoreconf -i
%configure
make
%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
%files
%doc COPYING.LIB README
%{_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
%{_libdir}/ocaml/libvirt/{*.a,*.cmxa,*.cmx,*.mli}
%changelog
* Wed Sep 20 2023 liyanan <thistleslyn@163.com> - 0.6.1.7-1
- update to 0.6.1.7
* 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.