python-tornado-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define tornado tornado
  2. Summary: Tornado is a web server and tools
  3. Summary(ja): Tornado 高速 Web フレームワーク
  4. Name: python-%{tornado}
  5. Group: Development/Web Applications
  6. Version: 1.2.1
  7. Release: 1%{?_dist_release}
  8. License: Apache Licence, Version 2.0
  9. URL: http://www.tornadoweb.org/
  10. Source0: %{url}/static/%{tornado}-%{version}.tar.gz
  11. Requires: python >= 2.5
  12. Requires: python-pycurl
  13. Requires: python-simplejson
  14. BuildRequires: python-devel
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildArch: noarch
  17. Distribution: Vine Linux
  18. Vendor: Project Vine
  19. Packager: owa
  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. mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
  33. export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{python_sitelib}
  34. python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
  35. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{tornado}-%{version}
  36. cp -a demos $RPM_BUILD_ROOT/%{_datadir}/%{tornado}-%{version}/
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-, root, root)
  41. %doc PKG-INFO README
  42. %{python_sitelib}/easy-install.pth
  43. %{python_sitelib}/tornado-%{version}-py%{pyver}.egg
  44. %{_datadir}/%{tornado}-%{version}/demos/appengine
  45. %{_datadir}/%{tornado}-%{version}/demos/auth
  46. %{_datadir}/%{tornado}-%{version}/demos/benchmark
  47. %{_datadir}/%{tornado}-%{version}/demos/blog
  48. %{_datadir}/%{tornado}-%{version}/demos/chat
  49. %{_datadir}/%{tornado}-%{version}/demos/facebook
  50. %{_datadir}/%{tornado}-%{version}/demos/helloworld
  51. %exclude %{python_sitelib}/site.py*
  52. %changelog
  53. * Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 1.2.1-1
  54. - updated tornado to 1.2.1
  55. * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.1-1
  56. - updated tornado to 1.1
  57. - added BuildArch: noarch
  58. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.2-2
  59. - rebuild with python-2.6
  60. * Sun Sep 20 2009 Shu KONNO <owa@bg.wakwak.com> 0.2-1
  61. - initial build for VineSeed