|
Chris Weyl |
c25476e |
Name: perl-Net-SSH2
|
|
Chris Weyl |
c25476e |
Version: 0.18
|
|
Chris Weyl |
e89cda8 |
Release: 5%{?dist}
|
|
Chris Weyl |
c25476e |
Summary: Support for the SSH 2 protocol via libSSH2
|
|
Chris Weyl |
c25476e |
License: GPL+ or Artistic
|
|
Chris Weyl |
c25476e |
Group: Development/Libraries
|
|
Chris Weyl |
c25476e |
URL: http://search.cpan.org/dist/Net-SSH2/
|
|
Chris Weyl |
c25476e |
Source0: http://www.cpan.org/authors/id/D/DB/DBROBINS/Net-SSH2-%{version}.tar.gz
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
e89cda8 |
# http://rt.cpan.org/Public/Bug/Display.html?id=36614
|
|
Chris Weyl |
e89cda8 |
Patch0: net-ssh2-0.18-perl5.10.patch
|
|
Chris Weyl |
e89cda8 |
|
|
Chris Weyl |
c25476e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Chris Weyl |
c25476e |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
# non-perl
|
|
Chris Weyl |
c25476e |
BuildRequires: libssh2-devel >= 0.18
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
# core
|
|
Chris Weyl |
c25476e |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
Chris Weyl |
c25476e |
BuildRequires: perl(Test::More)
|
|
Chris Weyl |
c25476e |
#BuildRequires: perl(File::Basename)
|
|
Chris Weyl |
c25476e |
#BuildRequires: perl(IO::File)
|
|
Chris Weyl |
c25476e |
#BuildRequires: perl(Socket)
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%description
|
|
Chris Weyl |
c25476e |
Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org)
|
|
Chris Weyl |
c25476e |
library. It supports the SSH2 protocol (there is no support for SSH1) with
|
|
Chris Weyl |
c25476e |
all of the key exchanges, ciphers, and compression of libssh2.
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%prep
|
|
Chris Weyl |
c25476e |
%setup -q -n Net-SSH2-%{version}
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
e89cda8 |
%patch0 -p1
|
|
Chris Weyl |
e89cda8 |
|
|
Chris Weyl |
c25476e |
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' example/*
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%build
|
|
Chris Weyl |
c25476e |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
Chris Weyl |
c25476e |
make %{?_smp_mflags}
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%install
|
|
Chris Weyl |
c25476e |
rm -rf %{buildroot}
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
find %{buildroot} -type f -name .packlist -exec rm -f {} +
|
|
Chris Weyl |
c25476e |
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
|
|
Chris Weyl |
c25476e |
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%{_fixperms} %{buildroot}/*
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%check
|
|
Chris Weyl |
c25476e |
# note most of these tests will skip -- that's fine, they'd fail in the
|
|
Chris Weyl |
c25476e |
# buildsys anyways as they require network access
|
|
Chris Weyl |
c25476e |
make test
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%clean
|
|
Chris Weyl |
c25476e |
rm -rf %{buildroot}
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%files
|
|
Chris Weyl |
c25476e |
%defattr(-,root,root,-)
|
|
Chris Weyl |
c25476e |
%doc Changes README example/ t/
|
|
Chris Weyl |
c25476e |
%{perl_vendorarch}/auto/*
|
|
Chris Weyl |
c25476e |
%{perl_vendorarch}/Net*
|
|
Chris Weyl |
c25476e |
%{_mandir}/man3/*
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
%changelog
|
|
Chris Weyl |
e89cda8 |
* Mon Jun 30 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.18-5
|
|
Chris Weyl |
e89cda8 |
- apply patch for 5.10
|
|
Chris Weyl |
e89cda8 |
|
|
|
4cdb048 |
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.18-4
|
|
|
4cdb048 |
Rebuild for new perl
|
|
|
4cdb048 |
|
|
|
94c4594 |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-3
|
|
|
94c4594 |
- Autorebuild for GCC 4.3
|
|
|
94c4594 |
|
|
Chris Weyl |
fd20b46 |
* Sun Dec 02 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-2
|
|
Chris Weyl |
fd20b46 |
- bump
|
|
Chris Weyl |
fd20b46 |
|
|
Chris Weyl |
c25476e |
* Tue Nov 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1
|
|
Chris Weyl |
c25476e |
- update to 0.18
|
|
Chris Weyl |
c25476e |
- drop old patches
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
* Sun Oct 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.10-2
|
|
Chris Weyl |
c25476e |
- update with patch1
|
|
Chris Weyl |
c25476e |
- update license tag: GPL -> GPL+
|
|
Chris Weyl |
c25476e |
|
|
Chris Weyl |
c25476e |
* Wed May 23 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.10-1
|
|
Chris Weyl |
c25476e |
- Specfile autogenerated by cpanspec 1.71.
|