File python-oslotest.spec of Package python-oslotest

#
# spec file for package python-oslotest
#
# Copyright (c) 2014 SUSE LINUX Products 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-oslotest
Version:        1.2.0
Release:        0
Summary:        OpenStack test framework
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://launchpad.net/oslo
Source:         https://pypi.python.org/packages/source/o/oslotest/oslotest-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-pbr
# Test requirements:
BuildRequires:  python-fixtures >= 0.3.14
BuildRequires:  python-mock >= 1.0
BuildRequires:  python-mox3 >= 0.7.0
BuildRequires:  python-python-subunit >= 0.0.18
BuildRequires:  python-six
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testscenarios >= 0.4
BuildRequires:  python-testtools >= 0.9.34
Requires:       python-fixtures >= 0.3.14
Requires:       python-mock >= 1
Requires:       python-mox3 >= 0.7
Requires:       python-python-subunit >= 0.0.18
Requires:       python-six >= 1.7
Requires:       python-testrepository >= 0.0.18
Requires:       python-testscenarios >= 0.4
Requires:       python-testtools >= 0.9.34
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires:  python-discover
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
OpenStack test framework

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

%build
python setup.py build

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

%check
testr init && testr run

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

%changelog
openSUSE Build Service is sponsored by