File python-shade.spec of Package python-shade

#
# spec file for package python-shade
#
# Copyright (c) 2018 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/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-shade
Version:        1.27.1
Release:        0
Summary:        Client library for operating OpenStack clouds
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            http://docs.openstack.org/infra/shade/
Source:         https://files.pythonhosted.org/packages/source/s/shade/shade-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pbr}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       %{python_module openstacksdk} >= 0.11.2
Requires:       %{python_module os-client-config} >= 1.28.0
Requires:       %{python_module pbr} >= 2.0.0
BuildArch:      noarch
%python_subpackages

%description
A simple client library for operating OpenStack clouds.

%prep
%setup -q -n shade-%{version}

%build
%python_build

%install
%python_install
%python_clone %{buildroot}%{_bindir}/shade-inventory

%fdupes %{buildroot}

%files %{python_files}
%license LICENSE
%doc ChangeLog README.rst AUTHORS
%{python_sitelib}/*
%{_bindir}/shade-inventory-%{python_bin_suffix}
%python3_only %{_bindir}/shade-inventory

%changelog
openSUSE Build Service is sponsored by