f38
Petr Šabata 12 years ago
parent 0f55cac31b
commit ffa9dc7fc7

1
.gitignore vendored

@ -7,3 +7,4 @@ Net-SSH2-0.28.tar.gz
/Net-SSH2-0.44.tar.gz /Net-SSH2-0.44.tar.gz
/Net-SSH2-0.45.tar.gz /Net-SSH2-0.45.tar.gz
/Net-SSH2-0.46.tar.gz /Net-SSH2-0.46.tar.gz
/Net-SSH2-0.47.tar.gz

@ -0,0 +1,22 @@
diff --git a/lib/Net/SSH2.pm b/lib/Net/SSH2.pm
index 4867f4e..3d7b23c 100644
--- a/lib/Net/SSH2.pm
+++ b/lib/Net/SSH2.pm
@@ -279,7 +279,7 @@ sub connect {
sub _auth_methods {
return {
- ((version())[1]||0 >= 0x010203 ? (
+ (((version())[1]||0) >= 0x010203 ? (
'agent' => {
ssh => 'agent',
method => \&auth_agent,
@@ -322,7 +322,7 @@ sub _auth_methods {
sub _auth_rank {
return [
- ((version())[1]||0 >= 0x010203 ? ('agent') : ()),
+ (((version())[1]||0) >= 0x010203 ? ('agent') : ()),
qw(hostbased publickey keyboard keyboard-auto password none)
];
}

@ -1,41 +1,52 @@
Name: perl-Net-SSH2 Name: perl-Net-SSH2
Version: 0.46 Version: 0.47
Release: 1%{?dist} Release: 1%{?dist}
Summary: Support for the SSH 2 protocol via libSSH2 Summary: Support for the SSH 2 protocol via libSSH2
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Net-SSH2/ URL: http://search.cpan.org/dist/Net-SSH2/
Source0: http://search.cpan.org/CPAN/authors/id/R/RK/RKITOVER/Net-SSH2-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/R/RK/RKITOVER/Net-SSH2-%{version}.tar.gz
# rt#80065, rhbz#864102
Patch0: Net-SSH2-0.47-op-priority.patch
# Avoid the EE::MM CCFLAGS bug # Avoid the EE::MM CCFLAGS bug
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(AutoLoader) BuildRequires: perl(AutoLoader)
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
BuildRequires: perl(Devel::CheckLib)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::Constant) BuildRequires: perl(ExtUtils::Constant)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(ExtUtils::Manifest) BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(ExtUtils::MM_Unix)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin)
BuildRequires: perl(IO::File) BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Scalar) BuildRequires: perl(IO::Scalar)
BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Module::Install)
BuildRequires: perl(Module::Install::Base)
BuildRequires: perl(Socket) BuildRequires: perl(Socket)
BuildRequires: perl(Term::ReadKey) BuildRequires: perl(strict)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader) BuildRequires: perl(XSLoader)
# non-perl # non-perl
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: libssh2-devel >= 0.18 BuildRequires: libssh2-devel >= 0.18
# Drop the tests subpackage; remove during f21 development cycle
Obsoletes: %{name}-tests%{?_isa} < 0.47-1
Provides: %{name}-tests%{?_isa} = %{version}-%{release}
%{?perl_default_filter} %{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description %description
Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org) Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org)
@ -45,6 +56,7 @@ all of the key exchanges, ciphers, and compression of libssh2.
%prep %prep
%setup -q -n Net-SSH2-%{version} %setup -q -n Net-SSH2-%{version}
perl -pi -e 's|^#!perl|#!%{__perl}|' example/* perl -pi -e 's|^#!perl|#!%{__perl}|' example/*
%patch0 -p1 -b .op-priority
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@ -64,10 +76,15 @@ make test
%files %files
%doc Changes README TODO example/ %doc Changes README TODO example/
%{perl_vendorarch}/* %{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Feb 12 2013 Petr Šabata <contyk@redhat.com> - 0.47-1
- 0.47 bump
- Patch the version check (#864102, rt#80065)
- Drop the useless excludedir
- Drop the tests subpackage
* Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 0.46-1 * Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 0.46-1
- 0.46 bump - 0.46 bump

@ -1 +1 @@
3e9b26d96db5a6fe13840827deab95a4 Net-SSH2-0.46.tar.gz 4a2d2ff7f20a8e940ab238e7bb3879f6 Net-SSH2-0.47.tar.gz

Loading…
Cancel
Save