File python-heat-cfntools.spec of Package python-heat-cfntools
#
# spec file for package python-heat-cfntools
#
# 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-heat-cfntools
Version: 1.4.2
Release: 0
Summary: Tools required to be installed on Heat provisioned cloud instances
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source: https://files.pythonhosted.org/packages/source/h/heat-cfntools/heat-cfntools-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module boto >= 2.12.0}
BuildRequires: %{python_module mock >= 1.0}
BuildRequires: %{python_module pbr >= 0.6}
BuildRequires: %{python_module psutil >= 1.1.1}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module testrepository >= 0.0.18}
BuildRequires: %{python_module testtools >= 0.9.34}
# /SECTION
BuildRequires: fdupes
Requires: python-boto >= 2.12.0
Requires: python-pbr >= 0.6
Requires: python-psutil >= 1.1.1
Requires: python-six >= 1.9.0
BuildArch: noarch
%python_subpackages
%description
cfn-init -
Reads the AWS::CloudFormation::Init for the instance resource,
installs packages, and starts services
cfn-signal -
Waits for an application to be ready before continuing, ie:
supporting the WaitCondition feature
cfn-hup -
Handle updates from the UpdateStack CloudFormation API call
%prep
%setup -q -n heat-cfntools-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%ifpython2
python2 setup.py test
%endif
%files %{python_files}
%doc AUTHORS ChangeLog LICENSE README.rst
%python3_only %{_bindir}/cfn-create-aws-symlinks
%python3_only %{_bindir}/cfn-get-metadata
%python3_only %{_bindir}/cfn-hup
%python3_only %{_bindir}/cfn-init
%python3_only %{_bindir}/cfn-push-stats
%python3_only %{_bindir}/cfn-signal
%{python_sitelib}/*
%changelog