Name: python-Twisted Version: 1.1.1 Release: 0.fdr.1 Summary: Event-driven networking framework written in Python. %define module Twisted License: LGPL Group: Development/Libraries Source: http://twisted.sourceforge.net/%{module}-%{version}.tar.bz2 URL: http://www.twistedmatrix.com/ Requires: python BuildRequires: python-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description An event-driven networking framework written in Python and licensed under the LGPL. Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of protocols (including HTTP, NNTP, SSH, IRC, FTP, and others), and much more. %prep %setup -q -n %{module}-%{version} %build %{__python} setup.py build_ext %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES sed -e 's|/[^/]*$||' INSTALLED_FILES | grep "site-packages/" | \ sort | uniq | awk '{ print "%attr(755,root,root) %dir " $1}' > INSTALLED_DIRS cat INSTALLED_FILES INSTALLED_DIRS > INSTALLED_OBJECTS %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_OBJECTS %defattr(-,root,root,-) %doc CREDITS ChangeLog README doc %changelog * Fri Feb 13 2004 Thomas Vander Stichele - 1.1.1-0.fdr.1: Initial RPM release