libvirt.spec.in 3.2 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 13
Requires: libxml2
BuildRequires: libxml2-devel
14
Obsoletes: libvir
15
ExclusiveArch: i386 x86_64
16 17

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

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

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

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

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

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

%build
%configure
make

%install
rm -fr %{buildroot}

%makeinstall
D
Daniel Veillard 已提交
54
(cd docs/examples ; make clean ; rm -rf .deps)
55
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
56
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
57 58
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
59 60 61 62 63 64 65 66 67 68 69 70 71 72

%clean
rm -fr %{buildroot}

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-, root, root)

%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
73
%{_bindir}/virsh
74 75 76 77 78 79
%{_libdir}/lib*.so.*

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

%{_libdir}/lib*.so
80 81
%{_includedir}/libvirt/*.h
%{_libdir}/pkgconfig/libvirt.pc
82 83 84 85
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
86

87
%doc docs/*.html docs/html docs/*.gif
D
Daniel Veillard 已提交
88
%doc docs/examples
89
%doc docs/libvirt-api.xml
90

91 92 93 94
%files python
%defattr(-, root, root)

%doc AUTHORS NEWS README COPYING.LIB
95 96
%{_libdir}/python*/site-packages/libvirt.py*
%{_libdir}/python*/site-packages/libvirtmod*
97
%doc python/tests/*.py
98
%doc python/TODO
99
%doc python/libvirtclass.txt
100

101
%changelog
102 103 104 105 106 107
* Tue Feb 28 2006 Daniel Veillard <veillard@redhat.com> 0.0.6-1
- added error handling APIs
- small bug fixes
- improve python bindings
- augment documentation and regression tests

108 109 110 111 112 113
* Thu Feb 23 2006 Daniel Veillard <veillard@redhat.com> 0.0.5-1
- new domain creation API
- new UUID based APIs
- more tests, documentation, devhelp
- bug fixes

114 115 116
* 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

117 118 119 120
* 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 已提交
121 122 123 124
* 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

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