3 %bcond_with tests # perform "make test" (require root privilleges)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
9 Summary(pl.UTF-8): Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: fbe911ba5f57d5ba43494434ffb828a0
18 URL: http://search.cpan.org/dist/Net-Pcap/
19 BuildRequires: libpcap-devel
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
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 \
37 CCFLAGS="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
49 find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/pcapinfo
58 %{perl_vendorarch}/Net/Pcap.pm
59 %dir %{perl_vendorarch}/auto/Net/Pcap
60 %attr(755,root,root) %{perl_vendorarch}/auto/Net/Pcap/Pcap.so
61 %{_mandir}/man1/pcapinfo.1p*
62 %{_mandir}/man3/Net::Pcap.3pm*