summaryrefslogtreecommitdiffstats
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-12 18:21:57 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-21 17:08:42 +0000
commit5d6138f798d8d5f7b53a2ef01805f40c71016c2a (patch)
tree54d7ef6cd288f13df8d8fd24155d4eafa42d532b /libvirt-python.spec.in
parent416085d75a3436181b7378e64948546128605cea (diff)
downloadlibvirt-python-v7-5d6138f798d8d5f7b53a2ef01805f40c71016c2a.tar.gz
libvirt-python-v7-5d6138f798d8d5f7b53a2ef01805f40c71016c2a.tar.xz
libvirt-python-v7-5d6138f798d8d5f7b53a2ef01805f40c71016c2a.zip
Setup distutils build system
Create a setup.py for building libvirt python code and add supporting files Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
new file mode 100644
index 0000000..e6c229f
--- /dev/null
+++ b/libvirt-python.spec.in
@@ -0,0 +1,34 @@
+
+Summary: The libvirt virtualization API
+Name: libvirt-python
+Version: @PY_VERSION@
+Release: 1%{?dist}%{?extra_release}
+Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
+License: LGPLv2+
+Group: Development/Libraries
+BuildRequires: libvirt-devel >= @C_VERSION@
+BuildRequires: python-devel
+
+%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
+
+%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
+%{_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*