From 15db6b49e5347bd5731442455704206c2028332a Mon Sep 17 00:00:00 2001 From: Carl Thompson Date: Mar 04 2011 22:00:24 +0000 Subject: initial release updated info --- diff --git a/.gitignore b/.gitignore index e69de29..10e9b5e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Net-SSH-Expect-1.09.tar.gz diff --git a/perl-Net-SSH-Expect.spec b/perl-Net-SSH-Expect.spec new file mode 100644 index 0000000..14a6f7f --- /dev/null +++ b/perl-Net-SSH-Expect.spec @@ -0,0 +1,93 @@ +%if 0%{?fedora} <= 14 +%define pvendorlib %{perl_privlib} +%endif +%if 0%{?fedora} >= 15 +%define pvendorlib %{perl_vendorlib} +%endif +%if 0%{?rhel} >= 5 +%define pvendorlib %{perl_vendorlib} +%endif + +Name: perl-Net-SSH-Expect +Version: 1.09 +Release: 5%{?dist} +Summary: Net-SSH-Expect - SSH wrapper to execute remote commands + +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Net-SSH-Expect/ +Source0: http://search.cpan.org/CPAN/authors/id/B/BN/BNEGRAO/Net-SSH-Expect-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More), perl-Expect + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)), perl-Expect + +%description +This module is a wrapper to the *ssh* executable that is available in +your system's *$PATH*. Use this module to execute commands on the +remote SSH server. It authenticates with the user and password you +passed in the constructor's attributes "user" and "password". + +Once an ssh connection was started using the "connect()" method it will +remain open until you call the "close()" method. This allows you execute +as many commands as you want with the "exec()" method using only one +connection. This is a better approach over other ssh wrapper +implementations, i.e: Net::SCP, Net::SSH and Net::SCP::Expect, that +start a new ssh connection each time a remote command is issued or a +file is transfered. + +It uses *Expect.pm* module to interact with the SSH server. A +"get_expect()" method is provided so you can obtain the internal +"Expect" object connected to the SSH server. Use this only if you have +some special need that you can't do with the "exec()" method. + +This module was inspired by Net::SCP::Expect + +and by Net::Telnet and some of its methods work the same as these two +modules. + +%prep +%setup -q -n Net-SSH-Expect-%{version} + +%build +PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} + +%check +%{__make} test + +%install +rm -rf %{buildroot} +%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null + +%clean +rm -rf %{buildroot} + +%files +%defattr(644,root,root) +%{_mandir}/man3/Net::SSH::Expect.3pm.gz +%{pvendorlib}/Net/SSH/Expect.pm +%{pvendorlib}/Net/SSH/Expect.pod + +%changelog +* Fri Mar 4 2011 Carl Thompson 1.09-5 +- fixed a typo in the spec file + +* Thu Mar 3 2011 Carl Thompson 1.09-4 +- updated the spec to remove some legacy components +- added PERL5_CPANPLUS_IS_RUNNING=1 to prevent package from pulling +- from CPAN + +* Wed Mar 2 2011 Carl Thompson 1.09-3 +- fixed an error in the if statements testing distro for definition + +* Wed Mar 2 2011 Carl Thompson 1.09-2 +- cleaned up the spec file and used more macros + +* Tue Mar 1 2011 Carl Thompson 1.09-1 +- Initial build. + diff --git a/sources b/sources index e69de29..fb6ff8b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +30c1a02c7a15a9885a972fc22bb4a9f5 Net-SSH-Expect-1.09.tar.gz