Skip to content

Commit

Permalink
ocaml-libvirt: update to 0.6.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
durgajagadeesh committed Jan 6, 2025
1 parent 8003850 commit 419a29b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 51 deletions.
2 changes: 1 addition & 1 deletion SPECS-EXTENDED/ocaml-libvirt/ocaml-libvirt.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"ocaml-libvirt-0.6.1.5.tar.gz": "bd8e340288f9734ba3e66ba1ee385b915ad74c95bfb0ff912581f7474469b6a1"
"ocaml-libvirt-0.6.1.7.tar.gz": "0e024711f33fb4cefc3670da014d21395ab83985423bb5850082412e583341cd"
}
}
89 changes: 41 additions & 48 deletions SPECS-EXTENDED/ocaml-libvirt/ocaml-libvirt.spec
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
ExcludeArch: %{ix86}

Vendor: Microsoft Corporation
Distribution: Azure Linux
Name: ocaml-libvirt
Version: 0.6.1.5
Release: 8%{?dist}
Version: 0.6.1.7
Release: 1%{?dist}
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
License: LGPL-2.1-or-later

# 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
URL: https://ocaml.libvirt.org/
Source0: https://download.libvirt.org/ocaml/%{name}-%{version}.tar.gz

BuildRequires: make
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-rpm-macros

BuildRequires: libvirt-devel >= 0.2.1
BuildRequires: perl-interpreter
BuildRequires: gawk

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool


%description
Expand All @@ -33,7 +32,7 @@ OCaml binding for libvirt.

%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}


%description devel
Expand All @@ -45,13 +44,19 @@ developing applications that use %{name}.
%setup -q
%autopatch -p1

# Fix detection of ocamlopt and ocamldoc
# https://gitlab.com/libvirt/libvirt-ocaml/-/merge_requests/27
sed -i '/AM_CONDITIONAL/s/"x"/"xno"/' configure.ac

# Regenerate the configure script
autoreconf -fi -I m4 .


%build
# Parallel builds do not work.
unset MAKEFLAGS
%configure
make all doc
%ifarch %{ocaml_native_compiler}
make opt
%endif
make


%install
Expand All @@ -60,37 +65,25 @@ export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%ifarch %{ocaml_native_compiler}
make install-opt
%else
make install-byte
%endif


%files
%doc COPYING.LIB README ChangeLog
%{_libdir}/ocaml/libvirt
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/libvirt/*.a
%exclude %{_libdir}/ocaml/libvirt/*.cmxa
%exclude %{_libdir}/ocaml/libvirt/*.cmx
%endif
%exclude %{_libdir}/ocaml/libvirt/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner


%files devel
%doc COPYING.LIB README TODO.libvirt ChangeLog html/*
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/libvirt/*.a
%{_libdir}/ocaml/libvirt/*.cmxa
%{_libdir}/ocaml/libvirt/*.cmx
%endif
%{_libdir}/ocaml/libvirt/*.mli
make install
%ocaml_files


%files -f .ofiles
%doc README
%license COPYING.LIB


%files devel -f .ofiles-devel
%doc README TODO.libvirt
%license COPYING.LIB


%changelog
* Fri Dec 20 2024 Durga Jagadeesh Palli <[email protected]> - 0.6.1.7-1
- Update to 0.6.1.7
- License verified

* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 0.6.1.5-8
- Switching to using full number for the 'Release' tag.
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14672,8 +14672,8 @@
"type": "other",
"other": {
"name": "ocaml-libvirt",
"version": "0.6.1.5",
"downloadUrl": "http://libvirt.org/sources/ocaml/ocaml-libvirt-0.6.1.5.tar.gz"
"version": "0.6.1.7",
"downloadUrl": "http://libvirt.org/sources/ocaml/ocaml-libvirt-0.6.1.7.tar.gz"
}
}
},
Expand Down

0 comments on commit 419a29b

Please sign in to comment.