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 http://bugs.opensuse.org/
#


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

%description
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.

%files
%defattr(-,root,root,-)
%{python_sitearch}/*

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

%build
python setup.py build

%install
python setup.py install --root %{buildroot}

%changelog