%global sname oslo.rootwrap Name: {{ py2name('oslo.rootwrap') }} Version: 5.9.3 Release: 0 Summary: Filtering shell commands to run as root from OpenStack services License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: https://launchpad.net/%{sname} Source0: https://files.pythonhosted.org/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz BuildRequires: openstack-macros BuildRequires: python-devel BuildRequires: {{ py2pkg('eventlet') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('python-subunit') }} BuildRequires: {{ py2pkg('six') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testscenarios') }} BuildRequires: {{ py2pkg('testtools') }} Requires: {{ py2pkg('six') }} BuildArch: noarch %if 0%{?suse_version} BuildRequires: iproute2 %else BuildRequires: iproute %endif %description oslo.rootwrap allows fine-grained filtering of shell commands to run as root from OpenStack services. %package doc Summary: Documentation for OpenStack %{sname} BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('openstackdocstheme') }} BuildRequires: {{ py2pkg('reno') }} %description doc Documentation for the OpenStack %{sname} library. %prep %autosetup -n %{sname}-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %{py2_build} # generate html docs %{__python2} setup.py build_sphinx rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py2_install} %check export PYTHONPATH=. %{__python2} setup.py testr %files %license LICENSE %doc ChangeLog README.rst %{python2_sitelib}/oslo_rootwrap %{python2_sitelib}/*.egg-info %{_bindir}/oslo-rootwrap %{_bindir}/oslo-rootwrap-daemon %files doc %license LICENSE %doc doc/build/html %changelog