libvirt.spec.in 2.7 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
%prep
%setup -q

%build
%configure
make

%install
rm -fr %{buildroot}

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

%clean
rm -fr %{buildroot}

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-, root, root)

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

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

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

81
%doc docs/*.html docs/html docs/*.gif
D
Daniel Veillard 已提交
82
%doc docs/examples
83
%doc docs/libvirt-api.xml
84

85 86 87 88
%files python
%defattr(-, root, root)

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

95
%changelog
96 97 98
* 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

99 100 101 102
* 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 已提交
103 104 105 106
* 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

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