2005-11-02 18:37:34 +03:00
Summary : Library providing an API to use the Xen virtualization
2005-12-05 14:16:07 +03:00
Name : libvir
2005-11-02 18:37:34 +03:00
Version : @VERSION@
Release : 1
License : LGPL
Group : Development/Libraries
2005-12-05 14:16:07 +03:00
Source : libvir-%{version} .tar.gz
2005-11-02 18:37:34 +03:00
BuildRoot : %{_tmppath} /%{name} -%{version} -root
2005-12-07 16:45:20 +03:00
URL : http://libvir.org/
2005-12-19 19:34:11 +03:00
BuildRequires : xen python python-devel
2005-11-02 18:37:34 +03:00
Requires : xen
%description
2005-12-16 16:27:23 +03:00
This C library provides an API to use the Xen virtualization framework,
and the virsh command line tool to control virtual domains.
2005-11-02 18:37:34 +03:00
%package devel
2005-12-05 14:16:07 +03:00
Summary : Libraries, includes, etc. to compile with the libvir library
2005-11-02 18:37:34 +03:00
Group : Development/Libraries
2005-12-05 14:16:07 +03:00
Requires : libvir = %{version}
2005-11-02 18:37:34 +03:00
%description devel
2005-12-16 16:27:23 +03:00
Includes and documantations for the C library providing an API to use
the Xen virtualization framework
2005-11-02 18:37:34 +03:00
2005-12-19 19:34:11 +03:00
%package python
Summary : Python bindings for the libvir library
Group : Development/Libraries
Requires : libvir = %{version}
Requires : %{_libdir} /python%(echo `python -c " i m p o r t s y s ; p r i n t s y s . v e r s i o n [ 0 : 3 ] " `)
%description python
The libvir-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvir library to use the Xen virtualization framework.
2005-11-02 18:37:34 +03:00
%prep
%setup -q
%build
%configure
make
%install
rm -fr %{buildroot}
%makeinstall
rm -f $RPM_BUILD_ROOT %{_libdir} /*.la
2005-12-16 16:27:23 +03:00
rm -f $RPM_BUILD_ROOT %{_libdir} /*.a
2005-12-19 19:34:11 +03:00
rm -f $RPM_BUILD_ROOT %{_libdir} /python*/site-packages/*.la
rm -f $RPM_BUILD_ROOT %{_libdir} /python*/site-packages/*.a
2005-11-02 18:37:34 +03:00
%clean
rm -fr %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
2005-12-16 16:27:23 +03:00
%{_bindir} /virsh
2005-11-02 18:37:34 +03:00
%{_libdir} /lib*.so.*
%files devel
%defattr (-, root, root)
%{_libdir} /lib*.so
2005-12-05 14:16:07 +03:00
%{_includedir} /libvir/*.h
%{_libdir} /pkgconfig/libvir.pc
2005-11-02 18:37:34 +03:00
2005-12-07 16:45:20 +03:00
%doc docs/*.html docs/html docs/*.gif
%doc docs/libvir-api.xml
2005-12-19 19:34:11 +03:00
%files python
%defattr (-, root, root)
%doc AUTHORS NEWS README COPYING.LIB
%{_libdir} /python*/site-packages/libvir.py*
%{_libdir} /python*/site-packages/libvirmod*
%doc python/TODO
%doc python/libvirclass.txt
2005-11-02 18:37:34 +03:00
%changelog
* Wed Nov 2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
- created