File python-whisper.spec of Package python-whisper

# spec file for package python-whisper
# Copyright (c) 2020 SUSE LLC
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name:           python-whisper
Version:        1.1.7
Release:        0
Summary:        Fixed size round-robin style database
License:        Apache-2.0
Group:          Development/Languages/Python
Source99:       %{name}-rpmlintrc
Patch0:         %{name}-path.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildArch:      noarch

Simple database library for storing time-series data (similar in design to RRD)

%setup -q -n whisper-%{version}
%patch0 -p1


%python_exec install --root=%{buildroot} --install-lib=%{python_sitelib} --install-scripts=%{_prefix}/lib/graphite

%dir %{_prefix}/lib/graphite
%pycache_only %{python_sitelib}/__pycache__/whisper.*.pyc