File python-lxc-python2.spec of Package python-lxc-python2

# spec file for package python-lxc-python2
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           python-lxc-python2
Version:        0.1.git_0553f05
Release:        0
Summary:        LXC bindings for python2
License:        LGPL-2.1+
Group:          System/Base
Source0:        python-lxc-python2-%{version}.tar.gz
%if %{?suse_version} > 1320
BuildRequires:  liblxc-devel
BuildRequires:  lxc-devel
BuildRequires:  python
BuildRequires:  python-devel

Out of tree python 2.7 binding for liblxc (similar to the official python3). Needed for running ansibles lxc_container module on the lxc host.


%setup -q -n python-lxc-python2-%{version}

python build

python install --root %{buildroot}