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 TwistedConch |
6 |
|
7 |
Name: python-twisted-conch |
8 |
Version: 14.0.0 |
9 |
Release: %mkrel 2 |
10 |
Summary: An SSH and SFTP protocol implementation together with clients and servers |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/projects/conch/ |
14 |
Source0: http://twistedmatrix.com/Releases/Conch/%{mainver}/%{module}-%{version}.tar.bz2 |
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-twisted-core |
17 |
|
18 |
Requires: python-twisted-core |
19 |
Requires: python-pyasn1 |
20 |
|
21 |
%description |
22 |
Conch is an SSHv2 implementation written in Python. SSH is a protocol designed |
23 |
to allow remote access to shells and commands, but it is generic enough to allow |
24 |
everything from TCP forwarding to generic filesystem access. Since Conch is |
25 |
written in Python, it interfaces well with other Python projects such as |
26 |
Imagination. Conch also includes a implementations of the telnet and vt102 |
27 |
protocols, as well as support for rudamentary line editing behaviors. |
28 |
A new implementation of Twisted's Manhole application is also included, |
29 |
featuring server-side input history and interactive syntax coloring. |
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 README NEWS |
43 |
%{_bindir}/* |
44 |
%dir %{python_sitearch}/twisted/conch |
45 |
%{python_sitearch}/twisted/conch/* |
46 |
%{python_sitearch}/twisted/plugins/* |
47 |
%{python_sitearch}/Twisted_Conch-%{version}-py%{pyver}.egg-info |