Name: python-Twisted Version: 1.2.0 Release: 0.fdr.1 Summary: Event-driven networking framework written in Python. %define module Twisted License: LGPL Group: Applications/Internet Source: http://twisted.sourceforge.net/%{module}-%{version}.tar.bz2 Patch: python22.patch URL: http://www.twistedmatrix.com/ Requires: python BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-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. %package docs Summary: Documentation for the Twisted networking framework. Group: Documentation %description docs 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. This package contains all the documentation for Twisted. %prep %setup -q -n %{module}-%{version} %patch -p2 %build %{__python} setup.py build_ext %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --root=$RPM_BUILD_ROOT # the man pages are not installed, so install them # and remove them from the doc dir cd doc/man install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 for man in *.1 do gzip $man install $man.gz $RPM_BUILD_ROOT%{_mandir}/man1 rm $man.gz done cd ../.. # set permissions on all doc files to 644 # because some examples are set executable and some aren't, which is # inconsistent find doc -type f -exec chmod 644 {} \; %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CREDITS ChangeLog README %{_libdir}/python?.?/site-packages/twisted %{_bindir}/ckeygen %{_bindir}/conch %{_bindir}/im %{_bindir}/lore %{_bindir}/mailmail %{_bindir}/manhole %{_bindir}/mktap %{_bindir}/t-im %{_bindir}/tap2deb %{_bindir}/tapconvert %{_bindir}/tkconch %{_bindir}/tkmktap %{_bindir}/trial %{_bindir}/twistd %{_bindir}/websetroot %{_mandir}/man1/ckeygen.1* %{_mandir}/man1/conch.1* %{_mandir}/man1/im.1* %{_mandir}/man1/lore.1* %{_mandir}/man1/mailmail.1* %{_mandir}/man1/manhole.1* %{_mandir}/man1/mktap.1* %{_mandir}/man1/tap2deb.1* %{_mandir}/man1/tap2rpm.1* %{_mandir}/man1/tapconvert.1* %{_mandir}/man1/t-im.1* %{_mandir}/man1/tkconch.1* %{_mandir}/man1/tkmktap.1* %{_mandir}/man1/trial.1* %{_mandir}/man1/twistd.1* %{_mandir}/man1/websetroot.1* %files docs %defattr(-,root,root,-) %doc doc/index.html doc/index.xhtml %doc doc/api doc/benchmarks doc/examples doc/fun doc/historic doc/howto %doc doc/img doc/legal doc/man doc/specifications doc/vision %changelog * Sun May 09 2004 Thomas Vander Stichele - 1.2.0-0.fdr.1: Update to new upstream release - split off docs - packaged man pages correctly - patch to remove hardcoding of python2.2 * Fri Feb 13 2004 Thomas Vander Stichele - 1.1.1-0.fdr.1: Initial RPM release