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