[packages/python-libvirt] initial

sls sls at pld-linux.org
Thu Dec 5 19:38:51 CET 2013


commit e756e9a6f86eb3a12a13f8b8051b16a10dede350
Author: Szymon Siwek <sls at pld-linux.org>
Date:   Thu Dec 5 19:32:46 2013 +0100

    initial

 .gitignore          |  1 +
 python-libvirt.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
---
diff --git a/python-libvirt.spec b/python-libvirt.spec
new file mode 100644
index 0000000..cfc5d11
--- /dev/null
+++ b/python-libvirt.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without	lxc		# LXC support
+%bcond_without	qemu		# Qemu support
+
+# qemu available only on x86 and ppc
+%ifnarch %{ix86} %{x8664} ppc
+%undefine	with_qemu
+%endif
+# Xen is available only on x86 and ia64
+%ifnarch %{ix86} %{x8664} ia64
+%undefine	with_xen
+%endif
+
+%define		origname	libvirt-python
+Summary:	Python bindings to interact with virtualization capabilities
+Summary(pl.UTF-8):	Wiązania Pythona do współpracy z funkcjami wirtualizacji
+Name:		python-libvirt
+Version:	1.2.0
+Release:	0.1
+License:	LGPL v2.1+
+Group:		Development/Languages/Python
+Source0:	ftp://ftp.libvirt.org/libvirt/python/%{origname}-%{version}.tar.gz
+# Source0-md5:	38158e5740be65f17eef9f99ffa5dadf
+URL:		http://www.libvirt.org/
+BuildRequires:	libvirt-devel
+BuildRequires:	python
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.627
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libvirt is a C toolkit to interact with the virtualization
+capabilities of recent versions of Linux.
+
+This package contains the Python bindings for the libvirt library.
+
+%description -l pl.UTF-8
+Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
+obecnych wersji Linuksa.
+
+Ten pakiet zawiera wiązania Pythona do biblioteki libvirt.
+
+%prep
+%setup -q -n %{origname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--root=$RPM_BUILD_ROOT
+
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+#{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README NEWS
+%attr(755,root,root) %{py_sitedir}/libvirtmod.so
+%{py_sitedir}/libvirt.py[co]
+%if %{with lxc}
+%attr(755,root,root) %{py_sitedir}/libvirtmod_lxc.so
+%{py_sitedir}/libvirt_lxc.py[co]
+%endif
+%if %{with qemu}
+%attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so
+%{py_sitedir}/libvirt_qemu.py[co]
+%endif
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..69c1bf5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+libvirt-python-1.2.0.tar.gz
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-libvirt.git/commitdiff/e756e9a6f86eb3a12a13f8b8051b16a10dede350



More information about the pld-cvs-commit mailing list