|
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
|
|
|
8644938 |
Release: 38%{?dist}
|
|
Carl Thompson |
15db6b4 |
Summary: Net-SSH-Expect - SSH wrapper to execute remote commands
|
|
Carl Thompson |
15db6b4 |
|
|
Carl Thompson |
15db6b4 |
License: GPL+ or Artistic
|
|
|
85659fd |
URL: https://metacpan.org/release/Net-SSH-Expect
|
|
|
85659fd |
Source0: https://cpan.metacpan.org/authors/id/B/BN/BNEGRAO/Net-SSH-Expect-%{version}.tar.gz
|
|
Carl Thompson |
15db6b4 |
BuildArch: noarch
|
|
Carl Thompson |
15db6b4 |
|
|
|
ba98a12 |
BuildRequires: make
|
|
|
a631371 |
BuildRequires: perl-generators
|
|
|
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 |
%files
|
|
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
|
|
|
8644938 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-38
|
|
|
8644938 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8644938 |
|
|
|
e4281ac |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-37
|
|
|
e4281ac |
- Perl 5.34 rebuild
|
|
|
e4281ac |
|
|
|
3b45db0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-36
|
|
|
3b45db0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
3b45db0 |
|
|
|
1878c22 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-35
|
|
|
1878c22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
1878c22 |
|
|
|
457eaaa |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-34
|
|
|
457eaaa |
- Perl 5.32 rebuild
|
|
|
457eaaa |
|
|
|
08fa3ec |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-33
|
|
|
08fa3ec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
08fa3ec |
|
|
|
7edfd26 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-32
|
|
|
7edfd26 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7edfd26 |
|
|
|
02f538d |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-31
|
|
|
02f538d |
- Perl 5.30 rebuild
|
|
|
02f538d |
|
|
|
4483d56 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-30
|
|
|
4483d56 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
4483d56 |
|
|
|
fbc29a3 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-29
|
|
|
fbc29a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
fbc29a3 |
|
|
|
4c3f4e7 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-28
|
|
|
4c3f4e7 |
- Perl 5.28 rebuild
|
|
|
4c3f4e7 |
|
|
|
f2a02f0 |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.09-27
|
|
|
f2a02f0 |
- Escape macros in %%changelog
|
|
|
f2a02f0 |
|
|
|
5f7af3a |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-26
|
|
|
5f7af3a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5f7af3a |
|
|
|
14f69b8 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-25
|
|
|
14f69b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
14f69b8 |
|
|
|
60c36b9 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-24
|
|
|
60c36b9 |
- Perl 5.26 rebuild
|
|
|
60c36b9 |
|
|
|
fbe50ea |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-23
|
|
|
fbe50ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
fbe50ea |
|
|
|
1cb89a7 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-22
|
|
|
1cb89a7 |
- Perl 5.24 rebuild
|
|
|
1cb89a7 |
|
|
|
4f5a727 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-21
|
|
|
4f5a727 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
4f5a727 |
|
|
|
9f763b9 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-20
|
|
|
9f763b9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
9f763b9 |
|
|
|
ce1ac9a |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-19
|
|
|
ce1ac9a |
- Perl 5.22 rebuild
|
|
|
ce1ac9a |
|
|
|
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
|
|
|
f2a02f0 |
- 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 |
|