]>
Commit | Line | Data |
---|---|---|
0ea0a6cd JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
1660ddee | 4 | |
0ea0a6cd JR |
5 | %define pdir Net |
6 | %define pnam SSH2 | |
1660ddee | 7 | %include /usr/lib/rpm/macros.perl |
a375c100 JB |
8 | Summary: Net::SSH2 Perl module - support for the SSH 2 protocol via libssh2 |
9 | Summary(pl.UTF-8): Moduł Perla Net::SSH2 - obsługa protokołu SSH 2 poprzez libssh2 | |
0ea0a6cd | 10 | Name: perl-Net-SSH2 |
71f99434 | 11 | Version: 0.63 |
7906f57d | 12 | Release: 2 |
0ea0a6cd JR |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
a375c100 | 16 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz |
71f99434 | 17 | # Source0-md5: bcac41475b9f8f20a791bcc410fee912 |
1660ddee | 18 | URL: http://search.cpan.org/dist/Net-SSH2/ |
71f99434 | 19 | BuildRequires: libssh2-devel >= 1.7.0 |
0ea0a6cd | 20 | BuildRequires: openssl-devel |
0ea0a6cd | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
1660ddee ER |
22 | BuildRequires: rpm-perlprov >= 4.1-13 |
23 | BuildRequires: zlib-devel | |
0ea0a6cd JR |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
a375c100 JB |
27 | Net::SSH2 is a Perl interface to the libssh2 (http://www.libssh2.org/) |
28 | library. It supports the SSH 2 protocol (there is no support for SSH | |
29 | 1) with all of the key exchanges, ciphers, and compression of libssh2. | |
0ea0a6cd JR |
30 | |
31 | %description -l pl.UTF-8 | |
a375c100 JB |
32 | Net::SSH to perlowy interfejs do biblioteki libssh2 |
33 | (http://www.libssh2.org/). Obsługuje protokół SSH 2 (nie ma obsługi | |
34 | SSH 1), w tym wymianę kluczy, szyfry i kompresję z libssh2. | |
0ea0a6cd JR |
35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
71f99434 | 57 | %doc Changes README example/read.pl |
0ea0a6cd JR |
58 | %{perl_vendorarch}/Net/SSH2.pm |
59 | %{perl_vendorarch}/Net/SSH2 | |
60 | %dir %{perl_vendorarch}/auto/Net/SSH2 | |
0ea0a6cd | 61 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/SSH2/SSH2.so |
a375c100 | 62 | %{_mandir}/man3/Net::SSH2*.3pm* |