]>
Commit | Line | Data |
---|---|---|
89f4ed07 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without lxc # LXC support | |
4 | %bcond_without qemu # Qemu support | |
5 | ||
6 | # qemu available only on x86 and ppc | |
7 | %ifnarch %{ix86} %{x8664} x32 ppc | |
8 | %undefine with_qemu | |
9 | %endif | |
10 | ||
11 | %define origname libvirt-python | |
12 | Summary: Python 3.x bindings to interact with virtualization capabilities | |
13 | Summary(pl.UTF-8): Wiązania Pythona 3.x do współpracy z funkcjami wirtualizacji | |
14 | Name: python3-libvirt | |
52345144 JB |
15 | Version: 8.8.0 |
16 | Release: 1 | |
89f4ed07 JB |
17 | License: LGPL v2.1+ |
18 | Group: Development/Languages/Python | |
19 | Source0: https://libvirt.org/sources/python/%{origname}-%{version}.tar.gz | |
52345144 | 20 | # Source0-md5: 91539c3e6e821e49e01a90452c74a51e |
89f4ed07 | 21 | URL: https://libvirt.org/ |
52345144 | 22 | BuildRequires: libvirt-devel >= 8.8.0 |
89f4ed07 JB |
23 | BuildRequires: pkgconfig |
24 | BuildRequires: python3 >= 1:3.5 | |
25 | BuildRequires: python3-devel >= 1:3.5 | |
26 | BuildRequires: rpm-pythonprov | |
27 | BuildRequires: rpmbuild(macros) >= 1.714 | |
28 | BuildConflicts: python-PyXML < 0.8.4-13 | |
52345144 | 29 | Requires: libvirt >= 8.8.0 |
89f4ed07 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Libvirt is a C toolkit to interact with the virtualization | |
34 | capabilities of recent versions of Linux. | |
35 | ||
36 | This package contains the Python 3.x bindings for the libvirt library. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji | |
40 | obecnych wersji Linuksa. | |
41 | ||
42 | Ten pakiet zawiera wiązania Pythona 3.x do biblioteki libvirt. | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{origname}-%{version} | |
46 | ||
47 | %build | |
48 | %py3_build | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %py3_install | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc AUTHORS ChangeLog README | |
61 | %attr(755,root,root) %{py3_sitedir}/libvirtmod.cpython-*.so | |
62 | %{py3_sitedir}/libvirt.py | |
63 | %{py3_sitedir}/__pycache__/libvirt.cpython-*.py[co] | |
64 | %{py3_sitedir}/libvirtaio.py | |
65 | %{py3_sitedir}/__pycache__/libvirtaio.cpython-*.py[co] | |
66 | %if %{with lxc} | |
67 | %attr(755,root,root) %{py3_sitedir}/libvirtmod_lxc.cpython-*.so | |
68 | %{py3_sitedir}/libvirt_lxc.py | |
69 | %{py3_sitedir}/__pycache__/libvirt_lxc.cpython-*.py[co] | |
70 | %endif | |
71 | %if %{with qemu} | |
72 | %attr(755,root,root) %{py3_sitedir}/libvirtmod_qemu.cpython-*.so | |
73 | %{py3_sitedir}/libvirt_qemu.py | |
74 | %{py3_sitedir}/__pycache__/libvirt_qemu.cpython-*.py[co] | |
75 | %endif | |
76 | %{py3_sitedir}/libvirt_python-%{version}-py*.egg-info |