14
0

- Update to version 3.1:

+ See http://www.tornadoweb.org/en/stable/releases/v3.1.0.html
- Fix rpmlint issues properly
- Use upstream URL

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=29
This commit is contained in:
Sascha Peilicke
2013-08-15 11:00:45 +00:00
committed by Git OBS Bridge
parent 3987afc5a3
commit f305b3a530
4 changed files with 15 additions and 13 deletions

View File

@@ -16,20 +16,18 @@
#
Name: python-tornado
Version: 3.0.1
Version: 3.1
Release: 0
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: https://pypi.python.org/packages/source/t/tornado/tornado-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
Requires: python-pycurl
Requires: python-simplejson
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
@@ -54,18 +52,14 @@ thousands of clients, see The C10K problem.)
%prep
%setup -q -n tornado-%{version}
# Fix non-executable script rpmlint issue:
find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version}
%fdupes demos
%endif
# fix executability rmplint warning
chmod +x %{buildroot}%{python_sitelib}/tornado/*.py
chmod +x %{buildroot}%{python_sitelib}/tornado/*/*.py
%files
%defattr(-,root,root,-)