]>
Commit | Line | Data |
---|---|---|
f294c5d1 AO |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
f294c5d1 AO |
5 | %define pdir IO |
6 | %define pnam Socket-Socks | |
7 | Summary: IO::Socket::Socks - provides a way to create socks client or server both 4 and 5 version | |
8 | Summary(pl.UTF-8): IO::Socket::Socks - tworzenie klienta i serwera SOCKS w wersji 4 i 5 | |
9 | Name: perl-IO-Socket-Socks | |
10 | Version: 0.74 | |
11 | Release: 1 | |
12 | License: GPL v2+ | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: 9b19fba551ae14aa2382bfe318245de2 | |
16 | URL: http://search.cpan.org/dist/IO-Socket-Socks/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | IO::Socket::Socks connects to a SOCKS proxy, tells it to open a | |
24 | connection to a remote host/port when the object is created. The | |
25 | object you receive can be used directly as a socket (with IO::Socket | |
26 | interface) for sending and receiving data from the remote host. In | |
27 | addition to create socks client this module could be used to create | |
28 | socks server. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | IO::Socket::Socks łączy się do proxy SOCKS i mówi mu, żeby połączył | |
32 | się ze zdalnym hostem. Obiekt tego typu można użyć wprost jako socket | |
33 | (z interfejsem IO::Socket) do wysyłania i pobierania danych ze | |
34 | zdalnego hosta. Dodatkowo, poza możliwością tworzenia klienta SOCKS, | |
35 | można również utworzyć serwer SOCKS. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | %{__cp} examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
63 | %{perl_vendorlib}/IO/Socket/Socks.pm | |
64 | %{_mandir}/man3/* | |
65 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version} |