78 lines
2.3 KiB
Django/Jinja
78 lines
2.3 KiB
Django/Jinja
%global sname oslo.utils
|
|
Name: {{ py2name('oslo.utils') }}
|
|
Version: 3.11.0
|
|
Release: 0
|
|
Summary: OpenStack utils 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('Babel') }}
|
|
BuildRequires: {{ py2pkg('debtcollector') }}
|
|
BuildRequires: {{ py2pkg('fixtures') }}
|
|
BuildRequires: {{ py2pkg('iso8601') }}
|
|
BuildRequires: {{ py2pkg('mock') }}
|
|
BuildRequires: {{ py2pkg('monotonic') }}
|
|
BuildRequires: {{ py2pkg('netaddr') }}
|
|
BuildRequires: {{ py2pkg('netifaces') }}
|
|
BuildRequires: {{ py2pkg('oslo.config') }}
|
|
BuildRequires: {{ py2pkg('oslo.i18n') }}
|
|
BuildRequires: {{ py2pkg('oslotest') }}
|
|
BuildRequires: {{ py2pkg('pbr') }}
|
|
BuildRequires: {{ py2pkg('python-subunit') }}
|
|
BuildRequires: {{ py2pkg('testrepository') }}
|
|
BuildRequires: {{ py2pkg('testscenarios') }}
|
|
BuildRequires: {{ py2pkg('testtools') }}
|
|
Requires: {{ py2pkg('debtcollector') }}
|
|
Requires: {{ py2pkg('funcsigs') }}
|
|
Requires: {{ py2pkg('iso8601') }}
|
|
Requires: {{ py2pkg('monotonic') }}
|
|
Requires: {{ py2pkg('netaddr') }}
|
|
Requires: {{ py2pkg('netifaces') }}
|
|
Requires: {{ py2pkg('oslo.i18n') }}
|
|
Requires: {{ py2pkg('pytz') }}
|
|
Requires: {{ py2pkg('six') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The oslo.utils library provides support for common utility type functions,
|
|
such as encoding, exception handling, string manipulation, and time handling.
|
|
|
|
%package doc
|
|
Summary: Documentation for OpenStack utils library
|
|
BuildRequires: {{ py2pkg('Sphinx') }}
|
|
BuildRequires: {{ py2pkg('oslosphinx') }}
|
|
|
|
%description doc
|
|
Documentation for OpenStack utils library.
|
|
|
|
%prep
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%build
|
|
%{__python2} setup.py build
|
|
|
|
%install
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
# generate html docs
|
|
%{__python2} setup.py build_sphinx
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%check
|
|
%{__python2} setup.py test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc AUTHORS ChangeLog README.rst
|
|
%{python2_sitelib}/oslo_utils
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
%files doc
|
|
%doc doc/build/html
|
|
%license LICENSE
|
|
|
|
%changelog
|