File python-oslo.messaging.spec of Package python-oslo.messaging
#
# spec file for package python-oslo.messaging
#
# 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/
#
%define component oslo_messaging
%define version_unconverted 4.6.1
Name: python-oslo.messaging
Version: 4.6.1
Release: 0
Url: https://launchpad.net/oslo/
Summary: OpenStack Messaging API
License: Apache-2.0
Group: Development/Languages/Python
Source: http://tarballs.openstack.org/oslo.messaging/oslo.messaging-%{version}.tar.gz
Source99: rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: openstack-suse-macros
BuildRequires: python-cachetools
BuildRequires: python-devel
BuildRequires: python-eventlet
BuildRequires: python-fixtures
BuildRequires: python-kombu
BuildRequires: python-oslo.config
BuildRequires: python-oslo.context
BuildRequires: python-oslo.serialization
BuildRequires: python-oslo.service
BuildRequires: python-oslo.utils
BuildRequires: python-oslosphinx
BuildRequires: python-pbr
##BuildRequires: python-qpid
BuildRequires: python-six
Requires: python-PyYAML >= 3.1.0
Requires: python-WebOb >= 1.2.3
Requires: python-amqp >= 1.4.0
Requires: python-cachetools >= 1.0.0
Requires: python-debtcollector >= 1.2.0
Requires: python-eventlet >= 0.18.2
Requires: python-futures >= 3.0
Requires: python-futurist >= 0.11.0
Requires: python-greenlet >= 0.3.2
Requires: python-kombu >= 3.0.25
Requires: python-oslo.config >= 3.7.0
Requires: python-oslo.context >= 0.2.0
Requires: python-oslo.i18n >= 2.1.0
Requires: python-oslo.log >= 1.14.0
Requires: python-oslo.middleware >= 3.0.0
Requires: python-oslo.serialization >= 1.10.0
Requires: python-oslo.service >= 1.0.0
Requires: python-oslo.utils >= 3.5.0
Requires: python-pika >= 0.10.0
Requires: python-pika-pool >= 0.1.3
Requires: python-retrying >= 1.2.3
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.5.0
%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 Messaging library is a project to have a common RPC
code independent of the actual RPC library being used.
%package doc
Summary: OpenStack Messaging API - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
BuildRequires: python-Sphinx
BuildRequires: python-oslosphinx
%description doc
This package contains documentation files for %{name}.
%package test
Summary: OpenStack Messaging API - test suite
Group: System/Management
Requires: %{name} = %{version}
Requires: python-fixtures >= 1.3.1
Requires: python-mock >= 1.2
Requires: python-mox3 >= 0.7.0
Requires: python-oslotest >= 1.10.0
Requires: python-python-subunit >= 0.0.18
Requires: python-testrepository >= 0.0.18
Requires: python-testscenarios >= 0.4
Requires: python-testtools >= 1.4.0
%description test
This package contains testsuite files for %{name}.
%prep
%setup -q -n oslo.messaging-%{version}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
# disabling git call for last modification date from git repo
sed '/^html_last_updated_fmt.*/,/.)/ s/^/#/' -i doc/source/conf.py
# generate html docs
sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%openstack_test_package_install
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst AUTHORS
%{_bindir}/oslo-messaging-zmq-broker
%{python2_sitelib}/oslo_messaging
%{python2_sitelib}/*.egg-info
%files doc
%defattr(-,root,root,-)
%doc html LICENSE
%files test
%defattr(-,root,root,-)
%{_localstatedir}/lib/%{name}-test/
%changelog