3 %bcond_with tests # perform "make test" (require root privilleges)
5 %include /usr/lib/rpm/macros.perl
9 Summary: Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
10 Summary(pl.UTF-8): Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: b7a9c6be225dce74d560e109d9b702b5
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: libpcap-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The Net::Pcap module is a Perl binding to the LBL pcap(3) packet
28 %description -l pl.UTF-8
29 Moduł Net::Pcap jest dowiązaniem Perla do biblioteki przechwytywania
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
47 find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/pcapinfo
56 %{perl_vendorarch}/%{pdir}/%{pnam}.pm
57 %{perl_vendorarch}/auto/%{pdir}/%{pnam}