38e6465
Name:           perl-Net-SFTP
38e6465
Version:        0.10
53b8059
Release:        3%{?dist}
38e6465
Summary:        Secure File Transfer Protocol client
aa144e9
License:        GPL+ or Artistic
38e6465
Group:          Development/Libraries
38e6465
URL:            http://search.cpan.org/dist/Net-SFTP/
38e6465
Source0:        http://www.cpan.org/authors/id/D/DB/DBROBINS/Net-SFTP-%{version}.tar.gz
38e6465
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
38e6465
BuildArch:      noarch
38e6465
BuildRequires:  perl(ExtUtils::MakeMaker)
38e6465
BuildRequires:  perl(Net::SSH::Perl) >= 1.24
38e6465
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
38e6465
38e6465
%description
38e6465
Net::SFTP is a pure-Perl implementation of the Secure File Transfer
38e6465
Protocol (SFTP) - file transfer built on top of the SSH2 protocol.
38e6465
Net::SFTP uses Net::SSH::Perl to build a secure, encrypted tunnel through
38e6465
which files can be transferred and managed. It provides a subset of the
38e6465
commands listed in the SSH File Transfer Protocol IETF draft, which can be
38e6465
found at http://www.openssh.com/txt/draft-ietf-secsh-filexfer-00.txt.
38e6465
38e6465
%prep
38e6465
%setup -q -n Net-SFTP-%{version}
38e6465
38e6465
%build
38e6465
%{__perl} Makefile.PL INSTALLDIRS=vendor
38e6465
make %{?_smp_mflags}
38e6465
38e6465
%install
38e6465
rm -rf $RPM_BUILD_ROOT
38e6465
38e6465
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
38e6465
38e6465
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
38e6465
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
38e6465
38e6465
%{_fixperms} $RPM_BUILD_ROOT/*
38e6465
38e6465
%check
38e6465
make test
38e6465
38e6465
%clean
38e6465
rm -rf $RPM_BUILD_ROOT
38e6465
38e6465
%files
38e6465
%defattr(-,root,root,-)
38e6465
%doc Changes LICENSE README ToDo
38e6465
%{perl_vendorlib}/*
38e6465
%{_mandir}/man3/*
38e6465
38e6465
%changelog
53b8059
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
53b8059
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
53b8059
aa144e9
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.10-2
aa144e9
Rebuild for new perl
aa144e9
38e6465
* Mon Jul 16 2007 Steven Pritchard <steve@kspei.com> 0.10-1
38e6465
- Specfile autogenerated by cpanspec 1.73.
38e6465
- Fix License.
38e6465
- Remove redundant explicit dependency on Net::SSH::Perl.