2005-11-02 15:37:34 +00:00
|
|
|
Summary: Library providing an API to use the Xen virtualization
|
2005-12-05 11:16:07 +00:00
|
|
|
Name: libvir
|
2005-11-02 15:37:34 +00:00
|
|
|
Version: @VERSION@
|
|
|
|
Release: 1
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
2005-12-05 11:16:07 +00:00
|
|
|
Source: libvir-%{version}.tar.gz
|
2005-11-02 15:37:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2005-12-07 13:45:20 +00:00
|
|
|
URL: http://libvir.org/
|
2005-12-19 16:34:11 +00:00
|
|
|
BuildRequires: xen python python-devel
|
2005-11-02 15:37:34 +00:00
|
|
|
Requires: xen
|
2005-12-19 18:05:40 +00:00
|
|
|
ExclusiveArch: i386 x86_64
|
2005-11-02 15:37:34 +00:00
|
|
|
|
|
|
|
%description
|
2005-12-16 13:27:23 +00: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 15:37:34 +00:00
|
|
|
|
|
|
|
%package devel
|
2005-12-05 11:16:07 +00:00
|
|
|
Summary: Libraries, includes, etc. to compile with the libvir library
|
2005-11-02 15:37:34 +00:00
|
|
|
Group: Development/Libraries
|
2005-12-05 11:16:07 +00:00
|
|
|
Requires: libvir = %{version}
|
2005-11-02 15:37:34 +00:00
|
|
|
|
|
|
|
%description devel
|
2005-12-16 13:27:23 +00:00
|
|
|
Includes and documantations for the C library providing an API to use
|
|
|
|
the Xen virtualization framework
|
2005-11-02 15:37:34 +00:00
|
|
|
|
2005-12-19 16:34:11 +00:00
|
|
|
%package python
|
|
|
|
Summary: Python bindings for the libvir library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libvir = %{version}
|
|
|
|
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[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 15:37:34 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2005-12-16 13:27:23 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
2005-12-19 16:34:11 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
2005-11-02 15:37:34 +00: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 13:27:23 +00:00
|
|
|
%{_bindir}/virsh
|
2005-11-02 15:37:34 +00:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%{_libdir}/lib*.so
|
2005-12-05 11:16:07 +00:00
|
|
|
%{_includedir}/libvir/*.h
|
|
|
|
%{_libdir}/pkgconfig/libvir.pc
|
2005-11-02 15:37:34 +00:00
|
|
|
|
2005-12-07 13:45:20 +00:00
|
|
|
%doc docs/*.html docs/html docs/*.gif
|
|
|
|
%doc docs/libvir-api.xml
|
|
|
|
|
2005-12-19 16:34:11 +00: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 15:37:34 +00:00
|
|
|
%changelog
|
|
|
|
* Wed Nov 2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
|
|
|
|
- created
|