%define tarname Sphinx %define name python-sphinx %define version 0.4.2 %define release %mkrel 2 Summary: Python documentation generator Name: %{name} Version: %{version} Release: %{release} Source0: %{tarname}-%{version}.tar.lzma License: BSD Group: Development/Python Url: http://sphinx.pocoo.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: python-pygments >= 0.8, python-jinja > 1.1, python-docutils >= 0.4 Requires: python-setuptools BuildRequires: python-devel, python-setuptools BuildRequires: tetex-latex, python-docutils >= 0.4 BuildArch: noarch %description Sphinx is a tool that facilitates the creation of beautiful documentation for Python projects from reStructuredText sources. It was originally created to format the new documentation for Python, but has since been cleaned up in the hope that it will be useful in many other projects. %prep %setup -q -n %{tarname}-%{version} %build %install %__rm -rf %{buildroot} %__python setup.py install --root=%{buildroot} --record=FILELIST make -C doc latex make -C doc/_build/latex all-pdf %clean %__rm -rf %{buildroot} %files -f FILELIST %defattr(-,root,root) %doc AUTHORS CHANGES LICENSE TODO doc/_build/latex/sphinx.pdf %changelog * Wed Aug 06 2008 Lev Givon <lev@mandriva.org> 0.4.2-2mdv2009.0 + Revision: 264333 - Add setuptools as an install requirement (pkg_resources needed by sphinx-build). * Wed Aug 06 2008 Lev Givon <lev@mandriva.org> 0.4.2-1mdv2009.0 + Revision: 264111 - Update to 0.4.2. * Fri Jul 11 2008 Lev Givon <lev@mandriva.org> 0.4.1-1mdv2009.0 + Revision: 233844 - Update to 0.4.1. * Mon Jun 23 2008 Lev Givon <lev@mandriva.org> 0.4-1mdv2009.0 + Revision: 228282 - Update to 0.4. * Fri May 30 2008 Lev Givon <lev@mandriva.org> 0.3-1mdv2009.0 + Revision: 213482 - import python-sphinx * Thu May 29 2008 Lev Givon <lev@mandriva.org> 0.3-1mdv2008.1 - Package for Mandriva.