File python-linstor.spec of Package python-linstor

#
# spec file for package python-linstor
#
# Copyright (c) 2019 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-linstor
Version:        0.9.5
Release:        0
Summary:        Python API for Linstor
License:        GPL-3.0
Group:          Productivity/Clustering/HA
Url:            https://github.com/LINBIT/linstor-api-py
Source:         http://www.linbit.com/www.linbit.com/downloads/linstor/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
#Still in python2
BuildRequires:  python-devel
BuildRequires:  protobuf-devel
BuildRequires:  python2-setuptools
Requires:       python2-protobuf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A Python API for Linstor.

%prep
%setup -q

%build
make gensrc
python setup.py build

%install
python setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --record=INSTALLED_FILES
%fdupes -s %{buildroot}

#files -f INSTALLED_FILES
%files
%defattr(-,root,root)
%{python_sitelib}

%changelog
openSUSE Build Service is sponsored by