Name: python3-lxc Version: 3.0.1 Release: 2%{?dist} Summary: Python binding for LXC License: LGPLv2+ URL: https://linuxcontainers.org/lxc Source0: https://linuxcontainers.org/downloads/lxc/%{name}-%{version}.tar.gz BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: lxc-devel >= 3.0.0 BuildRequires: pkgconfig %global desc Linux Resource Containers provide process and resource isolation\ without the overhead of full virtualization.\ \ The python%{python3_pkgversion}-lxc package contains the Python3\ binding for LXC. %description %{desc} %if 0%{?python3_pkgversion} != 3 %global subpkg -n python%{python3_pkgversion}-lxc %package %{?subpkg} Summary: Python binding for LXC %description %{?subpkg} %{desc} %endif %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}_lxc\\..*\\.so %prep %autosetup %build %py3_build %install %py3_install # fix examples chmod -x examples/*.py sed -i -e '1 s@^#!.*@#!%{__python3}@' examples/*.py %check %{__python3} setup.py test %files %{?subpkg} %license COPYING %doc README.md examples %{python3_sitearch}/* %changelog * Fri Apr 6 2018 Thomas Moschny - 3.0.2-1 - Update BRs. * Fri Apr 6 2018 Thomas Moschny - 3.0.1-1 - New package.