%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-dtopt Summary: Add options to doctest examples while they are running Version: 0.1 Release: 2%{?dist} License: MIT Group: System Environment/Libraries URL: http://pypi.python.org/pypi/dtopt/ Source0: http://pypi.python.org/packages/source/d/dtopt/dtopt-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools-devel %description dtopts adds options to doctest examples while they are running. When using the doctest module it is often convenient to use the ELLIPSIS option, which allows you to use ... as a wildcard. But you either have to setup the test runner to use this option, or you must put #doctest: +ELLIPSIS on every example that uses this feature. dtopt lets you enable this option globally from within a doctest, by doing: >>> from dtopt import ELLIPSIS %prep %setup -q -n dtopt-%{version} %build %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/dtopt/ %{python_sitelib}/dtopt*.egg-info/ %changelog * Fri Jun 27 2008 Ricky Zhou 0.1-2 - Clean up spec. * Sat Mar 15 2008 Tom "spot" Callaway 0.1-1 - Initial package for Fedora