93 lines
2.8 KiB
Django/Jinja
93 lines
2.8 KiB
Django/Jinja
{% set pypi_name = 'oslo.concurrency' %}
|
|
{% set upstream_version = upstream_version('5.1.1') %}
|
|
{% set rpm_release = '1' %}
|
|
{% set source = url_pypi() %}
|
|
|
|
Name: {{ py2name() }}
|
|
Version: {{ py2rpmversion() }}
|
|
Release: {{ py2rpmrelease() }}
|
|
Summary: OpenStack oslo.concurrency library
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages/Python
|
|
URL: https://docs.openstack.org/{{ pypi_name }}
|
|
Source0: {{ source }}
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py3('eventlet') }}
|
|
BuildRequires: {{ py3('fasteners') }}
|
|
BuildRequires: {{ py3('fixtures') }}
|
|
BuildRequires: {{ py3('oslo.config') }}
|
|
BuildRequires: {{ py3('oslo.i18n') }}
|
|
BuildRequires: {{ py3('oslo.utils') }}
|
|
BuildRequires: {{ py3('oslotest') }}
|
|
BuildRequires: {{ py3('pbr') }}
|
|
BuildRequires: {{ py3('stestr') }}
|
|
BuildRequires: {{ py3('testscenarios') }}
|
|
BuildRequires: {{ py3('testtools') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The oslo.concurrency library has utilities for safely running multi-thread,
|
|
multi-process applications using locking mechanisms and for running
|
|
external processes.
|
|
|
|
%package -n {{ py2name(py_versions='py3') }}
|
|
Summary: OpenStack oslo.concurrency library
|
|
Requires: {{ py3('fasteners') }}
|
|
Requires: {{ py3('oslo.config') }}
|
|
Requires: {{ py3('oslo.i18n') }}
|
|
Requires: {{ py3('oslo.utils') }}
|
|
%if 0%{?suse_version}
|
|
Obsoletes: {{ py2name(py_versions='py2') }} < 4.0.0
|
|
%endif
|
|
|
|
%description -n {{ py2name(py_versions='py3') }}
|
|
The oslo.concurrency library has utilities for safely running multi-thread,
|
|
multi-process applications using locking mechanisms and for running
|
|
external processes.
|
|
|
|
This package contains the Python 3.x module.
|
|
|
|
%package -n python-oslo.concurrency-doc
|
|
Summary: Documentation for OpenStack concurrency library
|
|
BuildRequires: {{ py3('Sphinx') }}
|
|
BuildRequires: {{ py3('openstackdocstheme') }}
|
|
BuildRequires: {{ py3('sphinxcontrib-apidoc') }}
|
|
|
|
%description -n python-oslo.concurrency-doc
|
|
The oslo.concurrency library has utilities for safely running multi-thread,
|
|
multi-process applications using locking mechanisms and for running
|
|
external processes.
|
|
This package contains the documentation.
|
|
|
|
%prep
|
|
%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
# generate html docs
|
|
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%check
|
|
env TEST_EVENTLET=0 %{openstack_stestr_run}
|
|
env TEST_EVENTLET=1 %{openstack_stestr_run}
|
|
|
|
%files -n {{ py2name(py_versions='py3') }}
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{_bindir}/lockutils-wrapper
|
|
%{python3_sitelib}/oslo_concurrency
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%files -n python-oslo.concurrency-doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|