%define module dtopt Name: python-%{module} Version: 0.1 Release: %mkrel 2 Summary: Add options to doctest examples while they are running Group: Development/Python License: MIT License URL: http://pypi.python.org/pypi/dtopt Source0: %{module}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: python-devel BuildRequires: python-setuptools Buildarch: noarch %description 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. %files %doc docs/ %{python_sitelib}/* #-------------------------------------------------------------------- %prep %setup -q -n %{module}-%{version} %build CFLAGS="%{optflags}" python setup.py build %install %{__python} setup.py install --root $RPM_BUILD_ROOT --install-purelib=%{python_sitelib} %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.1-2.mga3 + Revision: 378766 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Nov 03 2012 neoclust <neoclust> 0.1-1.mga3 + Revision: 313508 - imported package python-dtopt