%global sname oslo.sphinx Name: python-oslo-sphinx Version: 1.0 Release: 2%{?dist} Summary: OpenStack Sphinx Extensions Group: Development/Languages License: ASL 2.0 URL: https://launchpad.net/oslo Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz BuildArch: noarch Requires: python-setuptools BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pbr BuildRequires: python-d2to1 %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-sphinx library contains Sphinx theme and extensions support used by OpenStack. %prep %setup -q -n %{sname}-%{version} # Remove bundled egg-info rm -rf oslo_sphinx.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Fix hidden-file-or-dir warnings rm -fr doc/build/html/.buildinfo %files %doc LICENSE README.rst %{python_sitelib}/oslo %{python_sitelib}/*.egg-info %{python_sitelib}/*-nspkg.pth %changelog * Mon Jul 8 2013 Dan Prince 1.0-2 - Initial package.