[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | %define pkg_release 3%{?_dist_release} |
---|
| 4 | |
---|
| 5 | Summary: Next generation web server framework built with Twisted |
---|
| 6 | Summary(ja): Twisted で構築された次世代のウェブサーバ・フレームワーク |
---|
| 7 | Name: python-twisted-web2 |
---|
| 8 | Version: 8.1.0 |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | Source0: http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/TwistedWeb2-%{version}.tar.bz2 |
---|
| 11 | License: MIT |
---|
| 12 | Group: Development/Languages |
---|
| 13 | URL: http://twistedmatrix.com/trac/ |
---|
| 14 | |
---|
| 15 | Requires: python, python-twisted |
---|
| 16 | BuildRequires: python, python-devel, python-twisted |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | Twisted.Web2 is the next generation Web Server Framework built |
---|
| 22 | with Twisted. |
---|
| 23 | |
---|
| 24 | Web2 is under active development and it's APIs should not be |
---|
| 25 | considered stable at this point. It is not a version of Twisted.Web |
---|
| 26 | and with that in mind compatibility is not of the highest concern, |
---|
| 27 | though the compatibility layer does support many but not all |
---|
| 28 | twisted.web resources. |
---|
| 29 | |
---|
| 30 | %description -l ja |
---|
| 31 | Twisted.Web2 は Twisted で構築された次世代のウェブサーバ・フレーム |
---|
| 32 | ワークです。 |
---|
| 33 | |
---|
| 34 | Web2 は今も活発な開発が行われおり、現時点では API が確定したとは |
---|
| 35 | いえません。またこれは Twisted.Web の派生バージョンではないので、 |
---|
| 36 | Twisted.Web との互換性の確保はそれほど重要視されていません。 |
---|
| 37 | そのため、互換性レイヤは Twisted.Web のリソースの、多くの部分を |
---|
| 38 | カバーしてはいますが、全ては網羅していません。 |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %prep |
---|
| 42 | |
---|
| 43 | %setup -q -n TwistedWeb2-%{version} |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %build |
---|
| 47 | %{__python} setup.py build |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 52 | #%%{__python} setup.py install --root ${RPM_BUILD_ROOT} |
---|
| 53 | %{__python} setup.py install --root ${RPM_BUILD_ROOT} --install-purelib=%{python_sitearch} |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %clean |
---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %files |
---|
| 61 | %defattr(-,root,root) |
---|
| 62 | %doc LICENSE NEWS README doc/* |
---|
| 63 | %{python_sitearch}/twisted/web2 |
---|
| 64 | #%{python_sitearch}/Twisted_Web2-8.1.0-py2.5.egg-info |
---|
| 65 | %{python_sitearch}/Twisted_Web2-8.1.0-py%{pyver}.egg-info |
---|
| 66 | %{python_sitearch}/twisted/plugins/twisted_web2.py* |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
| 70 | * Thu Feb 04 2010 Shu KONNO <owa@bg.wakwak.com> 8.1.0-3 |
---|
| 71 | - rebuilt with python-2.6.4-3 |
---|
| 72 | - fixed egg path |
---|
| 73 | |
---|
| 74 | * Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> 8.1.0-2 |
---|
| 75 | - added '--install-purelib=%%{python_sitearch}' at %%install |
---|
| 76 | |
---|
| 77 | * Tue Dec 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 8.1.0-1 |
---|
| 78 | - initial build for Vine Linux |
---|