File python-glance_store.spec of Package python-glance_store

#
# spec file for package python-glance_store
#
# 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-glance_store
Version:        0.18.0
Release:        0
Summary:        OpenStack Image Service Store Library
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://www.openstack.org/
Source:         https://pypi.io/packages/source/g/glance_store/glance_store-%{version}.tar.gz
# https://review.openstack.org/#/c/346873/
Patch01:        disable_verification_for_keystone_session_in_swift.patch
BuildRequires:  python-Sphinx
BuildRequires:  python-boto
BuildRequires:  python-cinderclient
BuildRequires:  python-enum34
BuildRequires:  python-eventlet
BuildRequires:  python-fixtures
BuildRequires:  python-httplib2
BuildRequires:  python-jsonschema
BuildRequires:  python-keystoneclient
BuildRequires:  python-mock
BuildRequires:  python-mox
BuildRequires:  python-os-brick
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.i18n
BuildRequires:  python-oslo.vmware
BuildRequires:  python-oslosphinx
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-python-subunit
BuildRequires:  python-requests-mock
BuildRequires:  python-setuptools
BuildRequires:  python-six
BuildRequires:  python-stevedore
BuildRequires:  python-swiftclient
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-cinderclient >= 1.6.0
Requires:       python-debtcollector >= 1.2.0
Requires:       python-enum34
Requires:       python-eventlet >= 0.18.2
Requires:       python-httplib2 >= 0.7.5
Requires:       python-jsonschema >= 2.0.0
Requires:       python-os-brick >= 1.3.0
Requires:       python-oslo.concurrency >= 3.8.0
Requires:       python-oslo.config >= 3.14.0
Requires:       python-oslo.i18n >= 2.1.0
Requires:       python-oslo.rootwrap >= 5.0.0
Requires:       python-oslo.serialization >= 1.10.0
Requires:       python-oslo.utils >= 3.16.0
Requires:       python-oslo.vmware >= 2.11.0
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.16.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()")}
%else
BuildArch:      noarch
%endif

%description
Glance stores library

%prep
%setup -q -n glance_store-%{version}
%patch01 -p1

%build
python setup.py build

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

#%check
#testr init && testr run

%files
%defattr(-,root,root,-)
%doc AUTHORS README.rst LICENSE ChangeLog
%{python_sitelib}/*
%{_bindir}/glance-rootwrap

%changelog
openSUSE Build Service is sponsored by