%define ver 0.98 %define release 3mdk %define oname pexpect %define dname %{oname}-%{ver} Name: python-%oname Version: %{ver} Release: %{release} Source0: %{dname}.tar.bz2 Source1: %{oname}-doc.tar.bz2 Source2: %{oname}-examples.tar.bz2 Summary: An efficient, pure-python replacement for Expect License: Python Software Foundation License Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot Url: http://pexpect.sourceforge.net/ BuildRequires: python >= %{pyver} BuildRequires: libpython-devel >= %{pyver} BuildArch: noarch %description This is a pure-python replacement for Expect, a module that allows easy control of other applications (including interactive applications that would drive popen crazy). It's not 100% compatible with the real thing, but its at least 90% compatible, and much easier to use. %prep %setup -q -n %{dname} %setup -q -T -D -a 1 -n %{dname} %setup -q -T -D -a 2 -n %{dname} rm -rf doc/CVS rm -rf examples/CVS %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README.txt PKG-INFO doc examples %{_libdir}/python%{pyver}/site-packages/%{oname}.py* %changelog * Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.98-3mdk - Rebuild for new python * Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 0.98-2mdk - python 2.3 * Wed Jul 9 2003 Austin Acton <aacton@yorku.ca> 0.98-1mdk - andi payn <payn@myrealbox.com> : - Initial specfile