From 034409009b7ac5a2396a88e47525194a16785d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20Ar=C8=9B=C4=83ri=C8=99i?= Date: Mon, 2 Nov 2009 13:53:49 +0000 Subject: [PATCH] - Initial import. --- .cvsignore | 1 + import.log | 1 + python-tornado.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 102 insertions(+) create mode 100644 import.log create mode 100644 python-tornado.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a7385b2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tornado-0.2.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..df9fe38 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-tornado-0_2-3_fc11:F-12:python-tornado-0.2-3.fc11.src.rpm:1257169693 diff --git a/python-tornado.spec b/python-tornado.spec new file mode 100644 index 0000000..6bde3d8 --- /dev/null +++ b/python-tornado.spec @@ -0,0 +1,99 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%global pkgname tornado + +Name: python-%{pkgname} +Version: 0.2 +Release: 3%{?dist} +Summary: Scalable, non-blocking web server and tools + +Group: Development/Libraries +License: ASL 2.0 +URL: http://www.tornadoweb.org +Source0: http://www.tornadoweb.org/static/%{pkgname}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-devel +Requires: python-pycurl +Requires: python-simplejson + +%description +Tornado is an open source version of the scalable, non-blocking web server and +and tools. + +The framework is distinct from most mainstream web server frameworks (and +certainly most Python frameworks) because it is non-blocking and reasonably +fast. Because it is non-blocking and uses epoll, it can handle thousands of +simultaneous standing connections, which means it is ideal for real-time web +services. + +%package doc +Summary: Examples for python-tornado +Group: Documentation +Requires: python-tornado = %{version}-%{release} + +%description doc +Tornado is an open source version of the scalable, non-blocking web server and +and tools. This package contains some example applications. + +%prep +%setup -q -n %{pkgname}-%{version} + +# remove shebang from files +for File in `find %{pkgname} -name "*py"`; do + %{__sed} -i.orig -e 1d ${File} + touch -r ${File}.orig ${File} + %{__rm} ${File}.orig +done + +# spurious permission fix +%{__chmod} -x demos/*/*py +%{__chmod} -x demos/*/*/*py +%{__chmod} -x demos/*/*/*/*py + +# remove empty file +rm -rf demos/facebook/static/facebook.js + +%build +python setup.py build + + +%install +rm -rf %{buildroot} + +PATH=$PATH:%{buildroot}%{python_sitelib}/%{pkgname} +python setup.py install --root=%{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README PKG-INFO + +%{python_sitelib}/%{pkgname}/ +%{python_sitelib}/%{pkgname}-%{version}-*.egg-info + +%files doc +%defattr(-,root,root,-) +%doc demos + +%changelog +* Wed Oct 21 2009 Ionuț Arțăriși - 0.2-3 +- changed -doc package group to Documentation +- use global instead of define + +* Tue Oct 20 2009 Ionuț Arțăriși - 0.2-2 +- create -doc package for examples +- altered description to not include references to FriendFeed +- rename to python-tornado + +* Fri Sep 25 2009 Ionuț Arțăriși - 0.2-1 +- New upstream version +- Fixed macro usage and directory ownership in spec + +* Thu Sep 10 2009 Ionuț Arțăriși - 0.1-1 +- Initial release + diff --git a/sources b/sources index e69de29..8e680f8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4704cbf8baab2562c1e648c76de87b60 tornado-0.2.tar.gz