rpm-packaging/openstack/oslo.service/oslo.service.spec.j2

91 lines
3.0 KiB
Django/Jinja

%global sname oslo.service
Name: {{ py2name('oslo.service') }}
Version: 1.11.0
Release: 0
Summary: OpenStack oslo.service library
License: {{ license('Apache-2.0') }}
Group: Development/Languages/Python
Url: https://launchpad.net/%{sname}
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: procps
BuildRequires: {{ py2pkg('Paste') }}
BuildRequires: {{ py2pkg('PasteDeploy') }}
BuildRequires: {{ py2pkg('Routes') }}
BuildRequires: {{ py2pkg('WebOb') }}
BuildRequires: {{ py2pkg('devel') }}
BuildRequires: {{ py2pkg('eventlet') }}
BuildRequires: {{ py2pkg('fixtures') }}
BuildRequires: {{ py2pkg('greenlet') }}
BuildRequires: {{ py2pkg('mock') }}
BuildRequires: {{ py2pkg('monotonic') }}
BuildRequires: {{ py2pkg('oslo.concurrency') }}
BuildRequires: {{ py2pkg('oslo.config') }}
BuildRequires: {{ py2pkg('oslo.i18n') }}
BuildRequires: {{ py2pkg('oslo.log') }}
BuildRequires: {{ py2pkg('oslo.utils') }}
BuildRequires: {{ py2pkg('oslotest') }}
BuildRequires: {{ py2pkg('pbr') }}
BuildRequires: {{ py2pkg('six') }}
Requires: {{ py2pkg('Paste') }}
Requires: {{ py2pkg('PasteDeploy') }}
Requires: {{ py2pkg('Routes') }}
Requires: {{ py2pkg('WebOb') }}
Requires: {{ py2pkg('eventlet') }}
Requires: {{ py2pkg('greenlet') }}
Requires: {{ py2pkg('monotonic') }}
Requires: {{ py2pkg('oslo.concurrency') }}
Requires: {{ py2pkg('oslo.config') }}
Requires: {{ py2pkg('oslo.i18n') }}
Requires: {{ py2pkg('oslo.log') }}
Requires: {{ py2pkg('oslo.utils') }}
Requires: {{ py2pkg('six') }}
BuildArch: noarch
%description
oslo.service provides a framework for defining new long-running services using
the patterns established by other OpenStack applications. It also includes
utilities long-running applications might need for working with SSL or WSGI,
performing periodic operations, interacting with systemd, etc.
%package doc
Summary: Documentation for OpenStack service library
BuildRequires: {{ py2pkg('Sphinx') }}
BuildRequires: {{ py2pkg('oslosphinx') }}
%description doc
oslo.service provides a framework for defining new long-running services using
the patterns established by other OpenStack applications. It also includes
utilities long-running applications might need for working with SSL or WSGI,
performing periodic operations, interacting with systemd, etc.
This package contains the documentation.
%prep
%setup -q -n %{sname}-%{version}
%build
%{__python2} setup.py build
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
%{__python2} setup.py testr
%files
%license LICENSE
%doc README.rst ChangeLog
%{python2_sitelib}/oslo_service
%{python2_sitelib}/*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%changelog