libvirt.spec.in 2.6 KB
Newer Older
1
Summary: Library providing an API to use the Xen virtualization
2
Name: libvirt
3 4 5 6
Version: @VERSION@
Release: 1
License: LGPL
Group: Development/Libraries
7
Source: libvirt-%{version}.tar.gz
8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
9
URL: http://libvir.org/
10
BuildRequires: xen python python-devel
11
Requires: xen
12
Obsoletes: libvir
13
ExclusiveArch: i386 x86_64
14 15

%description
16 17
This C library provides an API to use the Xen virtualization framework,
and the virsh command line tool to control virtual domains.
18 19

%package devel
20
Summary: Libraries, includes, etc. to compile with the libvirt library
21
Group: Development/Libraries
22 23
Requires: libvirt = %{version}
Obsoletes: libvir-devel
24 25

%description devel
26
Includes and documentations for the C library providing an API to use
27
the Xen virtualization framework
28

29
%package python
30
Summary: Python bindings for the libvirt library
31
Group: Development/Libraries
32 33
Requires: libvirt = %{version}
Obsoletes: libvir-python
34 35 36
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)

%description python
37
The libvirt-python package contains a module that permits applications
38
written in the Python programming language to use the interface
39
supplied by the libvirt library to use the Xen virtualization framework.
40

41 42 43 44 45 46 47 48 49 50 51 52
%prep
%setup -q

%build
%configure
make

%install
rm -fr %{buildroot}

%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
53
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
54 55
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
56 57 58 59 60 61 62 63 64 65 66 67 68 69

%clean
rm -fr %{buildroot}

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-, root, root)

%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
70
%{_bindir}/virsh
71 72 73 74 75 76
%{_libdir}/lib*.so.*

%files devel
%defattr(-, root, root)

%{_libdir}/lib*.so
77 78
%{_includedir}/libvirt/*.h
%{_libdir}/pkgconfig/libvirt.pc
79

80
%doc docs/*.html docs/html docs/*.gif
81
%doc docs/libvirt-api.xml
82

83 84 85 86
%files python
%defattr(-, root, root)

%doc AUTHORS NEWS README COPYING.LIB
87 88
%{_libdir}/python*/site-packages/libvirt.py*
%{_libdir}/python*/site-packages/libvirtmod*
89
%doc python/TODO
90
%doc python/libvirtclass.txt
91

92
%changelog
93 94 95
* Fri Feb 10 2006 Daniel Veillard <veillard@redhat.com> 0.0.4-1
- fixes some problems in 0.0.3 due to the change of names

96 97 98 99
* Wed Feb  8 2006 Daniel Veillard <veillard@redhat.com> 0.0.3-1
- changed library name to libvirt from libvir, complete and test the python 
  bindings

D
Daniel Veillard 已提交
100 101 102 103
* Sun Jan 29 2006 Daniel Veillard <veillard@redhat.com> 0.0.2-1
- upstream release of 0.0.2, use xend, save and restore added, python bindings
  fixed

104 105
* Wed Nov  2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
- created