]> git.pld-linux.org Git - packages/perl-Net-OpenSSH.git/blame - perl-Net-OpenSSH.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-OpenSSH.git] / perl-Net-OpenSSH.spec
CommitLineData
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
7Summary: Net::OpenSSH - Perl SSH client package implemented on top of OpenSSH
8Name: perl-Net-OpenSSH
9Version: 0.65_05
10Release: 1
bd3ab336
ER
11# same as perl
12License: GPL v1+ or Artistic
1755ac12 13Group: Development/Languages/Perl
bd3ab336 14Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SALVA/Net-OpenSSH-%{version}.tar.gz
1755ac12
SP
15# Source0-md5: beef8cd48d10e12fc19a2ef836f754a6
16URL: http://search.cpan.org/dist/Net-OpenSSH/
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
aeb95f7f 19Requires: openssh-clients >= 2:4.1
f299f3d9 20Suggests: perl-IO-Tty
1755ac12
SP
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Net::OpenSSH is a secure shell client package implemented on top of
26OpenSSH binary client (ssh).
27
28This package is implemented around the multiplexing feature found in
29later versions of OpenSSH. That feature allows one to run several
bd3ab336
ER
30sessions over a single SSH connection (OpenSSH 4.1 was the first one
31to provide all the required functionality).
1755ac12 32
bd3ab336
ER
33When a new Net::OpenSSH object is created, the OpenSSH ssh client is
34run in master mode, establishing a persistent (for the lifetime of the
35object) connection to the server.
1755ac12
SP
36
37Then, every time a new operation is requested a new ssh process is
38started in slave mode, effectively reusing the master SSH connection
39to 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
52rm -rf $RPM_BUILD_ROOT
1755ac12
SP
53%{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
bd3ab336 57cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
1755ac12
SP
58
59%clean
60rm -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}
This page took 0.070886 seconds and 4 git commands to generate.