%define oname indices %define name python-%oname %define version 0.1 %define release 4mdk Summary: Sequence index, item ranges, and enumeration for python Name: %{name} Version: %{version} Release: %{release} Source0: %{oname}.py License: LGPL Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot Url: http://www.python.org/peps/pep-0212.html BuildRequires: python BuildArch: noarch %description This is a python module providing a number of functions to make it easier to iterate over sequences, based on PEP 212 and PEP 279. %install rm -rf $RPM_BUILD_ROOT install -m644 -D %SOURCE0 $RPM_BUILD_ROOT/%{_libdir}/python%pyver/site-packages/%{oname}.py cd $RPM_BUILD_ROOT/%{_libdir}/python%pyver/site-packages/ python -c "import %{oname}" %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_libdir}/python%pyver/site-packages/%{oname}.py* %changelog * Thu Feb 03 2005 Michael Scherer <misc@mandrake.org> 0.1-4mdk - Really rebuild for new python * Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.1-3mdk - Rebuild for new python * Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 0.1-2mdk - python 2.3 * Wed Jul 9 2003 Austin Acton <aacton@yorku.ca> 0.1-1mdk - from andi payn <payn@myrealbox.com> : - initial specfile