
This also brings some new requirements and build-requirements. Change-Id: I13a042efa6fcbc70d907f0b588f82584b858bbb3
80 lines
2.4 KiB
Django/Jinja
80 lines
2.4 KiB
Django/Jinja
%global sname oslo.config
|
|
Name: {{ py2name('oslo.config') }}
|
|
Version: 3.12.0
|
|
Epoch: {{ epoch('oslo.config') }}
|
|
Release: 0
|
|
Summary: OpenStack common configuration library
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages
|
|
Url: https://launchpad.net/%{sname}
|
|
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py2pkg('debtcollector') }}
|
|
BuildRequires: {{ py2pkg('devel') }}
|
|
BuildRequires: {{ py2pkg('fixtures') }}
|
|
BuildRequires: {{ py2pkg('mock') }}
|
|
BuildRequires: {{ py2pkg('netaddr') }}
|
|
BuildRequires: {{ py2pkg('oslo.i18n') }}
|
|
BuildRequires: {{ py2pkg('oslotest') }}
|
|
BuildRequires: {{ py2pkg('pbr') }}
|
|
BuildRequires: {{ py2pkg('python-subunit') }}
|
|
BuildRequires: {{ py2pkg('rfc3986') }}
|
|
BuildRequires: {{ py2pkg('six') }}
|
|
BuildRequires: {{ py2pkg('stevedore') }}
|
|
BuildRequires: {{ py2pkg('testrepository') }}
|
|
BuildRequires: {{ py2pkg('testscenarios') }}
|
|
BuildRequires: {{ py2pkg('testtools') }}
|
|
Requires: {{ py2pkg('debtcollector') }}
|
|
Requires: {{ py2pkg('netaddr') }}
|
|
Requires: {{ py2pkg('oslo.i18n') }}
|
|
Requires: {{ py2pkg('rfc3986') }}
|
|
Requires: {{ py2pkg('six') }}
|
|
Requires: {{ py2pkg('stevedore') }}
|
|
BuildArch: noarch
|
|
|
|
%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-config library is a command line and configuration file
|
|
parsing library from the Oslo project.
|
|
|
|
%package doc
|
|
Summary: Documentation for OpenStack common configuration library
|
|
BuildRequires: {{ py2pkg('Sphinx') }}
|
|
BuildRequires: {{ py2pkg('oslosphinx') }}
|
|
|
|
%description doc
|
|
Documentation for the oslo-config library.
|
|
|
|
%prep
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%build
|
|
%{__python2} setup.py build
|
|
|
|
%{__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
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{_bindir}/oslo-config-generator
|
|
%{python2_sitelib}/oslo_config
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
%files doc
|
|
%doc doc/build/html
|
|
%license LICENSE
|
|
|
|
%changelog
|