-
Notifications
You must be signed in to change notification settings - Fork 29
/
python-txws.spec
50 lines (36 loc) · 1.26 KB
/
python-txws.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
49
50
%global modname txws
Name: python-txws
Version: 0.7
Release: 2%{?dist}
Summary: Twisted WebSockets wrapper
Group: Development/Languages
License: MIT
URL: http://pypi.python.org/pypi/txWS
Source0: http://pypi.python.org/packages/source/t/txWS/txWS-0.7.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-twisted
Requires: python-twisted
%description
txWS (pronounced "Twisted WebSockets") is a small, short, simple library
for adding WebSockets server support to your favorite Twisted applications.
%prep
%setup -q -n txWS-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# We could run the tests when building, but txWS doesn't ship the tests.py with
# the distribution. Leaving it commented out as a possibility for later.
#%check
#PYTHONPATH=$(pwd) trial tests.py
%files
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/*
%changelog
* Mon Apr 09 2012 Ralph Bean <[email protected]> 0.7-2
- Fixed spelling error in the specfile description.
* Thu Apr 05 2012 Ralph Bean <[email protected]> 0.7-1
- initial package for Fedora