3 %bcond_with tests # perform "make test"
8 %include /usr/lib/rpm/macros.perl
9 Summary: Perl Net::PcapUtils module
10 Summary(pl.UTF-8): Moduł perla Net::PcapUtils
11 Name: perl-Net-PcapUtils
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: eeba67266dbe155b504df3c2de1d657f
18 URL: http://search.cpan.org/dist/Net-PcapUtils/
19 BuildRequires: libpcap-devel
20 BuildRequires: perl-Net-Pcap
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides some code to abstract away some of the messier
28 parts of using the Net::Pcap library. The idea is to be able to write
29 "one-liner" type scripts for packet capture without getting bogged
30 down in the initialisation code. This makes it possible to write very
31 compact Perl scripts involving packet capture.
33 %description -l pl.UTF-8
34 Ten moduł dostarcza trochę kodu by oddalić bardziej zawiłe części
35 używania biblioteki Net::Pcap. Idea jest taka, by móc pisać skrypty
36 jednolinijkowe do przechwytywania pakietów bez zakopywania się w kod
37 inicjalizujący. Pozwala to na pisanie bardzo krótkich skryptów
38 perlowych przechwytujących pakiety.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
55 find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/%{pdir}/%{pnam}.pm