File python-oslo.db.spec of Package python-oslo.db
#
# spec file for package python-oslo.db
#
# 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/
#
%define component oslo
Name: python-oslo.db
Version: 0.2.0
Release: 0
Url: https://launchpad.net/oslo/
Summary: OpenStack DB API
License: Apache-2.0
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/o/oslo.db/oslo.db-%{version}.tar.gz
Source99: rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: openstack-suse-macros
BuildRequires: python-devel
BuildRequires: python-oslosphinx
BuildRequires: python-pbr
Requires: python-Babel >= 1.3
Requires: python-PyYAML >= 3.1
Requires: python-eventlet >= 0.13
Requires: python-iso8601 >= 0.1.9
Requires: python-kombu >= 2.4.8
Requires: python-oslo.config >= 1.2.1
Requires: python-six >= 1.7
Requires: python-stevedore >= 0.14
%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
The Oslo DB library is a project to have a common DB
abstraction independent of the actual DB being used.
%package doc
Summary: OpenStack DB API - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
BuildRequires: python-Sphinx
%description doc
This package contains documentation files for %{name}.
%package test
Summary: OpenStack DB API - test suite
Group: System/Management
Requires: %{name} = %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires: python-discover
%endif
Requires: python-fixtures >= 0.3.14
Requires: python-mock >= 1
Requires: python-mox3 >= 0.7
Requires: python-oslotest
Requires: python-python-subunit >= 0.0.18
Requires: python-testrepository >= 0.0.18
Requires: python-testscenarios >= 0.4
Requires: python-testtools >= 0.9.34
%description test
This package contains testsuite files for %{name}.
%prep
%setup -q -n oslo.db-%{version}
%build
python setup.py build
python setup.py build_sphinx
%install
python setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix} --install-data=%{python_sitelib}
rm doc/build/html/.buildinfo
%fdupes doc
%openstack_test_package_install
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst AUTHORS
%{python_sitelib}/oslo
%{python_sitelib}/*.egg-info
%{python_sitelib}/*.pth
%files doc
%defattr(-,root,root,-)
%doc LICENSE doc/build/html
%files test
%defattr(-,root,root,-)
%{_localstatedir}/lib/%{name}-test/
%changelog