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