From d361fc32189387635669ee3fe0dd3e17d05a18603c6d13b01f02b2b02ef21e8b Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sat, 1 Sep 2012 18:26:42 +0000 Subject: [PATCH] - move ocaml files to ocaml-libguestfs and ocaml-libguestfs-devel OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=48 --- libguestfs.changes | 5 +++++ libguestfs.spec | 38 +++++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/libguestfs.changes b/libguestfs.changes index 8fadd60..f57487c 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 1 20:26:11 CEST 2012 - ohering@suse.de + +- move ocaml files to ocaml-libguestfs and ocaml-libguestfs-devel + ------------------------------------------------------------------- Sat Sep 1 15:40:47 CEST 2012 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index f32985e..d72ba77 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -185,6 +185,22 @@ All this functionality is available through a convenient shell called guestfish, or use virt-rescue to get a rescue shell for fixing unbootable virtual machines. +# +%if %{with_ocaml} +%package -n ocaml-libguestfs +Summary: Provides OCaml support for libguestfs +Group: System/Filesystems + +%description -n ocaml-libguestfs +Allows OCaml scripts to directly use libguestfs + +%package -n ocaml-libguestfs-devel +Summary: Provides OCaml support for libguestfs +Group: Development/System + +%description -n ocaml-libguestfs-devel +Allows OCaml scripts to directly use libguestfs +%endif # %if %{with_perl} %package -n perl-Sys-Guestfs @@ -428,6 +444,25 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_libdir}/guestfs +%if %{with_ocaml} +%files -n ocaml-libguestfs +%defattr(-,root,root) +%dir %{_libdir}/ocaml +%dir %{_libdir}/ocaml/guestfs +%{_libdir}/ocaml/guestfs/META +%{_libdir}/ocaml/guestfs/*.cmi +%{_libdir}/ocaml/guestfs/*.cma +%{_libdir}/ocaml/stublibs + +%files -n ocaml-libguestfs-devel +%defattr(-,root,root) +%dir %{_libdir}/ocaml +%dir %{_libdir}/ocaml/guestfs +%{_libdir}/ocaml/guestfs/*.a +%{_libdir}/ocaml/guestfs/*.cmx +%{_libdir}/ocaml/guestfs/*.cmxa +%{_libdir}/ocaml/guestfs/*.mli +%endif # %if %{with_perl} %post -n perl-Sys-Guestfs -p /sbin/ldconfig @@ -470,8 +505,5 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace) /etc/libguestfs-tools.conf %config(noreplace) /etc/bash_completion.d/guestfish-bash-completion.sh %{_mandir}/man1/* -%if %{with_ocaml} -%{_libdir}/ocaml -%endif %changelog