Репозиторий Sisyphus
Последнее обновление: 20 сентября 2019 | Пакетов: 17474 | Посещений: 15135271
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-oslo.messaging

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%global oname oslo.messaging

%def_with python3

Name:       python-module-%oname
Epoch:      1
Version:    5.17.2
Release:    alt1
Summary:    OpenStack common messaging library

Group:      Development/Python
License:    ASL 2.0
Url: http://docs.openstack.org/developer/%oname
Source: https://tarballs.openstack.org/%oname/%oname-%version.tar.gz

Provides:  python-module-oslo-messaging = %EVR
Obsoletes: python-module-oslo-messaging < %EVR
BuildArch:  noarch

BuildRequires: python-devel
BuildRequires: python-module-setuptools-tests
BuildRequires: python-module-pbr >= 1.8
BuildRequires: python-module-futurist >= 0.11.0
BuildRequires: python-module-oslo.config >= 3.14.0
BuildRequires: python-module-oslo.context >= 2.9.0
BuildRequires: python-module-oslo.log >= 3.11.0
BuildRequires: python-module-oslo.utils >= 3.18.0
BuildRequires: python-module-oslo.serialization >= 1.10.0
BuildRequires: python-module-oslo.service >= 1.10.0
BuildRequires: python-module-oslo.i18n >= 2.1.0
BuildRequires: python-module-stevedore >= 1.17.1
BuildRequires: python-module-debtcollector >= 1.2.0
BuildRequires: python-module-monotonic >= 0.6
BuildRequires: python-module-six >= 1.9.0
BuildRequires: python-module-cachetools >= 1.1.0
BuildRequires: python-module-webob >= 1.6.0
BuildRequires: python-module-yaml >= 3.10.0
BuildRequires: python-module-amqp >= 1:1.4.0
BuildRequires: python-module-kombu >= 1:3.0.25
BuildRequires: python-module-pika >= 0.10.0
BuildRequires: python-module-pika-pool >= 0.1.3
BuildRequires: python-module-fixtures >= 3.0.0
BuildRequires: python-module-futures >= 3.0
BuildRequires: python-module-tenacity >= 3.2.1
BuildRequires: python-module-oslo.middleware >= 3.0.0
BuildRequires: python-module-kafka

BuildRequires: python-module-sphinx >= 1.2.1
BuildRequires: python-module-oslosphinx >= 2.5.0
BuildRequires: python-module-reno >= 1.8.0

%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools-tests
BuildRequires: python3-module-pbr >= 1.8
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-oslosphinx
BuildRequires: python3-module-futurist >= 0.11.0
BuildRequires: python3-module-oslo.config >= 3.7.0
BuildRequires: python3-module-oslo.context >= 0.2.0
BuildRequires: python3-module-oslo.log >= 3.11.0
BuildRequires: python3-module-oslo.utils >= 3.18.0
BuildRequires: python3-module-oslo.serialization >= 1.10.0
BuildRequires: python3-module-oslo.service >= 1.0.0
BuildRequires: python3-module-oslo.i18n >= 2.1.0
BuildRequires: python3-module-six >= 1.9.0
BuildRequires: python3-module-cachetools >= 1.0.0
BuildRequires: python3-module-stevedore >= 1.17.1
BuildRequires: python3-module-debtcollector >= 1.2.0
BuildRequires: python3-module-monotonic >= 0.6
BuildRequires: python3-module-yaml >= 3.10.0
BuildRequires: python3-module-amqp >= 1:1.4.0
BuildRequires: python3-module-kombu >= 1:3.0.25
BuildRequires: python3-module-pika >= 0.10.0
BuildRequires: python3-module-pika-pool >= 0.1.3
BuildRequires: python3-module-fixtures
BuildRequires: python3-module-tenacity >= 3.2.1
BuildRequires: python3-module-oslo.middleware >= 3.0.0
BuildRequires: python3-module-kafka
%endif

%description
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The Oslo messaging API supports RPC and notifications over a number of
different messaging transports.


%package tests
Summary: Tests for %oname
Group: Development/Python
Requires: %name = %EVR

%description tests
This package contains tests for %oname.

%package -n python3-module-%oname
Summary: OpenStack oslo.messaging library
Group: Development/Python3
Provides: python3-module-oslo-messaging = %EVR
%add_python3_req_skip proton
%add_python3_req_skip pyngus

%description -n python3-module-%oname
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The Oslo messaging API supports RPC and notifications over a number of
different messaging transports.

%package -n python3-module-%oname-tests
Summary: Tests for %oname
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description -n python3-module-%oname-tests
This package contains tests for %oname.

%package doc
Summary:    Documentation for OpenStack common messaging library
Group:     Development/Documentation
Provides:  python-module-oslo-messaging-doc = %EVR
Obsoletes: python-module-oslo-messaging-doc < %EVR

%description doc
Documentation for the oslo.messaging library.

%prep
%setup -n %oname-%version

# Remove bundled egg-info

#rm -rf %oname.egg-info
# let RPM handle deps
#sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py

# Remove the requirements file so that pbr hooks don't add it

# to distutils requires_dist config
#rm -rf {test-,}requirements.txt

%if_with python3
rm -rf ../python3
cp -a . ../python3
%endif

%build
%python_build
%if_with python3
pushd ../python3
%python3_build
popd
%endif

# 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}

%install
%if_with python3
pushd ../python3
%python3_install
popd
%endif
%python_install

%files
%doc README.rst LICENSE
%python_sitelibdir/*
%_bindir/*
%exclude %python_sitelibdir/*/tests

%files tests
%python_sitelibdir/*/tests

%if_with python3
%files -n python3-module-%oname
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/tests

%files -n python3-module-%oname-tests
%python3_sitelibdir/*/tests
%endif

%files doc
%doc html LICENSE

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin