/
python-sockjs-cyclone.spec
49 lines (38 loc) · 1.25 KB
/
python-sockjs-cyclone.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
Name: python-sockjs-cyclone
Version: 1.0.2
Release: 1%{?dist}
Summary: SockJS server support for the Cyclone web server
Group: Development/Libraries
License: MIT
URL: https://github.com/flaviogrossi/sockjs-cyclone
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python
Requires: python-simplejson
Requires: python-twisted-cyclone
%description
SockJS-tornado is a pure Python server implementation for the SockJS protocol
running on the Cyclone web server.
%prep
%setup
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%dir %{python_sitelib}/sockjs/
%{python_sitelib}/sockjs/*
%{python_sitelib}/sockjs*egg-info
%changelog
* Wed Jun 6 2012 Flavio Grossi <flaviogrossi@gmail.com>
- First rpm release