File python-os-cloud-config.spec of Package python-os-cloud-config

#
# spec file for package python-os-cloud-config
#
# Copyright (c) 2016 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-os-cloud-config
Version:        0.4.0
Release:        0
Summary:        Configuration for OpenStack clouds
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://www.openstack.org/
Source:         https://pypi.python.org/packages/source/o/os-cloud-config/os-cloud-config-%{version}.tar.gz
BuildRequires:  openstack-suse-macros
BuildRequires:  python-Sphinx
BuildRequires:  python-coverage
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-ironicclient
BuildRequires:  python-mock
#BuildRequires:  python-neutronclient
#BuildRequires:  python-novaclient
BuildRequires:  python-oslo.config
BuildRequires:  python-oslosphinx
BuildRequires:  python-pbr
BuildRequires:  python-pyOpenSSL
BuildRequires:  python-setuptools
BuildRequires:  python-six
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-Babel >= 1.3
#Requires:       python-ironicclient >= 0.2.1
Requires:       python-glanceclient >= 1.2.0
Requires:       python-keystoneclient >= 1.6.0
Requires:       python-neutronclient >= 2.6.0
Requires:       python-novaclient >= 2.29.0
Requires:       python-oslo.config >= 3.4.0
Requires:       python-oslo.i18n >= 2.1.0
Requires:       python-pyOpenSSL >= 0.14
Requires:       python-six >= 1.9.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Requires:       python-argparse
%else
BuildArch:      noarch
%endif

%description
Configuration for OpenStack clouds.

%prep
%setup -q -n os-cloud-config-%{version}

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
#python setup.py test

%files
%defattr(-,root,root,-)
%doc AUTHORS README.rst LICENSE ChangeLog
%{_bindir}/generate-keystone-pki
%{_bindir}/init-keystone
%{_bindir}/register-nodes
%{_bindir}/setup-endpoints
%{_bindir}/setup-neutron
%{_bindir}/setup-flavors
%{_bindir}/init-keystone-heat-domain
%{_bindir}/upload-kernel-ramdisk

%{python2_sitelib}/*

%changelog
openSUSE Build Service is sponsored by