4 Group: System/Libraries
6 Url: http://twistedmatrix.com/
7 Summary: An asynchronous networking framework written in Python
8 Source: http://pypi.python.org/packages/source/T/Twisted/Twisted-%{version}.tar.bz2
9 BuildRequires: pkgconfig(python)
10 BuildRequires: python-zope.interface
12 Requires: python-pyOpenSSL
13 Requires: python-PyPAM
14 Requires: python-zope.interface
15 Provides: python-twisted
16 Provides: python-twisted-core
17 Provides: python-twisted-conch
18 Provides: python-twisted-lore
19 Provides: python-twisted-mail
20 Provides: python-twisted-name
21 Provides: python-twisted-news
22 Provides: python-twisted-runner
23 Provides: python-twisted-web
24 Provides: python-twisted-words
25 Provides: python-twisted-xish
28 An extensible framework for Python programming, with special focus
29 on event-based network programming and multiprotocol integration.
32 %setup -q -n Twisted-%{version}
38 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
39 find %{buildroot} -regex '.*\.[ch]' -exec rm {} ";" # Remove leftover C sources
40 install -dm0755 %{buildroot}/%{_mandir}/man1/
41 install -m0644 doc/*/man/*.1 %{buildroot}/%{_mandir}/man1/ # Install man pages
42 find doc -type f -print0 | xargs -0 chmod a-x # Fix doc-file dependency by removing x flags
43 sed -i "s/\r//" doc/core/howto/listings/udp/{MulticastClient,MulticastServer}.py
46 %defattr(-,root,root,-)
47 %doc LICENSE NEWS README