File perl-Net-SSH2.spec of Package perl-Net-SSH2
%define _real_name Net-SSH2
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: Support for the SSH 2 protocol via libSSH2
Name: perl-Net-SSH2
Version: 0.21
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~dbrobins/Net-SSH2-0.10/lib/Net/SSH2.pm
Source: http://search.cpan.org/CPAN/authors/id/D/DB/DBROBINS/Net-SSH2-%{version}.tar.gz
#Patch: Makefile.PL.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libssh2 , libssh2-devel, zlib-devel
%description
Net::SSH2 is a perl interface to the libssh2
%prep
%setup -n %{_real_name}-%{version}
#%ifarch x86_64
#%patch -p0
#%endif
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
%{__make}
%install
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%{_mandir}/man3/*.gz
%dir %{perl_vendorarch}/Net
%dir %{perl_vendorarch}/Net/SSH2
%dir %{perl_vendorarch}/auto/Net
%dir %{perl_vendorarch}/auto/Net/SSH2
%{perl_vendorarch}/Net/SSH2.pm
%{perl_vendorarch}/Net/SSH2/*.pm
%{perl_vendorarch}/auto/Net/SSH2/*
%changelog
* Wed Jul 15 2009 Leo Eraly <leo@unstable.be> - 0.21-1
- Update to release
* Tue Aug 28 2007 Leo Eraly <leo@unstable.be> - 0.10-1
- Initial package