3 %bcond_without tests # do not perform "make test"
7 Summary: Net::OpenSSH - Perl SSH client package implemented on top of OpenSSH
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SALVA/Net-OpenSSH-%{version}.tar.gz
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
19 Requires: openssh-clients >= 2:4.1
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Net::OpenSSH is a secure shell client package implemented on top of
26 OpenSSH binary client (ssh).
28 This package is implemented around the multiplexing feature found in
29 later versions of OpenSSH. That feature allows one to run several
30 sessions over a single SSH connection (OpenSSH 4.1 was the first one
31 to provide all the required functionality).
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.
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.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Net/*.pm
66 %{perl_vendorlib}/Net/OpenSSH
68 %{_examplesdir}/%{name}-%{version}