[packages/perl-Net-OpenSSH] - initial
paszczus
paszczus at pld-linux.org
Thu Aug 20 11:22:35 CEST 2015
commit 1755ac12604932221868e2eec31b8a4877472344
Author: Sławomir Paszkiewicz <paszczus at pld-linux.org>
Date: Thu Aug 20 11:22:21 2015 +0200
- initial
perl-Net-OpenSSH.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
---
diff --git a/perl-Net-OpenSSH.spec b/perl-Net-OpenSSH.spec
new file mode 100644
index 0000000..71d88e8
--- /dev/null
+++ b/perl-Net-OpenSSH.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Net
+%define pnam OpenSSH
+%include /usr/lib/rpm/macros.perl
+Summary: Net::OpenSSH - Perl SSH client package implemented on top of OpenSSH
+Name: perl-Net-OpenSSH
+Version: 0.65_05
+Release: 1
+License: unknown
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SALVA/Net-OpenSSH-0.65_05.tar.gz
+# Source0-md5: beef8cd48d10e12fc19a2ef836f754a6
+URL: http://search.cpan.org/dist/Net-OpenSSH/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Net::OpenSSH is a secure shell client package implemented on top of
+OpenSSH binary client (ssh).
+
+This package is implemented around the multiplexing feature found in
+later versions of OpenSSH. That feature allows one to run several
+sessions over a single SSH connection (OpenSSH 4.1 was the first
+one to provide all the required functionality).
+
+When a new Net::OpenSSH object is created, the OpenSSH ssh client
+is run in master mode, establishing a persistent (for the lifetime of
+the object) connection to the server.
+
+Then, every time a new operation is requested a new ssh process is
+started in slave mode, effectively reusing the master SSH connection
+to send the request to the remote side.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Net/*.pm
+%{perl_vendorlib}/Net/OpenSSH
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-OpenSSH.git/commitdiff/1755ac12604932221868e2eec31b8a4877472344
More information about the pld-cvs-commit
mailing list