[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
| 3 | Summary: Event-driven networking engine in Python |
---|
| 4 | Summary(ja): Pythonで書かれたイベントドリブンなネットワークエンジン |
---|
| 5 | Name: python-twisted |
---|
[2258] | 6 | Version: 10.2.0 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | Source0: http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-%{version}.tar.bz2 |
---|
| 9 | License: MIT |
---|
| 10 | Group: Development/Languages |
---|
| 11 | URL: http://twistedmatrix.com/trac/ |
---|
| 12 | |
---|
| 13 | Requires: python |
---|
| 14 | Requires: python-zope-interface |
---|
| 15 | Requires: pyOpenSSL |
---|
| 16 | BuildRequires: python, python-devel |
---|
| 17 | BuildRequires: python-zope-interface |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | Twisted is a networking engine written in Python, supporting |
---|
| 23 | numerous protocols. It contains a web server, numerous chat |
---|
| 24 | clients, chat servers, mail servers, and more. |
---|
| 25 | |
---|
| 26 | Twisted is a platform for developing internet applications. |
---|
| 27 | |
---|
| 28 | %description -l ja |
---|
| 29 | Twisted は Python で書かれた、多くのプロトコルをサポートする |
---|
| 30 | ネットワーク・エンジンです。このパッケージにはウェブサーバや |
---|
| 31 | 多種多様なチャット用クライアント、チャットサーバ、メールサーバ |
---|
| 32 | 等が含まれています。 |
---|
| 33 | |
---|
| 34 | Twisted はウェブアプリケーション開発用のプラットフォームです。 |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %package docs |
---|
| 38 | Summary: Documentation for Twisted |
---|
| 39 | Summary(ja): Twisted のドキュメント |
---|
| 40 | Group: Applications/Documentation |
---|
| 41 | # workaround to prevent find-requires error |
---|
| 42 | AutoReq: No |
---|
| 43 | |
---|
| 44 | %description docs |
---|
| 45 | This package contains various documents and examples for |
---|
| 46 | Twisted. |
---|
| 47 | |
---|
| 48 | %description docs -l ja |
---|
| 49 | このパッケージには Twisted の各種ドキュメントやサンプルが |
---|
| 50 | 含まれています。 |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | |
---|
| 55 | %setup -q -n Twisted-%{version} |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | %{__python} setup.py build |
---|
| 60 | # create plugins cache |
---|
| 61 | python -c "from twisted.plugin import IPlugin, getPlugins;list(getPlugins(IPlugin))" >/dev/null 2>&1 |
---|
| 62 | |
---|
| 63 | %install |
---|
| 64 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 65 | %{__python} setup.py install --root ${RPM_BUILD_ROOT} |
---|
| 66 | |
---|
| 67 | # install man pages |
---|
| 68 | %{__install} -d -m 755 "$RPM_BUILD_ROOT"/%{_mandir}/man1/ |
---|
| 69 | %{__install} -m 644 doc/core/man/*.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/ |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %clean |
---|
| 73 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %files |
---|
| 77 | %defattr(-,root,root) |
---|
| 78 | %doc INSTALL LICENSE NEWS README |
---|
[2258] | 79 | #%{_bindir}/bookify |
---|
[521] | 80 | %{_bindir}/cftp |
---|
| 81 | %{_bindir}/ckeygen |
---|
| 82 | %{_bindir}/conch |
---|
[2258] | 83 | #%{_bindir}/im |
---|
[521] | 84 | %{_bindir}/lore |
---|
| 85 | %{_bindir}/mailmail |
---|
| 86 | %{_bindir}/manhole |
---|
| 87 | %{_bindir}/mktap |
---|
| 88 | %{_bindir}/pyhtmlizer |
---|
[2258] | 89 | #%{_bindir}/t-im |
---|
[521] | 90 | %{_bindir}/tap2deb |
---|
| 91 | %{_bindir}/tap2rpm |
---|
| 92 | %{_bindir}/tapconvert |
---|
| 93 | %{_bindir}/tkconch |
---|
| 94 | %{_bindir}/trial |
---|
| 95 | %{_bindir}/twistd |
---|
| 96 | %{python_sitearch}/twisted |
---|
| 97 | %{python_sitearch}/Twisted-%{version}-py%{pyver}.egg-info |
---|
| 98 | %{_mandir}/man1/* |
---|
| 99 | |
---|
| 100 | %files docs |
---|
| 101 | %defattr(-,root,root) |
---|
| 102 | %doc doc/* |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | %changelog |
---|
[2258] | 106 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 10.2.0-1 |
---|
| 107 | - updated twisted to 10.2.0 |
---|
| 108 | |
---|
[521] | 109 | * Thu Feb 04 2010 Shu KONNO <owa@bg.wakwak.com> 8.1.0-2 |
---|
| 110 | - rebuilt with python-2.6.4-3 |
---|
| 111 | |
---|
| 112 | * Tue Dec 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 8.1.0-1 |
---|
| 113 | - initial build for Vine Linux |
---|