File python-oslo.middleware.spec of Package python-oslo.middleware

#
# spec file for package python-oslo.middleware
#
# Copyright (c) 2015 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-oslo.middleware
Version:        2.8.0
Release:        0
Summary:        oslo.middleware library
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://launchpad.net/oslo/
Source:         https://pypi.python.org/packages/source/o/oslo.middleware/oslo.middleware-%{version}.tar.gz
BuildRequires:  openstack-suse-macros
BuildRequires:  python-WebOb
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-mock
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.context
BuildRequires:  python-oslo.i18n
BuildRequires:  python-oslosphinx
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-sphinx
BuildRequires:  python-testtools
Requires:       python-Babel >= 1.3
Requires:       python-WebOb >= 1.2.3
Requires:       python-oslo.config >= 2.3.0
Requires:       python-oslo.context >= 0.2.0
Requires:       python-oslo.i18n >= 1.5.0
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.5.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
oslo.middleware library

* Free software: Apache license
* Documentation: http://docs.openstack.org/developer/oslo.middleware
* Source: http://git.openstack.org/cgit/openstack/oslo.middleware
* Bugs: http://bugs.launchpad.net/oslo

%prep
%setup -q -n oslo.middleware-%{version}

%build
%{__python2} setup.py build

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

%check
#FIXME (toabctl): debug why testsuite doesn't run in build env
#export PYTHONPATH="%{python2_sitelib}:%{buildroot}%{python2_sitelib}"
#export PYTHON="python -S"
#testr init && testr run

%files
%defattr(-,root,root,-)
%doc AUTHORS README.rst LICENSE ChangeLog
%{python2_sitelib}/*

%changelog
openSUSE Build Service is sponsored by