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

73 lines
2.1 KiB
Django/Jinja

%global sname oslo.reports
Name: {{ py2name('oslo.reports') }}
Version: 1.8.0
Release: 0
Summary: OpenStack oslo.reports 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: {{ py2pkg('Jinja2') }}
BuildRequires: {{ py2pkg('devel') }}
BuildRequires: {{ py2pkg('eventlet') }}
BuildRequires: {{ py2pkg('greenlet') }}
BuildRequires: {{ py2pkg('oslo.config') }}
BuildRequires: {{ py2pkg('oslo.i18n') }}
BuildRequires: {{ py2pkg('oslo.serialization') }}
BuildRequires: {{ py2pkg('oslo.utils') }}
BuildRequires: {{ py2pkg('oslotest') }}
BuildRequires: {{ py2pkg('pbr') }}
BuildRequires: {{ py2pkg('psutil') }}
BuildRequires: {{ py2pkg('six') }}
Requires: {{ py2pkg('Jinja2') }}
Requires: {{ py2pkg('oslo.i18n') }}
Requires: {{ py2pkg('oslo.serialization') }}
Requires: {{ py2pkg('oslo.utils') }}
Requires: {{ py2pkg('psutil') }}
Requires: {{ py2pkg('six') }}
BuildArch: noarch
%description
The project oslo.reports hosts a general purpose error report generation
framework, known as the "guru meditation report".
%package doc
Summary: Documentation for OpenStack reports library
BuildRequires: {{ py2pkg('Sphinx') }}
BuildRequires: {{ py2pkg('oslosphinx') }}
%description doc
The project oslo.reports hosts a general purpose error report generation
framework, known as the "guru meditation report".
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_reports
%{python2_sitelib}/*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%changelog