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 TwistedRunner |
6 |
|
7 |
Name: python-twisted-runner |
8 |
Version: 14.0.0 |
9 |
Release: %mkrel 1 |
10 |
Summary: Runner has process management, including an inetd replacement for Twisted |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedRunner |
14 |
Source0: http://twistedmatrix.com/Releases/Runner/%{mainver}/%{module}-%{version}.tar.bz2 |
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-twisted-core |
17 |
|
18 |
Requires: python-twisted-core |
19 |
|
20 |
%description |
21 |
Runner has process management, including an inetd replacement for Twisted. |
22 |
|
23 |
%prep |
24 |
%setup -q -n %{module}-%{version} |
25 |
|
26 |
%build |
27 |
%{__python} setup.py build |
28 |
|
29 |
%install |
30 |
%{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} |
31 |
|
32 |
|
33 |
%files |
34 |
%doc LICENSE README NEWS |
35 |
%dir %{python_sitearch}/twisted/runner |
36 |
%{python_sitearch}/twisted/runner/* |
37 |
%{python_sitearch}/twisted/plugins/* |
38 |
%{python_sitearch}/Twisted_Runner-%{version}-py%{pyver}.egg-info |