From c25476e227b1e3423575c47e638cdb6f956665a1 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Dec 02 2007 21:19:10 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..35e9eb6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Net-SSH2-0.18.tar.gz diff --git a/perl-Net-SSH2.spec b/perl-Net-SSH2.spec new file mode 100644 index 0000000..6667e88 --- /dev/null +++ b/perl-Net-SSH2.spec @@ -0,0 +1,74 @@ +Name: perl-Net-SSH2 +Version: 0.18 +Release: 1%{?dist} +Summary: Support for the SSH 2 protocol via libSSH2 +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Net-SSH2/ +Source0: http://www.cpan.org/authors/id/D/DB/DBROBINS/Net-SSH2-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# non-perl +BuildRequires: libssh2-devel >= 0.18 + +# core +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +#BuildRequires: perl(File::Basename) +#BuildRequires: perl(IO::File) +#BuildRequires: perl(Socket) + + +%description +Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org) +library. It supports the SSH2 protocol (there is no support for SSH1) with +all of the key exchanges, ciphers, and compression of libssh2. + +%prep +%setup -q -n Net-SSH2-%{version} + +perl -pi -e 's|^#!perl|#!/usr/bin/perl|' example/* + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} + +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} + +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +# note most of these tests will skip -- that's fine, they'd fail in the +# buildsys anyways as they require network access +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README example/ t/ +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Net* +%{_mandir}/man3/* + +%changelog +* Tue Nov 13 2007 Chris Weyl 0.18-1 +- update to 0.18 +- drop old patches + +* Sun Oct 14 2007 Chris Weyl 0.10-2 +- update with patch1 +- update license tag: GPL -> GPL+ + +* Wed May 23 2007 Chris Weyl 0.10-1 +- Specfile autogenerated by cpanspec 1.71. diff --git a/sources b/sources index e69de29..769385b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6399eeb115a72545777d7989b98190cf Net-SSH2-0.18.tar.gz