3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Net::SOCKS perl module
7 Summary(pl.UTF-8): ModuĊ perla Net::SOCKS
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Net/SOCKS-%{version}.tar.gz
15 # Source0-md5: 81f63a1fb252d211a083909fbdc1611b
16 Patch0: %{name}-paths.patch
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Net::SOCKS - a SOCKS client.
25 %description -l pl.UTF-8
26 Net::SOCKS - klient SOCKS.
29 %setup -q -n SOCKS-%{version}
33 %{__perl} Makefile.PL \
37 %{?with_tests:%{__make} test}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44 DESTDIR=$RPM_BUILD_ROOT
45 install example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc Changes README TODO example
53 %{perl_vendorlib}/Net/SOCKS.pm
54 %{perl_vendorlib}/auto/Net/SOCKS
56 %dir %{_examplesdir}/%{name}-%{version}
57 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*