|
Carl Thompson |
15db6b4 |
%if 0%{?fedora} <= 14
|
|
Carl Thompson |
15db6b4 |
%define pvendorlib %{perl_privlib}
|
|
Carl Thompson |
15db6b4 |
%endif
|
|
Carl Thompson |
15db6b4 |
%if 0%{?fedora} >= 15
|
|
Carl Thompson |
15db6b4 |
%define pvendorlib %{perl_vendorlib}
|
|
Carl Thompson |
15db6b4 |
%endif
|
|
Carl Thompson |
15db6b4 |
%if 0%{?rhel} >= 5
|
|
Carl Thompson |
15db6b4 |
%define pvendorlib %{perl_vendorlib}
|
|
Carl Thompson |
15db6b4 |
%endif
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
Name: perl-Net-SSH-Expect
|
|
Carl Thompson |
15db6b4 |
Version: 1.09
|
|
|
f8449c4 |
Release: 18%{?dist}
|
|
Carl Thompson |
15db6b4 |
Summary: Net-SSH-Expect - SSH wrapper to execute remote commands
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
Group: Development/Libraries
|
|
Carl Thompson |
15db6b4 |
License: GPL+ or Artistic
|
|
Carl Thompson |
15db6b4 |
URL: http://search.cpan.org/dist/Net-SSH-Expect/
|
|
Carl Thompson |
15db6b4 |
Source0: http://search.cpan.org/CPAN/authors/id/B/BN/BNEGRAO/Net-SSH-Expect-%{version}.tar.gz
|
|
Carl Thompson |
15db6b4 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Carl Thompson |
15db6b4 |
BuildArch: noarch
|
|
Carl Thompson |
15db6b4 |
|
|
|
5614659 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
5614659 |
BuildRequires: perl(Carp)
|
|
|
5614659 |
BuildRequires: perl(constant)
|
|
|
5614659 |
BuildRequires: perl(Expect)
|
|
|
5614659 |
BuildRequires: perl(fields)
|
|
|
5614659 |
BuildRequires: perl(Test::More)
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)), perl-Expect
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%description
|
|
Carl Thompson |
15db6b4 |
This module is a wrapper to the *ssh* executable that is available in
|
|
Carl Thompson |
15db6b4 |
your system's *$PATH*. Use this module to execute commands on the
|
|
Carl Thompson |
15db6b4 |
remote SSH server. It authenticates with the user and password you
|
|
Carl Thompson |
15db6b4 |
passed in the constructor's attributes "user" and "password".
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
Once an ssh connection was started using the "connect()" method it will
|
|
Carl Thompson |
15db6b4 |
remain open until you call the "close()" method. This allows you execute
|
|
Carl Thompson |
15db6b4 |
as many commands as you want with the "exec()" method using only one
|
|
Carl Thompson |
15db6b4 |
connection. This is a better approach over other ssh wrapper
|
|
Carl Thompson |
15db6b4 |
implementations, i.e: Net::SCP, Net::SSH and Net::SCP::Expect, that
|
|
Carl Thompson |
15db6b4 |
start a new ssh connection each time a remote command is issued or a
|
|
Carl Thompson |
15db6b4 |
file is transfered.
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
It uses *Expect.pm* module to interact with the SSH server. A
|
|
Carl Thompson |
15db6b4 |
"get_expect()" method is provided so you can obtain the internal
|
|
Carl Thompson |
15db6b4 |
"Expect" object connected to the SSH server. Use this only if you have
|
|
Carl Thompson |
15db6b4 |
some special need that you can't do with the "exec()" method.
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
This module was inspired by Net::SCP::Expect
|
|
Carl Thompson |
15db6b4 |
<http://search.cpan.org/~djberg/Net-SCP-Expect-0.12/Expect.pm>
|
|
Carl Thompson |
15db6b4 |
and by Net::Telnet and some of its methods work the same as these two
|
|
Carl Thompson |
15db6b4 |
modules.
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%prep
|
|
Carl Thompson |
15db6b4 |
%setup -q -n Net-SSH-Expect-%{version}
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%build
|
|
Carl Thompson |
15db6b4 |
PERL5_CPANPLUS_IS_RUNNING=1 %{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
Carl Thompson |
15db6b4 |
%{__make}
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%check
|
|
Carl Thompson |
15db6b4 |
%{__make} test
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%install
|
|
Carl Thompson |
15db6b4 |
rm -rf %{buildroot}
|
|
Carl Thompson |
15db6b4 |
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
Carl Thompson |
15db6b4 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
Carl Thompson |
15db6b4 |
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%clean
|
|
Carl Thompson |
15db6b4 |
rm -rf %{buildroot}
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%files
|
|
Carl Thompson |
748a75a |
%defattr(-,root,root)
|
|
Carl Thompson |
15db6b4 |
%{_mandir}/man3/Net::SSH::Expect.3pm.gz
|
|
Carl Thompson |
1b25b9e |
%{pvendorlib}/Net
|
|
Carl Thompson |
1b25b9e |
%{pvendorlib}/Net/SSH
|
|
Carl Thompson |
15db6b4 |
%{pvendorlib}/Net/SSH/Expect.pm
|
|
Carl Thompson |
15db6b4 |
%{pvendorlib}/Net/SSH/Expect.pod
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
%changelog
|
|
|
f8449c4 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-18
|
|
|
f8449c4 |
- Perl 5.20 rebuild
|
|
|
f8449c4 |
|
|
|
d9361b6 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-17
|
|
|
d9361b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
d9361b6 |
|
|
Carl Thompson |
6eb8f26 |
* Wed Aug 28 2013 Carl Thompson <fedora@red-dragon.com> - 1.09-16
|
|
Carl Thompson |
6eb8f26 |
- fixed permissions in %files section
|
|
Carl Thompson |
6eb8f26 |
|
|
|
1322ee8 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-15
|
|
|
1322ee8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1322ee8 |
|
|
|
f0b6da9 |
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.09-14
|
|
|
f0b6da9 |
- Perl 5.18 rebuild
|
|
|
f0b6da9 |
|
|
Carl Thompson |
1b25b9e |
* Tue May 14 2013 Carl Thopmson <fedora@red-dragon.com> - 1.09-13
|
|
Carl Thompson |
1b25b9e |
- added ownership to directories
|
|
Carl Thompson |
1b25b9e |
|
|
|
9ffcc1b |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-12
|
|
|
9ffcc1b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9ffcc1b |
|
|
|
71ef6d6 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-11
|
|
|
71ef6d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
71ef6d6 |
|
|
|
81a6b44 |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.09-10
|
|
|
81a6b44 |
- Perl 5.16 rebuild
|
|
|
5614659 |
- Specify all dependencies
|
|
|
81a6b44 |
|
|
|
6dd264e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-9
|
|
|
6dd264e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
6dd264e |
|
|
|
8c38328 |
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-8
|
|
|
8c38328 |
- Perl mass rebuild
|
|
|
8c38328 |
|
|
|
7f9909e |
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-7
|
|
|
7f9909e |
- Perl mass rebuild
|
|
|
7f9909e |
|
|
|
dccb4a8 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-6
|
|
|
dccb4a8 |
- Perl mass rebuild
|
|
|
dccb4a8 |
|
|
Carl Thompson |
15db6b4 |
* Fri Mar 4 2011 Carl Thompson <fedora@red-dragon.com> 1.09-5
|
|
Carl Thompson |
15db6b4 |
- fixed a typo in the spec file
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
* Thu Mar 3 2011 Carl Thompson <fedora@red-dragon.com> 1.09-4
|
|
Carl Thompson |
15db6b4 |
- updated the spec to remove some legacy components
|
|
Carl Thompson |
15db6b4 |
- added PERL5_CPANPLUS_IS_RUNNING=1 to prevent package from pulling
|
|
Carl Thompson |
15db6b4 |
- from CPAN
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
* Wed Mar 2 2011 Carl Thompson <fedora@red-dragon.com> 1.09-3
|
|
Carl Thompson |
15db6b4 |
- fixed an error in the if statements testing distro for definition
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
* Wed Mar 2 2011 Carl Thompson <fedora@red-dragon.com> 1.09-2
|
|
Carl Thompson |
15db6b4 |
- cleaned up the spec file and used more macros
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
* Tue Mar 1 2011 Carl Thompson <fedora@red-dragon.com> 1.09-1
|
|
Carl Thompson |
15db6b4 |
- Initial build.
|
|
Carl Thompson |
15db6b4 |
|