1 |
%define name python-twisted-web |
2 |
%define version 13.2.0 |
3 |
%define rel 1 |
4 |
%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
5 |
# we don't want to provide private python extension libs |
6 |
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
7 |
|
8 |
Summary: An HTTP protocol implementation together with clients and servers |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %mkrel %{rel} |
12 |
Source0: http://twistedmatrix.com/Releases/Web/%{mainver}/TwistedWeb-%{version}.tar.bz2 |
13 |
License: MIT |
14 |
Group: Development/Python |
15 |
URL: http://twistedmatrix.com/projects/web/ |
16 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
17 |
BuildRequires: python-devel python-twisted-core |
18 |
Requires: python-twisted-core |
19 |
|
20 |
%description |
21 |
An HTTP protocol implementation together with clients and servers, based on |
22 |
the twisted python framework. |
23 |
|
24 |
%prep |
25 |
%setup -q -n TwistedWeb-%{version} |
26 |
|
27 |
%build |
28 |
%__python setup.py build |
29 |
|
30 |
%install |
31 |
%__rm -rf %{buildroot} |
32 |
%__python setup.py install --root=%{buildroot} --install-purelib=%{python_sitearch} |
33 |
|
34 |
|
35 |
%files |
36 |
%defattr(0644,root,root,0755) |
37 |
%doc LICENSE README |
38 |
%dir %{python_sitearch}/twisted/web |
39 |
%{python_sitearch}/twisted/web/* |
40 |
%{python_sitearch}/twisted/plugins/* |
41 |
%{python_sitearch}/*.egg-info |