2018-10-18 08:39:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-linstor
|
|
|
|
#
|
2022-01-12 06:33:57 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-10-18 08:39:25 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-06-01 09:02:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-10-18 08:39:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-06-01 09:02:28 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-10-18 08:39:25 +00:00
|
|
|
Name: python-linstor
|
2022-01-12 06:33:57 +00:00
|
|
|
Version: 1.12.0
|
2018-10-18 08:39:25 +00:00
|
|
|
Release: 0
|
2018-10-22 01:14:27 +00:00
|
|
|
Summary: Python API for Linstor
|
2020-06-01 09:02:28 +00:00
|
|
|
License: GPL-3.0-only
|
2018-10-18 08:39:25 +00:00
|
|
|
Group: Productivity/Clustering/HA
|
2020-06-01 09:02:28 +00:00
|
|
|
URL: https://github.com/LINBIT/linstor-api-py
|
2022-01-12 06:44:52 +00:00
|
|
|
Source: https://pkg.linbit.com//downloads/linstor/%{name}-%{version}.tar.gz
|
2020-06-01 09:02:28 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-10-18 08:39:25 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: protobuf-devel
|
2022-01-12 01:33:00 +00:00
|
|
|
Requires: python-protobuf
|
2020-06-01 09:02:28 +00:00
|
|
|
%python_subpackages
|
2018-10-18 08:39:25 +00:00
|
|
|
|
|
|
|
%description
|
2018-10-22 01:14:27 +00:00
|
|
|
A Python API for Linstor.
|
2018-10-18 08:39:25 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2020-06-01 09:02:28 +00:00
|
|
|
make %{?_smp_mflags} gensrc
|
|
|
|
%python_build
|
2018-10-18 08:39:25 +00:00
|
|
|
|
|
|
|
%install
|
2020-06-01 09:02:28 +00:00
|
|
|
#python setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --record=INSTALLED_FILES
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-10-18 08:39:25 +00:00
|
|
|
|
|
|
|
#files -f INSTALLED_FILES
|
2020-06-01 09:02:28 +00:00
|
|
|
%files %{python_files}
|
2018-10-18 08:39:25 +00:00
|
|
|
%{python_sitelib}
|
|
|
|
|
|
|
|
%changelog
|