]>
Commit | Line | Data |
---|---|---|
ea3da297 | 1 | %define module TwistedConch |
230530e7 | 2 | %define major 13.0 |
d1b5d313 | 3 | %define minor 0 |
ea3da297 MC |
4 | |
5 | Summary: Twisted SSHv2 implementation | |
812be516 | 6 | Summary(pl.UTF-8): Implementacja SSHv2 dla Twisted |
ea3da297 | 7 | Name: python-%{module} |
d1b5d313 | 8 | Version: %{major}.%{minor} |
140491c3 | 9 | Release: 4 |
ea3da297 MC |
10 | License: MIT |
11 | Group: Libraries/Python | |
230530e7 AM |
12 | Source0: http://twistedmatrix.com/Releases/Conch/%{major}/%{module}-%{version}.tar.bz2 |
13 | # Source0-md5: 0d1c4c72302d8af6036cb897438323b7 | |
e6cacec7 | 14 | URL: http://twistedmatrix.com/trac/wiki/TwistedConch |
a1394ff4 | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
ea3da297 | 16 | BuildRequires: ZopeInterface |
230530e7 | 17 | BuildRequires: python-TwistedCore >= 13.0.0 |
6f84d619 | 18 | BuildRequires: python-devel >= 1:2.5 |
fd58e01b | 19 | BuildRequires: rpm-pythonprov |
230530e7 AM |
20 | Requires: python-TwistedCore >= 13.0.0 |
21 | Requires: python-TwistedCore-ssl >= 13.0.0 | |
95ec47ba | 22 | Obsoletes: python-Twisted-conch |
ea3da297 MC |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Conch is an SSHv2 implementation using the Twisted framework. It | |
27 | includes a server, client, a SFTP client, and a key generator. | |
28 | ||
36fe1ac9 JR |
29 | %description -l pl.UTF-8 |
30 | Conch jest implementacją SSHv2 wykorzystującą Twisted. Zawiera serwer, | |
ea3da297 MC |
31 | klienta, klienta SFTP i generator kluczy. |
32 | ||
33 | %package doc | |
9d2463f2 | 34 | Summary: Documentation for TwistedConch |
812be516 | 35 | Summary(pl.UTF-8): Dokumentacja do TwistedConch |
ea3da297 MC |
36 | Group: Libraries/Python |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description doc | |
9d2463f2 | 40 | Offline documentation for TwistedConch. |
ea3da297 | 41 | |
36fe1ac9 | 42 | %description doc -l pl.UTF-8 |
9d2463f2 | 43 | Dokumentacja offline do TwistedConch. |
ea3da297 MC |
44 | |
45 | %package examples | |
9d2463f2 | 46 | Summary: Example programs for TwistedConch |
812be516 | 47 | Summary(pl.UTF-8): Programy przykładowe do TwistedConch |
ea3da297 MC |
48 | Group: Libraries/Python |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description examples | |
9d2463f2 | 52 | This package contains example programs for TwistedConch. |
ea3da297 | 53 | |
36fe1ac9 JR |
54 | %description examples -l pl.UTF-8 |
55 | Ten pakiet zawiera przykładowe programy dla TwistedConch. | |
ea3da297 MC |
56 | |
57 | %prep | |
58 | %setup -q -n %{module}-%{version} | |
59 | ||
60 | %build | |
15f76af8 | 61 | %py_build |
ea3da297 MC |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
06075698 | 65 | install -d $RPM_BUILD_ROOT{%{py_sitedir}/twisted,%{py_sitescriptdir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}} |
ea3da297 | 66 | |
15f76af8 | 67 | %py_install \ |
c5f472b6 | 68 | --install-purelib=%{py_sitedir} \ |
ea3da297 MC |
69 | --root=$RPM_BUILD_ROOT \ |
70 | --optimize=2 | |
71 | ||
7a17dcaf | 72 | %py_postclean |
ea3da297 MC |
73 | |
74 | install doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
98fe4253 | 75 | cp -a doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
ea3da297 MC |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc LICENSE NEWS README | |
83 | %attr(755,root,root) %{_bindir}/* | |
2e9396ee | 84 | %if "%{py_ver}" > "2.4" |
a5d60430 | 85 | %{py_sitedir}/*.egg-info |
2e9396ee | 86 | %endif |
06075698 | 87 | %{py_sitedir}/twisted/conch |
c5f472b6 | 88 | %{py_sitedir}/twisted/plugins/* |
ea3da297 MC |
89 | %{_mandir}/man1/*.1* |
90 | ||
91 | %files doc | |
92 | %defattr(644,root,root,755) | |
93 | %doc doc/howto | |
94 | ||
95 | %files examples | |
96 | %defattr(644,root,root,755) | |
97 | %{_examplesdir}/%{name}-%{version} |