python-tornado-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #%define python_sitelib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)')
  2. #%define python_platlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  3. %define tornado tornado
  4. Summary: Tornado is a web server and tools
  5. Summary(ja): Tornado 高速 Web フレームワーク
  6. Name: python-%{tornado}
  7. Group: Development/Web Applications
  8. Version: 0.2
  9. Release: 2%{?_dist_release}
  10. License: Apache Licence, Version 2.0
  11. URL: http://www.tornadoweb.org/
  12. Source0: %{url}/static/%{tornado}-%{version}.tar.gz
  13. Requires: python >= 2.5
  14. Requires: python-pycurl python-simplejson
  15. BuildRequires: python-devel
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Packager: <owa>
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. Tornado is an open source version of the scalable, non-blocking web server
  22. and and tools that power FriendFeed. Documentation and downloads are
  23. available at http://www.tornadoweb.org/
  24. Tornado is licensed under the Apache Licence, Version 2.0
  25. (http://www.apache.org/licenses/LICENSE-2.0.html).
  26. %prep
  27. %setup -q -n %{tornado}-%{version}
  28. %build
  29. python setup.py build
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. python setup.py install --prefix=$RPM_BUILD_ROOT/usr
  33. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{tornado}-%{version}
  34. cp -a demos $RPM_BUILD_ROOT/%{_datadir}/%{tornado}-%{version}/
  35. chmod 644 $RPM_BUILD_ROOT/%{_datadir}/%{tornado}-%{version}/demos/django/testdjango/testapp/tests.py
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-, root, root)
  40. %doc PKG-INFO README
  41. #%{python_sitearch}
  42. %{_datadir}/%{tornado}-%{version}/demos/appengine
  43. %{_datadir}/%{tornado}-%{version}/demos/auth
  44. %{_datadir}/%{tornado}-%{version}/demos/blog
  45. %{_datadir}/%{tornado}-%{version}/demos/chat
  46. %{_datadir}/%{tornado}-%{version}/demos/django
  47. %{_datadir}/%{tornado}-%{version}/demos/facebook
  48. %{_datadir}/%{tornado}-%{version}/demos/helloworld
  49. %{_datadir}/%{tornado}-%{version}/demos/wsgi
  50. %changelog
  51. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.2-2
  52. - rebuild with python-2.6
  53. * Sun Sep 20 2009 Shu KONNO <owa@bg.wakwak.com> 0.2-1
  54. - initial build for VineSeed