python-twisted-web2-vl.spec 2.6 KB

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