%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-setupdocs Version: 1.0.1 Release: 3%{?dist} Summary: Setuptools plugin Group: Development/Languages License: BSD URL: http://pypi.python.org/pypi/setupdocs Source0: http://pypi.python.org/packages/source/s/setupdocs/setupdocs-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: python-setuptools %description Python setuptools plugin that automates building of docs from ReST source. %prep %setup -q -n setupdocs-%{version} sed -i 's/\#\!.*$//' setupdocs/setupdocs.py rm -rf setupdocs.egg-info %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc *.txt %{python_sitelib}/* %changelog * Tue Jan 27 2009 Rakesh Pandit 1.0.1-3 - Removed already existing eggs so that new eggs info files are build - from source. * Tue Jan 27 2009 Rakesh Pandit 1.0.1-2 - Improved description and cleaned some futile information - Corrected URL * Tue Jan 27 2009 Rakesh Pandit 1.0.1-1 - Initial package