Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0b8fe151637f41d6797934529b024416 > files > 2

ocaml-libvirt-0.6.1.0-2mdv2010.1.src.rpm

%define name	ocaml-libvirt
%define version	0.6.1.0
%define release	%mkrel 2

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	OCaml bindings for libvirt
License:	LGPL
Group:		Development/Other
URL:		http://libvirt.org/ocaml/
Source:	    http://libvirt.org/sources/ocaml/%{name}-%{version}.tar.gz	
BuildRequires:	ocaml
BuildRequires:  ocaml-findlib
BuildRequires:	libvirt-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
ocaml-libvirt are OCaml bindings for libvirt, allowing you to write OCaml
programs and scripts which control virtualisation features. Some things which
you might want to do with ocaml-libvirt:

* Monitor performance of virtual machines
* Pause and resume virtual machines according to demand
* Provision new virtual machines automatically for customers
* Configure how virtual machines are networked together

%package	devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	libvirt-devel
Requires:	%{name} = %{version}-%{release}

%description devel
This package contains the development files needed to build applications
using %{name}.

%prep
%setup -q

%build
%configure2_5x
%make all
%make opt

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs
make install-opt \
    OCAMLFIND_DESTDIR="%{buildroot}/%{_libdir}/ocaml" \
    DESTDIR=%{buildroot}
rm -f  %{buildroot}/%{_libdir}/ocaml/stublibs/*.owner

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README TODO.libvirt ChangeLog COPYING COPYING.LIB
/usr/bin/mlvirsh
%dir %{_libdir}/ocaml/libvirt
%{_libdir}/ocaml/libvirt/*.cmi
%{_libdir}/ocaml/libvirt/*.cma
%{_libdir}/ocaml/libvirt/META
%{_libdir}/ocaml/stublibs/*.so

%files devel
%defattr(-,root,root)
%{_libdir}/ocaml/libvirt/*.a
%{_libdir}/ocaml/libvirt/*.cmx
%{_libdir}/ocaml/libvirt/*.cmxa
%{_libdir}/ocaml/libvirt/*.mli



%changelog
* Wed Jul 08 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.6.1.0-2mdv2010.0
+ Revision: 393523
- rebuild for latest ocaml

* Tue May 05 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.6.1.0-1mdv2010.0
+ Revision: 372278
- update to new version 0.6.1.0

* Wed Dec 24 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.4.4.2-2mdv2009.1
+ Revision: 318353
- move all non-devel files in main package
- site-lib hierarchy doesn't exist anymore

* Wed Aug 13 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.4.4.2-1mdv2009.0
+ Revision: 271601
- import ocaml-libvirt


* Wed Aug 13 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.4.4.2-1mdv2009.0
- first mdv release