]>
Commit | Line | Data |
---|---|---|
037cb86b | 1 | # |
2 | # Conditional build: | |
7658d35f | 3 | %bcond_without tests # do not perform "make test" |
037cb86b | 4 | # |
aa6804af | 5 | %define pdir Net |
6 | %define pnam Telnet | |
ae4b9346 JB |
7 | Summary: Net::Telnet Perl module - interact with TELNET port or other TCP ports |
8 | Summary(pl.UTF-8): Moduł Perla Net::Telnet - komunikacja protokołem TELNET lub z innymi portami TCP | |
2098602c | 9 | Name: perl-Net-Telnet |
ae4b9346 JB |
10 | Version: 3.04 |
11 | Release: 1 | |
b09b5bcd | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
2098602c | 14 | Group: Development/Languages/Perl |
ae4b9346 JB |
15 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: d2514080116c1b0fa5f96295c84538e3 | |
17 | URL: http://search.cpan.org/dist/Net-Telnet/ | |
aed03718 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
c1006311 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
246b4e2e | 20 | BuildArch: noarch |
f990fc6f | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2098602c | 22 | |
23 | %description | |
ae4b9346 JB |
24 | Net::Telnet allows you to make client connections to a TCP port and do |
25 | network I/O, especially to a port using the TELNET protocol. | |
2098602c | 26 | |
1e681af1 | 27 | %description -l pl.UTF-8 |
ae4b9346 JB |
28 | Net::Telnet pozwala na wykonywanie połączeń z portami TCP i |
29 | wykonywanie sieciowych operacji wejścia/wyjścia, w szczególności przy | |
30 | użyciu protokołu TELNET. | |
2098602c | 31 | |
32 | %prep | |
76b29ed1 | 33 | %setup -q -n %{pdir}-%{pnam}-%{version} |
2098602c | 34 | |
35 | %build | |
aed03718 | 36 | %{__perl} Makefile.PL \ |
320eeea1 | 37 | INSTALLDIRS=vendor |
009bd938 | 38 | %{__make} |
7658d35f | 39 | |
40 | %{?with_tests:%{__make} test} | |
2098602c | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
2098602c | 44 | |
b09b5bcd | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
2098602c | 47 | |
2098602c | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
e96285ce | 53 | %doc ChangeLog README |
aed03718 | 54 | %{perl_vendorlib}/Net/Telnet.pm |
ae4b9346 | 55 | %{_mandir}/man3/Net::Telnet.3pm* |