]>
Commit | Line | Data |
---|---|---|
1755ac12 SP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
bd3ab336 | 4 | |
1755ac12 SP |
5 | %define pdir Net |
6 | %define pnam OpenSSH | |
1755ac12 SP |
7 | Summary: Net::OpenSSH - Perl SSH client package implemented on top of OpenSSH |
8 | Name: perl-Net-OpenSSH | |
9 | Version: 0.65_05 | |
10 | Release: 1 | |
bd3ab336 ER |
11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
1755ac12 | 13 | Group: Development/Languages/Perl |
bd3ab336 | 14 | Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SALVA/Net-OpenSSH-%{version}.tar.gz |
1755ac12 SP |
15 | # Source0-md5: beef8cd48d10e12fc19a2ef836f754a6 |
16 | URL: http://search.cpan.org/dist/Net-OpenSSH/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
aeb95f7f | 19 | Requires: openssh-clients >= 2:4.1 |
f299f3d9 | 20 | Suggests: perl-IO-Tty |
1755ac12 SP |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Net::OpenSSH is a secure shell client package implemented on top of | |
26 | OpenSSH binary client (ssh). | |
27 | ||
28 | This package is implemented around the multiplexing feature found in | |
29 | later versions of OpenSSH. That feature allows one to run several | |
bd3ab336 ER |
30 | sessions over a single SSH connection (OpenSSH 4.1 was the first one |
31 | to provide all the required functionality). | |
1755ac12 | 32 | |
bd3ab336 ER |
33 | When a new Net::OpenSSH object is created, the OpenSSH ssh client is |
34 | run in master mode, establishing a persistent (for the lifetime of the | |
35 | object) connection to the server. | |
1755ac12 SP |
36 | |
37 | Then, every time a new operation is requested a new ssh process is | |
38 | started in slave mode, effectively reusing the master SSH connection | |
39 | to send the request to the remote side. | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
1755ac12 SP |
53 | %{__make} pure_install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
bd3ab336 | 57 | cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
1755ac12 SP |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
65 | %{perl_vendorlib}/Net/*.pm | |
66 | %{perl_vendorlib}/Net/OpenSSH | |
67 | %{_mandir}/man3/* | |
68 | %{_examplesdir}/%{name}-%{version} |