1 |
%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
2 |
# we don't want to provide private python extension libs |
3 |
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
4 |
|
5 |
%define module TwistedWords |
6 |
|
7 |
Name: python-twisted-words |
8 |
Version: 14.0.0 |
9 |
Release: %mkrel 2 |
10 |
Summary: Chat and Instant Messaging module for Twisted |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedWords |
14 |
Source0: http://twistedmatrix.com/Releases/Words/%{mainver}/%{module}-%{version}.tar.bz2 |
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-twisted-core |
17 |
|
18 |
Requires: python-twisted-core |
19 |
# for words/tap.py |
20 |
Requires: python-twisted-web |
21 |
|
22 |
%description |
23 |
Twisted Words includes: |
24 |
|
25 |
* Low-level protocol implementations of OSCAR (AIM and ICQ), IRC, MSN, |
26 |
TOC (AIM). |
27 |
* Jabber libraries. |
28 |
* Prototypes of chat server and client frameworks built on top of |
29 |
the protocols. |
30 |
|
31 |
%prep |
32 |
%setup -q -n %{module}-%{version} |
33 |
|
34 |
%build |
35 |
%{__python} setup.py build |
36 |
|
37 |
%install |
38 |
%{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} |
39 |
|
40 |
|
41 |
%files |
42 |
%doc LICENSE NEWS README |
43 |
%dir %{python_sitearch}/twisted/words/ |
44 |
%{python_sitearch}/twisted/words/* |
45 |
%{python_sitearch}/twisted/plugins/* |
46 |
%{python_sitearch}/Twisted_Words-%{version}-py%{pyver}.egg-info |