Initial package after split from libvirt RPM (rhbz #1034347)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2013-12-03 15:08:14 +00:00
parent 67d638f3d3
commit 08a2e08e03
3 changed files with 47 additions and 0 deletions

3
.gitignore vendored
View File

@ -0,0 +1,3 @@
/libvirt-python-*.tar.gz
.build-*.log
*.rpm

43
libvirt-python.spec Normal file
View File

@ -0,0 +1,43 @@
Summary: The libvirt virtualization API python binding
Name: libvirt-python
Version: 1.2.0
Release: 1%{?dist}%{?extra_release}
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
Url: http://libvirt.org
License: LGPLv2+
Group: Development/Libraries
BuildRequires: libvirt-devel >= 0.9.11
BuildRequires: python-devel
# Don't want provides for python shared objects
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
%{?filter_setup}
%description
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root=%{buildroot}
rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info
%files
%defattr(-,root,root)
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
%{_libdir}/python*/site-packages/libvirt.py*
%{_libdir}/python*/site-packages/libvirt_qemu.py*
%{_libdir}/python*/site-packages/libvirt_lxc.py*
%{_libdir}/python*/site-packages/libvirtmod*
%changelog
* Mon Nov 25 2013 Daniel P. Berrange <berrange@redhat.com> - 1.2.0-1
- Initial package after split from libvirt RPM (rhbz #1034347)

View File

@ -0,0 +1 @@
38158e5740be65f17eef9f99ffa5dadf libvirt-python-1.2.0.tar.gz