From 0edaf68b8d36b0a05b3677ce4a6ad055576e68dbdeeae550854649088ae1d86d Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 12 Mar 2012 21:37:32 +0000 Subject: [PATCH] - Simplified macro usage - Use upstream tarball OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=13 --- python-tornado.changes | 6 ++++++ python-tornado.spec | 32 ++++++++++++++++---------------- tornado-2.2.tar.bz2 | 3 --- tornado-2.2.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 tornado-2.2.tar.bz2 create mode 100644 tornado-2.2.tar.gz diff --git a/python-tornado.changes b/python-tornado.changes index b32204f..813a96a 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 12 21:38:08 UTC 2012 - saschpe@gmx.de + +- Simplified macro usage +- Use upstream tarball + ------------------------------------------------------------------- Mon Jan 30 23:17:07 UTC 2012 - alexandre@exatati.com.br diff --git a/python-tornado.spec b/python-tornado.spec index 98150cf..0e39910 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -15,9 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - Name: python-tornado Version: 2.2 Release: 0 @@ -25,28 +22,31 @@ Url: http://www.tornadoweb.org Summary: Open source version of scalable, non-blocking web server that power FriendFeed License: Apache-2.0 Group: Development/Languages/Python -Source: tornado-%{version}.tar.bz2 +Source: http://github.com/downloads/facebook/tornado/tornado-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel Requires: python-curl Requires: python-simplejson -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch %endif -%endif %description -Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed. -The FriendFeed application is written using a web framework that looks a bit like web.py or Google's webapp, -but with additional tools and optimizations to take advantage of the underlying non-blocking infrastructure. +Tornado is an open source version of the scalable, non-blocking web server and +tools that power FriendFeed. The FriendFeed application is written using a web +framework that looks a bit like web.py or Google's webapp, but with additional +tools and optimizations to take advantage of the underlying non-blocking +infrastructure. -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. We built -the web server specifically to handle FriendFeed's real-time features — every active user of FriendFeed -maintains an open connection to the FriendFeed servers. (For more information on scaling servers to support +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. We built the web server specifically to handle FriendFeed's real-time +features — every active user of FriendFeed maintains an open connection to the +FriendFeed servers. (For more information on scaling servers to support thousands of clients, see The C10K problem.) %prep diff --git a/tornado-2.2.tar.bz2 b/tornado-2.2.tar.bz2 deleted file mode 100644 index 9aa3b3a..0000000 --- a/tornado-2.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e47ce02fa3c0037af1904e55843aec6739f1192d14128d5afdf1d09dd1ffe98 -size 285743 diff --git a/tornado-2.2.tar.gz b/tornado-2.2.tar.gz new file mode 100644 index 0000000..758acb0 --- /dev/null +++ b/tornado-2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:246f9c7cd476fc17a09c86cbcbab2350353dc0c6d9220e1acc8814186a1a0466 +size 330317