3 %bcond_without tests # do not perform "make test"
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
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
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' examples/*.pl
43 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 %{__cp} examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/IO/Socket/Socks.pm
67 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}